/* =========================================================================
   MedLab theme — main stylesheet
   Design tokens are printed as CSS custom properties by medlab_tokens_map()
   (inc/data.php), so colours, radii and the container width are edited there.
   Breakpoints: mobile <=767px · tablet 768-1024px · desktop >1024px
   ========================================================================= */

/* ------------------------------------------------------------- reset */

*, *::before, *::after { box-sizing: border-box; }

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.5;
	color: var(--text);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
}

img, svg, iframe { max-width: 100%; }
img { height: auto; }

a { color: var(--brand-primary); }
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
	outline: 3px solid var(--brand-primary);
	outline-offset: 2px;
}

h1, h2, h3, h4, h5 { font-family: var(--font-head); color: var(--brand-primary); margin: 0 0 .5em; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0; border: 0;
	clip: rect(0 0 0 0); clip-path: inset(50%);
	overflow: hidden; white-space: nowrap;
}

.ml-skip {
	position: absolute; left: -9999px; top: 0;
	background: var(--white); color: var(--brand-primary);
	padding: 12px 20px; z-index: calc(var(--z-drawer) + 1);
}
.ml-skip:focus { left: 0; }

.ml-container {
	width: 100%;
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 20px;
}

.ml-section { padding: 48px 0; }
.ml-section--tight { padding: 24px 0; }
.ml-center { text-align: center; }

.ml-icon { flex: none; }

/* --------------------------------------------------------- typography */

.ml-h1 { font-size: 32px; line-height: 1.2; font-weight: 700; }
.ml-h2 { font-size: 24px; line-height: 1.25; font-weight: 700; margin-top: 1.4em; }
.ml-h4 { font-size: 18px; font-weight: 700; }
.ml-lead { font-size: 17px; color: var(--text); margin: 0 0 1.25em; }
.ml-note { font-size: 14px; color: var(--text-muted); font-style: italic; }
.ml-empty { color: var(--text-muted); padding: 24px 0; }

.ml-section__title {
	font-size: 36px; line-height: 1.1; font-weight: 700;
	text-align: center; margin-bottom: .25em;
}
.ml-section__title--sm { font-size: 26px; }
.ml-section__title--alt { font-family: var(--font-alt); font-size: 32px; font-weight: 600; color: var(--brand-deep); }
.ml-section__sub { text-align: center; color: var(--text); margin: 0 0 32px; }

.ml-prose > * + * { margin-top: 1em; }
.ml-prose h2 { margin-top: 1.6em; }
.ml-prose img { border-radius: 8px; }

/* -------------------------------------------------------------- header */

.ml-header {
	background: var(--brand-primary);
	position: sticky; top: 0;
	z-index: var(--z-header);
}
.ml-header__bar {
	height: var(--header-h);
	display: flex; align-items: center; justify-content: space-between;
	gap: 16px;
	padding: 10px 40px;
	max-width: 1920px; margin: 0 auto;
}
.ml-header__logo { display: inline-flex; align-items: center; text-decoration: none; }
.ml-header__logo img { max-height: 55px; width: auto; }
.ml-logo-text { font-family: var(--font-head); font-weight: 700; font-size: 20px; color: var(--white); letter-spacing: .02em; }
.ml-logo-text--dark { color: var(--brand-primary); }

.ml-header__actions { display: flex; align-items: center; gap: 6px; }
.ml-header__icon {
	position: relative;
	display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px;
	color: var(--white); background: none; border: 0; border-radius: 50%;
	cursor: pointer; text-decoration: none;
}
.ml-header__icon:hover { background: rgba(255,255,255,.12); }

.ml-cart-badge {
	position: absolute; top: 4px; right: 2px;
	min-width: 18px; height: 18px; padding: 0 5px;
	border-radius: 9px;
	background: var(--badge); color: var(--white);
	font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
}

@media (max-width: 767px) {
	.ml-header__bar { padding: 10px 16px; }
	.ml-logo-text { font-size: 16px; }
}

/* -------------------------------------------------------------- drawer */

.ml-drawer-backdrop {
	position: fixed; inset: 0;
	background: rgba(0,0,0,.45);
	z-index: calc(var(--z-drawer) - 1);
}

.ml-drawer {
	position: fixed; top: 0; right: 0;
	width: var(--drawer-w); max-width: 92vw; height: 100%;
	background: var(--brand-primary);
	z-index: var(--z-drawer);
	transform: translateX(100%);
	transition: transform .3s ease;
	overflow-y: auto;
	padding: 64px 0 40px;
}
.ml-drawer.is-open { transform: translateX(0); }

.ml-drawer__close {
	position: absolute; top: 16px; right: 16px;
	width: 34px; height: 34px; border-radius: 50%;
	display: inline-flex; align-items: center; justify-content: center;
	background: var(--white); color: var(--brand-primary);
	border: 0; cursor: pointer;
}

.ml-drawer__list, .ml-drawer__sub { list-style: none; margin: 0; padding: 0; }

.ml-drawer__item { position: relative; border-bottom: 1px solid rgba(255,255,255,.12); }
.ml-drawer__link {
	display: block;
	font-family: var(--font-head);
	font-size: 14px; font-weight: 600; color: var(--white);
	text-decoration: none;
	padding: 14px 52px 14px 29px;
}
.ml-drawer__link:hover { background: rgba(255,255,255,.08); }
.ml-drawer__item.is-current > .ml-drawer__link { color: var(--brand-tint); }

.ml-drawer__chev {
	position: absolute; top: 6px; right: 10px;
	width: 36px; height: 36px;
	display: inline-flex; align-items: center; justify-content: center;
	background: none; border: 0; color: var(--white); cursor: pointer;
}
.ml-drawer__chev[aria-expanded="true"] { transform: rotate(180deg); }

.ml-drawer__sub { background: rgba(0,0,0,.14); }
.ml-drawer__item--l2 > .ml-drawer__link { font-size: 13px; padding: 11px 20px 11px 40px; }

/* ----------------------------------------------------- floating pills */

.ml-float {
	position: fixed; left: 0; top: 50%; transform: translateY(-50%);
	display: flex; flex-direction: column; gap: 8px;
	z-index: var(--z-float);
}
.ml-float__pill {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 10px 14px 10px 12px;
	border-radius: 0 999px 999px 0;
	color: var(--white); text-decoration: none;
	font-family: var(--font-head); font-size: 13px; font-weight: 600;
	box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.ml-float__pill--call { background: var(--brand-primary); }
.ml-float__pill--wa { background: var(--whatsapp); }

@media (max-width: 767px) {
	.ml-float { top: auto; bottom: 0; transform: none; flex-direction: row; width: 100%; gap: 0; }
	.ml-float__pill { flex: 1; justify-content: center; border-radius: 0; }
}

/* ---------------------------------------------------------------- hero */

.ml-hero { background: var(--brand-tint); padding: 50px 0 60px; }
.ml-hero__inner { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 32px; }
.ml-hero__title { font-size: 46px; line-height: 1; font-weight: 700; margin: 0; }
.ml-hero__sub { font-family: var(--font-head); font-size: 24px; color: var(--brand-primary); margin: 8px 0 24px; }
.ml-hero__media { display: flex; justify-content: flex-end; }
.ml-hero__placeholder {
	width: 100%; min-height: 220px; border-radius: 12px;
	display: grid; place-items: center;
	background: rgba(27,127,75,.08); color: var(--brand-primary);
}

/* ---------------------------------------------------------- quick links */

.ml-quick { margin-top: -40px; position: relative; z-index: 2; }
.ml-quick__box {
	display: grid; grid-template-columns: repeat(4, 1fr);
	background: var(--white);
	border: 1px solid var(--brand-primary);
	border-radius: 8px;
	overflow: hidden;
}
.ml-quick__item {
	display: flex; align-items: center; gap: 12px;
	padding: 20px 18px;
	text-decoration: none; color: inherit;
	border-right: 1px solid rgba(27,127,75,.2);
}
.ml-quick__item:last-child { border-right: 0; }
.ml-quick__item:hover { background: var(--brand-tint); }
.ml-quick__icon { color: var(--brand-primary); display: inline-flex; }
.ml-quick__text { display: flex; flex-direction: column; }
.ml-quick__title { font-family: var(--font-head); font-size: 18px; font-weight: 700; color: var(--text); line-height: 1.2; }
.ml-quick__sub { font-size: 12px; color: var(--text-muted); }

@media (max-width: 1024px) {
	.ml-quick { margin-top: 24px; }
	.ml-quick__box { grid-template-columns: repeat(2, 1fr); }
	.ml-quick__item:nth-child(2) { border-right: 0; }
	.ml-quick__item:nth-child(-n+2) { border-bottom: 1px solid rgba(27,127,75,.2); }
	.ml-quick__title { font-size: 20px; }
}
@media (max-width: 560px) {
	.ml-quick__box { grid-template-columns: 1fr; }
	.ml-quick__item { border-right: 0; border-bottom: 1px solid rgba(27,127,75,.2); }
}

/* ------------------------------------------------------- flip service grid */

.ml-flipgrid {
	display: grid;
	grid-template-columns: repeat(8, 1fr);
	gap: 15px;
}
.ml-flip {
	display: block;
	perspective: 800px;
	text-decoration: none;
	min-height: 120px;
}
.ml-flip__inner {
	position: relative; display: block; height: 120px;
	transition: transform .6s ease-in-out;
	transform-style: preserve-3d;
}
.ml-flip:hover .ml-flip__inner,
.ml-flip:focus-visible .ml-flip__inner { transform: rotateY(180deg); }

.ml-flip__face {
	position: absolute; inset: 0;
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
	border-radius: var(--radius-card);
	box-shadow: var(--shadow-card);
	backface-visibility: hidden;
	padding: 8px;
	text-align: center;
}
.ml-flip__face--front { background: var(--white); color: var(--brand-primary); }
.ml-flip__face--back { background: var(--brand-primary); color: var(--white); transform: rotateY(180deg); }
.ml-flip__label { font-family: var(--font-head); font-size: 14px; font-weight: 700; line-height: 1.2; }

@media (max-width: 1024px) { .ml-flipgrid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 560px)  { .ml-flipgrid { grid-template-columns: repeat(2, 1fr); } }

@media (prefers-reduced-motion: reduce) {
	.ml-flip__inner { transition: none; }
}

/* ------------------------------------------------------------ media band */

.ml-media-band { background: var(--brand-tint); }
.ml-media-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ml-media-card { background: var(--white); border-radius: 10px; padding: 10px; }
.ml-media-card__img { display: block; border-radius: 8px; overflow: hidden; }
.ml-media-card__ph {
	display: grid; place-items: center; height: 175px;
	background: rgba(27,127,75,.08); color: var(--brand-primary);
}
.ml-media-card__title { font-size: 18px; font-weight: 700; margin: 14px 0 6px; }
.ml-media-card__title a { color: var(--text); text-decoration: none; }
.ml-media-card__text { font-size: 14px; margin: 0 0 10px; }

.ml-seemore {
	font-family: var(--font-head); font-size: 14px; font-weight: 500;
	color: var(--brand-primary); text-decoration: none;
}
.ml-seemore::after { content: " →"; }

@media (max-width: 1024px) { .ml-media-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .ml-media-grid { grid-template-columns: 1fr; } }

/* ----------------------------------------------------------- stats band */

.ml-stats { background: var(--brand-deep); padding: 40px 0; }
.ml-stats__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
.ml-stat { text-align: center; color: var(--surface-alt); }
.ml-stat__icon { display: block; opacity: .85; margin-bottom: 6px; }
.ml-stat__n { display: block; font-family: var(--font-head); font-size: 40px; line-height: 1.2; font-weight: 700; color: var(--surface-alt); }
.ml-stat__label { font-size: 14px; }

@media (max-width: 1024px) { .ml-stats__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .ml-stats__grid { grid-template-columns: repeat(2, 1fr); } .ml-stat__n { font-size: 30px; } }

/* -------------------------------------------------------------- marquee */

.ml-marquee { overflow: hidden; padding: 16px 0; }
.ml-marquee__track { display: flex; gap: 40px; width: max-content; animation: ml-scroll 40s linear infinite; }
.ml-marquee:hover .ml-marquee__track { animation-play-state: paused; }
.ml-marquee__item img { height: 43px; width: auto; filter: grayscale(1); opacity: .75; }
@keyframes ml-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ml-marquee__track { animation: none; } }

/* --------------------------------------------------------------- banner */

.ml-banner { background: var(--brand-tint); padding: 36px 0; }
.ml-banner__title { font-size: 36px; line-height: 1.15; font-weight: 700; margin: 0; }
.ml-banner__sub { margin: 8px 0 0; color: var(--brand-primary); font-family: var(--font-head); }
@media (max-width: 767px) { .ml-banner__title { font-size: 26px; } }

/* -------------------------------------------------------- split layout */

.ml-split { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 40px; align-items: start; }
@media (max-width: 1024px) { .ml-split { grid-template-columns: 1fr; } }

.ml-useful { background: var(--brand-tint); border-radius: 10px; padding: 20px; }
.ml-useful__title { font-size: 18px; margin-bottom: .6em; }
.ml-useful ul { list-style: none; margin: 0; padding: 0; }
.ml-useful li { display: flex; align-items: center; gap: 8px; padding: 7px 0; color: var(--brand-primary); }
.ml-useful a { color: var(--text); text-decoration: none; font-size: 14px; }
.ml-useful a:hover { color: var(--brand-primary); }

/* ----------------------------------------------------------- icon lists */

.ml-iconlist { list-style: none; margin: 0 0 1em; padding: 0; }
.ml-iconlist li { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; }
.ml-iconlist li > .ml-icon { color: var(--brand-primary); margin-top: 3px; }
.ml-iconlist--cols { columns: 2; column-gap: 32px; }
.ml-iconlist--cols li { break-inside: avoid; }
@media (max-width: 640px) { .ml-iconlist--cols { columns: 1; } }

.ml-ctarow { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; }

/* -------------------------------------------------------------- buttons */

.ml-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	font-family: var(--font-head); font-size: 15px; font-weight: 700;
	color: var(--white); background: var(--brand-primary);
	border: 1px solid var(--brand-primary);
	border-radius: var(--radius-btn);
	padding: 12px 28px;
	text-decoration: none; cursor: pointer;
	transition: background .25s, color .25s;
}
.ml-btn:hover { background: var(--brand-tint); color: var(--brand-primary); }
.ml-btn--ghost { background: transparent; color: var(--brand-primary); }
.ml-btn--ghost:hover { background: var(--brand-primary); color: var(--white); }
.ml-btn--block { width: 100%; }
.ml-btn--xs { font-size: 13px; padding: 7px 16px; }
.ml-btn--pill { border-radius: 999px; }
.ml-btn--submit { padding: 12px 70px; }
.ml-btn--tour { border-radius: 3px; font-family: var(--font-alt); font-weight: 500; }
.ml-btn[disabled] { opacity: .45; cursor: not-allowed; }

.ml-linkbtn { background: none; border: 0; padding: 0; color: var(--brand-primary); text-decoration: underline; cursor: pointer; font: inherit; }

/* ---------------------------------------------------------------- forms */

.ml-form { margin-top: 16px; }
.ml-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ml-form--grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ml-form__actions { grid-column: 1 / -1; }
@media (max-width: 640px) { .ml-form__row, .ml-form--grid { grid-template-columns: 1fr; } }

.ml-field { position: relative; margin-bottom: 16px; }
.ml-field input,
.ml-field select,
.ml-field textarea {
	width: 100%;
	font-family: var(--font-head); font-size: 14px; color: var(--text);
	background: var(--white);
	border: 1px solid var(--brand-primary);
	border-radius: var(--radius-pill);
	padding: 0 20px;
	height: 52px;
}
.ml-field textarea { border-radius: 6px; height: auto; padding: 14px 18px; resize: vertical; }
.ml-field--icon > .ml-icon { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--brand-primary); pointer-events: none; }
.ml-field--icon input { padding-left: 44px; }
.ml-field--area { margin-bottom: 20px; }
.ml-label { display: block; font-family: var(--font-head); font-weight: 600; font-size: 14px; margin-bottom: 6px; color: var(--brand-primary); }
.ml-hp { position: absolute; left: -9999px; }

.ml-alert { border-radius: 8px; padding: 14px 18px; margin-bottom: 16px; font-size: 15px; }
.ml-alert--ok { background: #E8F5E9; color: #1B5E20; }
.ml-alert--err { background: #FDECEA; color: #9B2C21; }

.ml-radiolist { list-style: none; margin: 0; padding: 0; }
.ml-radiolist li { padding: 8px 0; }

.ml-searchform { display: flex; gap: 12px; margin-bottom: 28px; }
.ml-searchform input {
	flex: 1; height: 52px; padding: 0 20px; font-size: 15px;
	border: 1px solid var(--brand-primary); border-radius: var(--radius-pill);
}

/* ----------------------------------------------------------- icon boxes */

.ml-iconboxes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 40px; }
.ml-iconbox { background: var(--brand-tint); border-radius: 10px; padding: 22px; color: var(--brand-primary); }
.ml-iconbox h3 { font-size: 17px; margin: 10px 0 4px; }
.ml-iconbox p { margin: 0; font-size: 14px; }
.ml-iconbox a { text-decoration: none; }
@media (max-width: 860px) { .ml-iconboxes { grid-template-columns: 1fr; } }

/* ------------------------------------------------------- location cards */

.ml-locgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 860px) { .ml-locgrid { grid-template-columns: 1fr; } }

.ml-loc {
	border: 1px solid rgba(27,127,75,.18);
	border-radius: 10px;
	padding: 18px 20px;
	background: var(--white);
	height: 100%;
}
.ml-loc__name { font-size: 18px; margin-bottom: 6px; }
.ml-loc__addr { margin: 0 0 10px; font-size: 14px; color: var(--text); }
.ml-loc__badge { font-size: 13px; font-weight: 600; color: var(--brand-primary); margin: 0 0 8px; }
.ml-loc__dir, .ml-loc__tel {
	display: inline-flex; align-items: center; gap: 8px;
	font-size: 14px; font-weight: 600; text-decoration: none;
	color: var(--brand-primary);
	margin-bottom: 10px;
}
.ml-loc__hours { list-style: none; margin: 0 0 10px; padding: 0; }
.ml-loc__hours li { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--text-muted); padding: 2px 0; }
.ml-loc__hours .ml-icon { color: var(--brand-primary); }
.ml-loc__map { margin-top: 12px; border-radius: 8px; overflow: hidden; }
.ml-loc__map iframe { display: block; }

.ml-locfilter { margin-bottom: 24px; }
.ml-locfilter__search { max-width: 420px; }

.ml-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ml-chip {
	font-family: var(--font-head); font-size: 13px; font-weight: 600;
	border: 1px solid var(--brand-primary); background: var(--white); color: var(--brand-primary);
	border-radius: 999px; padding: 7px 16px; cursor: pointer;
}
.ml-chip.is-active { background: var(--brand-primary); color: var(--white); }

/* ------------------------------------------------------------ packages */

.ml-pkggrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 1024px) { .ml-pkggrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .ml-pkggrid { grid-template-columns: 1fr; } }

.ml-pkgcard {
	border: 1px solid rgba(27,127,75,.18);
	border-radius: 10px; padding: 22px; text-align: center;
	display: flex; flex-direction: column; gap: 8px;
	transition: box-shadow .3s, transform .3s;
}
.ml-pkgcard:hover { box-shadow: var(--shadow-card); transform: translateY(-2px); }
.ml-pkgcard__icon { color: var(--brand-primary); }
.ml-pkgcard__title { font-size: 17px; margin: 0; }
.ml-pkgcard__from { margin: 0; font-size: 14px; color: var(--text-muted); }
.ml-pkgcard .ml-seemore { margin-top: auto; }

.ml-pkg { border-bottom: 1px solid rgba(27,127,75,.15); padding: 24px 0; }
.ml-pkg__audience { font-size: 14px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); margin: 0; }
.ml-pkg__name { font-size: 22px; margin: 4px 0 14px; }
.ml-pkg__foot { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.ml-pkg__price { font-family: var(--font-head); font-size: 22px; font-weight: 700; color: var(--brand-primary); }

/* ---------------------------------------------------------- accordions */

.ml-accordion__item { border: 1px solid rgba(27,127,75,.2); border-radius: 8px; margin-bottom: 10px; overflow: hidden; }
.ml-accordion__head {
	width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
	background: var(--brand-tint); border: 0; cursor: pointer;
	font-family: var(--font-head); font-size: 15px; font-weight: 600; color: var(--brand-primary);
	padding: 14px 18px; text-align: left;
}
.ml-accordion__head[aria-expanded="true"] .ml-icon { transform: rotate(180deg); }
.ml-accordion__body { padding: 16px 18px; }

/* ---------------------------------------------------------------- tabs */

.ml-tabs__nav { display: flex; flex-wrap: wrap; gap: 2px; margin-bottom: 24px; }
.ml-tabs__btn {
	font-family: var(--font-head); font-size: 15px; font-weight: 600;
	background: var(--line); color: #222; border: 0; cursor: pointer;
	padding: 16px 24px;
}
.ml-tabs__btn.is-active { background: var(--brand-primary); color: var(--white); }
.ml-tabs__panel { scroll-margin-top: 90px; }
.ml-tabs__acc { display: none; }

@media (max-width: 767px) {
	/* Tabs become an accordion, as on the reference site. */
	.ml-tabs__nav { display: none; }
	.ml-tabs__panel { display: block !important; border: 1px solid rgba(27,127,75,.2); border-radius: 8px; margin-bottom: 10px; overflow: hidden; }
	.ml-tabs__panel[hidden] { display: block !important; }
	.ml-tabs__acc {
		display: flex; width: 100%; align-items: center; justify-content: space-between;
		background: var(--brand-tint); border: 0; cursor: pointer;
		font-family: var(--font-head); font-weight: 600; color: var(--brand-primary);
		padding: 14px 18px; text-align: left;
	}
	.ml-tabs__acc[aria-expanded="true"] .ml-icon { transform: rotate(180deg); }
	.ml-tabs__body { padding: 0 18px 18px; }
	.ml-tabs__acc[aria-expanded="false"] + .ml-tabs__body { display: none; }
}

.ml-contactlist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 16px; }
.ml-contactlist h3 { font-size: 16px; margin: 0 0 4px; }
.ml-contactlist a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-size: 14px; }

/* ----------------------------------------------------------- post grids */

.ml-postgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 1024px) { .ml-postgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .ml-postgrid { grid-template-columns: 1fr; } }

.ml-pcard__thumb { display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 16/9; background: var(--brand-tint); }
.ml-pcard__thumb img { width: 100%; height: 100%; object-fit: cover; }
.ml-pcard__ph { display: grid; place-items: center; height: 100%; color: var(--brand-primary); }
.ml-pcard__title { font-size: 17px; margin: 12px 0 4px; }
.ml-pcard__title a { color: var(--text); text-decoration: none; }
.ml-pcard__title a:hover { color: var(--brand-primary); }
.ml-pcard__meta { font-size: 13px; color: var(--text-muted); margin: 0; }

.ml-pagination ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 32px 0 0; }
.ml-pagination a, .ml-pagination span {
	display: inline-block; padding: 8px 14px; border-radius: 6px;
	border: 1px solid rgba(27,127,75,.3); text-decoration: none; font-size: 14px;
}
.ml-pagination .current { background: var(--brand-primary); color: var(--white); border-color: var(--brand-primary); }

.ml-embed { position: relative; aspect-ratio: 16/9; margin-bottom: 24px; }
.ml-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 10px; }
.ml-single__hero img { border-radius: 10px; }
.ml-single__meta { font-size: 13px; color: var(--text-muted); margin-top: 20px; }
.ml-related { background: var(--brand-tint); }

/* --------------------------------------------------------- team/values */

.ml-valuegrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .ml-valuegrid { grid-template-columns: 1fr; } }
.ml-value { background: var(--white); border: 1px solid rgba(27,127,75,.15); border-radius: 10px; padding: 22px; }
.ml-value__icon { color: var(--brand-primary); }
.ml-value h3 { font-size: 17px; margin: 10px 0 6px; }
.ml-value p { margin: 0; font-size: 14px; }
.ml-values { background: var(--brand-tint); }

.ml-ceo { display: grid; grid-template-columns: 246px 1fr; gap: 28px; align-items: start; margin-bottom: 32px; }
@media (max-width: 767px) { .ml-ceo { grid-template-columns: 1fr; } }
.ml-ceo__photo { display: grid; place-items: center; height: 294px; border-radius: 10px; background: var(--brand-tint); color: var(--brand-primary); }

.ml-teamgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1024px) { .ml-teamgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px)  { .ml-teamgrid { grid-template-columns: 1fr; } }
.ml-member { text-align: center; }
.ml-member__photo { display: grid; place-items: center; width: 125px; height: 125px; border-radius: 50%; margin: 0 auto 12px; background: var(--brand-tint); color: var(--brand-primary); }
.ml-member__name { font-size: 16px; margin: 0; }
.ml-member__role { font-size: 13px; color: var(--text-muted); margin: 4px 0 0; }

.ml-logorow { display: flex; flex-wrap: wrap; align-items: center; gap: 32px; margin: 20px 0; }
.ml-logorow img { height: 50px; width: auto; }
.ml-logorow--square img { height: 118px; }

/* ------------------------------------------------- patient services app */

.ml-pshero { background: var(--brand-tint); padding: 40px 0; }
.ml-pshero__title { font-size: 34px; margin: 0; }
.ml-pshero__sub { margin: 6px 0 0; font-family: var(--font-head); color: var(--brand-primary); }

.ml-catcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin: 16px 0 24px; }
@media (max-width: 1024px) { .ml-catcards { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 560px)  { .ml-catcards { grid-template-columns: repeat(2, 1fr); } }

.ml-catcard {
	display: flex; flex-direction: column; align-items: center; gap: 6px;
	border: 1px solid rgba(27,127,75,.25); border-radius: 8px;
	background: var(--white); color: var(--brand-primary);
	font-family: var(--font-head); font-size: 11px; font-weight: 600; line-height: 1.2;
	padding: 12px 6px; cursor: pointer; text-align: center;
}
.ml-catcard.is-active { background: var(--brand-primary); color: var(--white); border-color: var(--brand-primary); }

.ml-psbar { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.ml-psbar__search { flex: 1 1 320px; margin-bottom: 0; }

.ml-tablewrap { overflow-x: auto; }
.ml-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
.ml-table th {
	background: var(--brand-primary); color: var(--white);
	font-family: var(--font-head); font-weight: 600; text-align: left;
	padding: 14px 16px;
}
.ml-table td { padding: 12px 16px; border-bottom: 1px solid rgba(0,0,0,.08); vertical-align: top; }
.ml-table tr:nth-child(even) td { background: rgba(27,127,75,.03); }
.ml-table__name { font-weight: 600; }
.ml-sort { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.ml-infobtn { background: none; border: 0; color: var(--brand-primary); cursor: pointer; padding: 0 4px; vertical-align: middle; }

@media (max-width: 767px) {
	.ml-table { min-width: 0; }
	.ml-table thead { display: none; }
	.ml-table tr { display: block; border: 1px solid rgba(27,127,75,.2); border-radius: 8px; margin-bottom: 12px; padding: 6px 0; }
	.ml-table td { display: flex; justify-content: space-between; gap: 16px; border: 0; padding: 8px 14px; }
	.ml-table td::before { content: attr(data-label); font-weight: 600; color: var(--brand-primary); }
	.ml-table tr:nth-child(even) td { background: none; }
}

.ml-tablefoot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; font-size: 14px; }
.ml-tablefoot select { height: 36px; border-radius: 6px; border: 1px solid var(--brand-primary); padding: 0 8px; }
.ml-tablefoot__info { margin: 0; color: var(--text-muted); }
.ml-tablefoot__pager { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ml-pager-gap { padding: 0 2px; color: var(--text-muted); }
.ml-tablefoot__pager button {
	border: 1px solid rgba(27,127,75,.3); background: var(--white);
	border-radius: 6px; padding: 7px 13px; cursor: pointer; font-size: 14px;
}
.ml-tablefoot__pager button.is-active { background: var(--brand-primary); color: var(--white); border-color: var(--brand-primary); }
.ml-tablefoot__pager button[disabled] { opacity: .45; cursor: not-allowed; }

/* ------------------------------------------------------------- stepper */

.ml-stepper { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 24px 0 32px; }
.ml-stepper__step { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--brand-tint); color: var(--brand-primary); font-size: 14px; font-family: var(--font-head); }
.ml-stepper__step.is-active { background: var(--brand-primary); color: var(--white); }
.ml-stepper__n { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,.3); font-size: 12px; font-weight: 700; }
.ml-stepper__step:not(.is-active) .ml-stepper__n { background: rgba(27,127,75,.15); }

.ml-step__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.ml-step__nav { display: flex; gap: 12px; margin-top: 28px; }

.ml-totals { max-width: 360px; margin: 24px 0 0; margin-left: auto; }
.ml-totals > div { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid rgba(0,0,0,.08); }
.ml-totals dt, .ml-totals dd { margin: 0; }
.ml-totals__grand { font-family: var(--font-head); font-weight: 700; font-size: 18px; color: var(--brand-primary); border-bottom: 0; }

.ml-reportbar { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-bottom: 20px; }
.ml-reportbar .ml-field { margin-bottom: 0; min-width: 220px; }


/* --------------------------------------------------------------- modals */

.ml-modal { position: fixed; inset: 0; z-index: var(--z-modal); display: flex; align-items: center; justify-content: center; padding: 20px; }
.ml-modal[hidden] { display: none; }
.ml-modal__backdrop { position: absolute; inset: 0; background: var(--overlay); }
.ml-modal__dialog { position: relative; z-index: 1; width: 100%; max-width: 420px; background: var(--white); border-radius: 12px; padding: 32px 28px; text-align: center; max-height: 90vh; overflow-y: auto; }
.ml-modal--wide .ml-modal__dialog { max-width: 640px; text-align: left; }
.ml-modal--video .ml-modal__dialog { max-width: 800px; background: none; padding: 0; }
.ml-modal--light .ml-modal__dialog { max-width: 92vw; background: none; padding: 0; }
.ml-modal__x {
	position: absolute; top: -14px; right: -14px;
	width: 34px; height: 34px; border-radius: 50%;
	border: 0; background: var(--white); color: var(--brand-primary);
	font-size: 22px; line-height: 1; cursor: pointer;
	box-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.ml-modal--video .ml-modal__x, .ml-modal--light .ml-modal__x { top: -40px; right: 0; background: none; color: var(--white); font-size: 34px; box-shadow: none; }
.ml-modal__video { position: relative; aspect-ratio: 16/9; }
.ml-modal__video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 8px; }
.ml-modal__icon { color: var(--brand-primary); margin-bottom: 8px; }
.ml-modal__title { font-size: 22px; margin-bottom: 6px; }
.ml-modal__lead { font-size: 14px; color: var(--text-muted); margin: 0 0 18px; }
.ml-modal__foot { font-size: 13px; margin: 12px 0; }

.ml-otp { display: flex; justify-content: center; gap: 12px; margin-bottom: 18px; }
.ml-otp input { width: 54px; height: 60px; text-align: center; font-size: 22px; border: 1px solid var(--brand-primary); border-radius: 10px; }

.ml-deflist { list-style: none; margin: 0 0 18px; padding: 0; text-align: left; }
.ml-deflist li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid rgba(0,0,0,.08); font-size: 14px; }

/* --------------------------------------------------------------- toasts */

.ml-toast-stack { position: fixed; top: 20px; right: 20px; z-index: calc(var(--z-drawer) + 2); display: flex; flex-direction: column; gap: 10px; }
.ml-toast {
	background: var(--brand-primary); color: var(--white);
	font-size: 14px; padding: 12px 18px; border-radius: 8px;
	box-shadow: 0 4px 14px rgba(0,0,0,.25);
	animation: ml-toast-in .25s ease;
	max-width: 320px;
}
.ml-toast--err { background: #9B2C21; }
@keyframes ml-toast-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* --------------------------------------------------------------- footer */

.ml-footer { background: var(--surface-alt); padding: 48px 0 0; margin-top: 40px; }
.ml-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.4fr; gap: 36px 32px; padding-bottom: 40px; }
@media (max-width: 1024px) { .ml-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .ml-footer__grid { grid-template-columns: 1fr; } }

.ml-footer__title { font-size: 15px; font-weight: 700; margin-bottom: 12px; }
.ml-footer__list { list-style: none; margin: 0; padding: 0; }
.ml-footer__list li { padding: 5px 0; }
.ml-footer__list a { color: var(--brand-primary); text-decoration: none; font-size: 14px; }
.ml-footer__list a:hover { color: var(--brand-primary); }

.ml-footer__logo { display: inline-block; margin-bottom: 12px; text-decoration: none; }
.ml-footer__help { font-size: 14px; margin: 0 0 12px; }
.ml-footer__phone { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 700; color: var(--brand-primary); text-decoration: none; }
.ml-footer__hours { font-size: 13px; color: var(--text-muted); margin: 6px 0 14px; }
.ml-footer__accred-note { font-size: 13px; color: var(--text-muted); }

.ml-social { list-style: none; display: flex; gap: 10px; padding: 0; margin: 0; }
.ml-social__dot {
	display: grid; place-items: center; width: 34px; height: 34px;
	border-radius: 50%; background: var(--brand-primary); color: var(--white);
	font-family: var(--font-head); font-weight: 700; font-size: 14px;
}

.ml-footer__bottom { background: var(--brand-tint); padding: 16px 0; font-size: 14px; color: var(--brand-primary); text-align: center; }

.ml-totop {
	position: fixed; right: 20px; bottom: 20px;
	width: 44px; height: 44px; border-radius: 50%;
	background: var(--brand-primary); color: var(--white); border: 0;
	display: none; place-items: center; cursor: pointer;
	z-index: var(--z-float);
	box-shadow: 0 2px 10px rgba(0,0,0,.25);
}
.ml-totop.is-visible { display: grid; }

@media (max-width: 767px) { .ml-totop { bottom: 64px; } }

/* --------------------------------------------------------- 404 + misc */

.ml-404 { text-align: center; padding: 80px 0; }
.ml-404__title { font-size: 32px; }
.ml-404__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }

/* App (canvas) pages keep the chrome off. */
.ml-app .ml-section { padding-top: 16px; }

/* Responsive visibility helpers mirroring the reference build. */
@media (max-width: 1024px) { .ml-hide-tablet { display: none !important; } }
@media (max-width: 767px)  { .ml-hide-mobile { display: none !important; } }
@media (min-width: 1025px) { .ml-only-mobile { display: none !important; } }

/* ---- offer cards (Services we offer) ---- */
.ml-offergrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ml-offer {
	position: relative; display: flex; flex-direction: column; gap: 10px; padding: 10px 10px 16px;
	background: var(--surface-alt); border: 1px solid var(--line); border-radius: var(--radius-card);
	text-align: center; text-decoration: none; color: var(--text);
	transition: transform .2s, box-shadow .2s, border-color .2s;
}
.ml-offer:hover, .ml-offer:focus-visible { transform: translateY(-3px); border-color: var(--brand-primary); box-shadow: 0 6px 18px rgba(27,127,75,.18); }
.ml-offer__badge {
	position: absolute; top: 4px; left: 4px; z-index: 2; padding: 3px 9px; border-radius: 6px;
	background: var(--badge); color: var(--white); font: 600 12px/1.3 var(--font-head);
}
.ml-offer__media {
	position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1;
	overflow: hidden; border-radius: 6px; background: var(--brand-tint); color: var(--brand-primary);
}
.ml-offer__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ml-offer__banner {
	position: absolute; top: 0; left: 0; right: 0; padding: 6px 8px; background: rgba(255,255,255,.82);
	color: var(--brand-primary); font: 700 13px/1.15 var(--font-head); text-transform: uppercase;
}
.ml-offer__title { font: 600 16px/1.3 var(--font-head); color: var(--text); }
.ml-offer__price { font-size: 14px; }
.ml-offer__price del { color: var(--badge); margin-right: 4px; }
.ml-offer__price ins { color: var(--brand-deep); font-weight: 600; text-decoration: none; }
@media (max-width: 800px) { .ml-offergrid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
@media (max-width: 420px) { .ml-offergrid { grid-template-columns: 1fr; } }

.ml-offertabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 24px; }
.ml-offertab {
	padding: 9px 18px; border: 1px solid var(--brand-primary); border-radius: var(--radius-pill);
	background: var(--white); color: var(--brand-primary); font: 600 14px/1 var(--font-head); cursor: pointer;
	transition: background .2s, color .2s;
}
.ml-offertab:hover { background: var(--brand-tint); }
.ml-offertab.is-active { background: var(--brand-primary); color: var(--white); }
.ml-offertab:focus-visible { outline: 3px solid var(--brand-deep); outline-offset: 2px; }
.ml-offer[hidden] { display: none; }
@media (max-width: 560px) { .ml-offertabs { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; padding-bottom: 6px; } .ml-offertab { white-space: nowrap; } }

.ml-hero__img { width: 100%; height: 340px; object-fit: cover; border-radius: 12px; box-shadow: 0 8px 24px rgba(15,92,52,.18); }

.ml-footer__addr { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0 0; font-size: 14px; line-height: 1.5; }
.ml-footer__addr .ml-icon { flex: none; margin-top: 3px; }

/* logo: dark artwork sits on a white plate in the green header */
.ml-header__logo { background: var(--white); border-radius: 10px; padding: 5px 14px; }
.ml-header__logo img { max-height: 44px; width: auto; display: block; }
.ml-footer__logo-img { display: block; width: 260px; max-width: 100%; height: auto; }
@media (max-width: 560px) { .ml-header__logo { padding: 4px 10px; } .ml-header__logo img { max-height: 36px; } }

/* ---- footer polish ---- */
.ml-footer { padding: 56px 0 0; margin-top: 56px; border-top: 4px solid var(--brand-primary); }
.ml-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.5fr; gap: 40px; padding-bottom: 36px; align-items: start; }
.ml-footer__grid > .ml-footer__col:nth-child(n+5) { padding-top: 0; border-top: 0; }
.ml-footer__grid--links { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); padding-top: 0; padding-bottom: 40px; }
.ml-footer__grid--links::before { content: ""; grid-column: 1 / -1; border-top: 1px solid var(--line); }
.ml-footer__title { font-size: 17px; font-weight: 600; margin: 0 0 16px; padding-bottom: 10px; position: relative; }
.ml-footer__title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 32px; height: 3px; border-radius: 2px; background: var(--brand-primary); }
.ml-footer__list a { font-size: 15px; line-height: 1.45; }
.ml-footer__list li { padding: 5px 0 5px 16px; }
.ml-footer__logo { margin-bottom: 16px; }
.ml-footer__bottom { padding: 18px 0; font-size: 14px; }
@media (max-width: 1024px) { .ml-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .ml-footer__grid, .ml-footer__grid--links { grid-template-columns: 1fr; gap: 28px; } }

/* ---- footer: contact column, bullets, socials (v2) ---- */
.ml-footer__list li { position: relative; }
.ml-footer__list li::before { content: ""; position: absolute; left: 0; top: 50%; width: 5px; height: 5px; margin-top: -2px; border-radius: 50%; background: var(--text-muted); }
.ml-footer__help { color: var(--brand-primary); line-height: 1.8; font-size: 15px; margin: 0 0 20px; }
.ml-social__dot { background: var(--white); color: var(--brand-primary); border: 1px solid var(--line); width: 40px; height: 40px; text-decoration: none; transition: background .2s, color .2s; }
.ml-social__dot:hover { background: var(--brand-primary); color: var(--white); }
.ml-fcontact { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.ml-fcontact li { display: flex; gap: 14px; align-items: flex-start; font-size: 15px; line-height: 1.6; color: var(--brand-primary); }
.ml-fcontact a { color: var(--brand-primary); text-decoration: none; }
.ml-fcontact a:hover { text-decoration: underline; }
.ml-fcontact__ico { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border: 1.5px dotted var(--text-muted); border-radius: 50%; color: var(--text-muted); }
.ml-fcontact li > span:last-child, .ml-fcontact li > a { padding-top: 7px; }

/* ---- footer: 4 columns, contact under the logo ---- */
.ml-footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; }
.ml-footer__brand .ml-fcontact { margin: 0 0 22px; }
.ml-footer__brand .ml-footer__help { margin-bottom: 18px; }

/* ---- single location ---- */
.ml-onelocation { display: grid; grid-template-columns: minmax(280px, 1fr) 2fr; gap: 24px; align-items: stretch; }
.ml-onelocation .ml-loc { height: 100%; }
.ml-onelocation__map { border-radius: var(--radius-card); overflow: hidden; border: 1px solid var(--line); min-height: 360px; }
.ml-onelocation__map iframe { display: block; width: 100%; height: 100%; min-height: 460px; }
@media (max-width: 860px) { .ml-onelocation { grid-template-columns: 1fr; } .ml-onelocation__map iframe { min-height: 340px; } }

/* ---- footer: slightly smaller type ---- */
.ml-footer__title { font-size: 15px; margin-bottom: 14px; }
.ml-footer__list a { font-size: 13.5px; }
.ml-footer__list li { padding-top: 4px; padding-bottom: 4px; }
.ml-footer__help { font-size: 13.5px; line-height: 1.7; }
.ml-fcontact { gap: 12px; }
.ml-fcontact li { font-size: 13.5px; line-height: 1.55; }
.ml-fcontact__ico { width: 34px; height: 34px; }
.ml-fcontact li > span:last-child, .ml-fcontact li > a { padding-top: 6px; }
.ml-social__dot { width: 36px; height: 36px; }
.ml-footer__bottom { font-size: 13px; }

.ml-confirm h5 { margin: 14px 0 4px; font-size: 14px; color: var(--brand-primary); }
.ml-confirm p, .ml-confirm ul { margin: 0 0 6px; font-size: 14px; }
.ml-confirm ul { padding-left: 18px; }
.ml-stepper__step.is-done .ml-stepper__n { background: var(--brand-primary); color: var(--white); }

/* ---- Online Test Booking: centred layout, floating pills out of the way ---- */
body.ml-cart { padding-bottom: 84px; }
body.ml-cart .ml-float,
body.ml-cart .ml-float {
	top: auto; left: auto; right: 16px; bottom: 16px; transform: none;
	flex-direction: row; width: auto; gap: 10px;
	transition: transform .25s ease, opacity .25s ease;
}
body.ml-cart .ml-float__pill { flex: none; width: 46px; height: 46px; padding: 0; justify-content: center; border-radius: 50%; }
body.ml-cart .ml-float__pill span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
body.ml-cart .ml-float.is-away { transform: translateY(140%); opacity: 0; pointer-events: none; }

body.ml-cart [data-cart-page] .ml-container { max-width: 820px; text-align: center; }
body.ml-cart .ml-stepper { justify-content: center; }
body.ml-cart .ml-step { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 24px; margin: 0 auto; text-align: center; }
body.ml-cart .ml-step__head { justify-content: center; flex-wrap: wrap; }
body.ml-cart .ml-step .ml-table { text-align: left; }
body.ml-cart .ml-form, body.ml-cart .ml-radiolist { max-width: 620px; margin-left: auto; margin-right: auto; text-align: left; }
body.ml-cart .ml-radiolist { display: inline-block; }
body.ml-cart .ml-totals { margin: 24px auto 0; text-align: left; }
body.ml-cart .ml-step__nav { justify-content: center; }
body.ml-cart .ml-confirm { max-width: 520px; margin: 0 auto; text-align: left; background: var(--surface-alt); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 18px 22px; }
body.ml-cart .ml-confirm ul { text-align: left; }
body.ml-cart .ml-confirm .ml-alert { text-align: center; }

.ml-modal--booked .ml-modal__dialog { max-width: 520px; text-align: center; }
.ml-booked__tick { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 8px; border-radius: 50%; background: var(--brand-tint); }
.ml-modal--booked .ml-confirm { margin: 14px 0; text-align: left; }
.ml-booked__ref { margin: 0 0 6px; font-size: 15px; }
.ml-booked__count { margin: 0 0 14px; color: var(--text-muted); font-size: 14px; }

/* ------------------------------------------- tablet: compact floating pills */
@media (min-width: 768px) and (max-width: 1100px) {
	.ml-float__pill { padding: 10px 12px 10px 10px; }
	.ml-float__pill span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* ------------------------------------------- large screens (FHD / 2K / 4K) */
/* The layout is px-based, so scale the whole page instead of leaving a narrow strip in the middle. */
@media (min-width: 1920px) { body { zoom: 1.2; } }
@media (min-width: 2560px) { body { zoom: 1.6; } }
@media (min-width: 3200px) { body { zoom: 2; } }

/* footer: keep the single-column mobile / 2-column tablet layout after the 4-column override above */
@media (max-width: 1024px) { .ml-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .ml-footer__grid { grid-template-columns: 1fr; } }

/* test page: tabs become one swipeable row on phones; tablet table drops the Specimen column (still in the info popup) */
@media (max-width: 560px) {
	.ml-catcards { display: flex; overflow-x: auto; gap: 8px; padding-bottom: 8px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
	.ml-catcard { flex: 0 0 112px; scroll-snap-align: start; }
}
@media (min-width: 768px) and (max-width: 1100px) {
	[data-test-table] thead th:nth-child(3), [data-test-table] tbody td:nth-child(3) { display: none; }
}

/* test page: A–Z range chips + search state */
.ml-ranges { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 16px; }
.ml-ranges__label { font-family: var(--font-head); font-size: 13px; font-weight: 600; color: var(--text-muted); margin-right: 4px; }
.ml-range {
	min-width: 40px; height: 34px; padding: 0 12px; border-radius: 999px;
	border: 1px solid var(--line); background: var(--white); color: var(--brand-primary);
	font-family: var(--font-head); font-size: 13px; font-weight: 600; cursor: pointer;
}
.ml-range:hover { border-color: var(--brand-primary); }
.ml-range.is-active { background: var(--brand-primary); border-color: var(--brand-primary); color: var(--white); }
[data-test-browser].is-searching .ml-catcard, [data-test-browser].is-searching .ml-range { opacity: .45; }
[data-test-browser].is-searching .ml-ranges__label::after { content: " (search covers all tests)"; font-weight: 400; }
.ml-table mark { background: #fff0a6; color: inherit; padding: 0 1px; border-radius: 2px; }
.ml-empty { padding: 28px 16px; text-align: center; color: var(--text-muted); }
@media (max-width: 560px) {
	.ml-ranges { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
	.ml-ranges__label, .ml-range { flex: none; }
}

/* test page, phones: compact cards so 15 tests stay short; swipe rows without scrollbars */
@media (max-width: 767px) {
	[data-test-table] tbody tr { display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; padding: 4px 0; margin-bottom: 10px; }
	[data-test-table] td { padding: 5px 14px; }
	[data-test-table] td:nth-child(1) { grid-column: 1 / -1; padding-top: 10px; }
	[data-test-table] td:nth-child(1)::before, [data-test-table] td:nth-child(2)::before { content: none; }
	[data-test-table] td:nth-child(2) { grid-column: 1 / -1; font-size: 13px; color: var(--text-muted); }
	[data-test-table] td:nth-child(n+3):nth-child(-n+6) { flex-direction: column; gap: 0; justify-content: flex-start; }
	[data-test-table] td:nth-child(n+3):nth-child(-n+6)::before { font-size: 12px; }
	[data-test-table] td:nth-child(3) { display: none; } /* specimen: shown in the info popup */
	[data-test-table] td:nth-child(n+4):nth-child(-n+6) { padding-left: 14px; padding-right: 6px; }
	[data-test-table] td:nth-child(7) { grid-column: 1 / -1; justify-content: flex-end; padding-bottom: 10px; }
	[data-test-table] td:nth-child(7)::before { content: none; }
}
.ml-catcards, .ml-ranges { scrollbar-width: none; }
.ml-catcards::-webkit-scrollbar, .ml-ranges::-webkit-scrollbar { display: none; }

/* paginated rows must stay hidden even where the phone card layout sets display on <tr> */
.ml-table tr[hidden], [data-test-table] tbody tr[hidden] { display: none !important; }

/* media posts: uploaded video, gallery, play badge on cards */
.ml-embed--file { aspect-ratio: auto; }
.ml-embed--file video { width: 100%; max-height: 80vh; border-radius: 10px; background: #000; display: block; }
.ml-postgallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 28px; }
.ml-postgallery a { display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 4/3; }
.ml-postgallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.ml-postgallery a:hover img { transform: scale(1.04); }
.ml-pcard__thumb { position: relative; }
.ml-pcard__play { position: absolute; right: 10px; bottom: 10px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; }

/* home banner slider + linked logos */
.ml-hero { position: relative; }
.ml-hero__slides { display: grid; }
.ml-hero--multi .ml-hero__slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility .6s; }
.ml-hero--multi .ml-hero__slide.is-active { opacity: 1; visibility: visible; }
.ml-hero__dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 8px; }
.ml-hero__dot { width: 10px; height: 10px; padding: 0; border-radius: 50%; border: 0; background: rgba(0,0,0,.25); cursor: pointer; }
.ml-hero__dot.is-active { background: var(--brand-primary); width: 26px; border-radius: 6px; }
.ml-logorow a { display: inline-flex; }
.ml-logorow a:hover img { opacity: .85; }

/* Elementor-built pages: full width, no theme box; keep MedLab widgets edge to edge */
.ml-elementor { width: 100%; }
.ml-elementor .elementor-section.elementor-section-full_width > .elementor-container { max-width: none; }
.ml-elementor .elementor-widget-container > section { margin-top: 0; }
.elementor-editor-active .ml-hide-tablet, .elementor-editor-active .ml-hide-mobile { display: block !important; }
/* Elementor resets img radius/shadow - restore the MedLab look inside widgets */
.elementor .ml-hero__img { border-radius: 12px; box-shadow: 0 8px 24px rgba(15,92,52,.18); width: 100%; height: 340px; object-fit: cover; max-width: 100%; }
.elementor .ml-media-card__img img, .elementor .ml-pcard__thumb img { border-radius: 10px; }
/* footer logo: never bigger than the column, whatever shape the uploaded logo is */
.ml-footer__logo-img { width: auto; height: auto; max-width: 260px; max-height: 90px; object-fit: contain; }

/* service flip cards: fit any container width, never cut or wrap single words */
.ml-flipgrid { grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); }
.ml-flip__face { overflow: hidden; }
.ml-flip__label { white-space: nowrap; max-width: 100%; font-size: clamp(12px, 1.05vw, 14px); letter-spacing: 0; }
.ml-flip__face .ml-icon { flex: none; }
@media (max-width: 560px) { .ml-flipgrid { grid-template-columns: repeat(2, 1fr); } .ml-flip__label { font-size: 14px; } }

/* coming-soon popup + reports page */
.ml-modal__icon--soon { width: 72px; height: 72px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 50%; background: var(--brand-tint); color: var(--brand-primary); }
.ml-modal--soon .ml-modal__dialog { text-align: center; }
.ml-modal__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 18px; }
.ml-soonpage { text-align: center; max-width: 640px; padding-top: 24px; padding-bottom: 24px; }
.ml-soonpage__icon { display: inline-grid; place-items: center; width: 88px; height: 88px; border-radius: 50%; background: var(--brand-tint); color: var(--brand-primary); margin-bottom: 14px; }
/* the card grid follows the width of its own box (works inside boxed/narrow layouts too):
   8 across when there is room, then 4, then 2 */
.ml-services .ml-container { container-type: inline-size; container-name: mlservices; }
@container mlservices (min-width: 900px) { .ml-flipgrid { grid-template-columns: repeat(8, 1fr); } }
@container mlservices (min-width: 520px) and (max-width: 899px) { .ml-flipgrid { grid-template-columns: repeat(4, 1fr); } }
@container mlservices (max-width: 519px) { .ml-flipgrid { grid-template-columns: repeat(2, 1fr); } }

/* follow-us buttons on the media pages */
.ml-socialcta { margin: 44px auto 8px; padding: 26px 20px; max-width: 760px; text-align: center; background: var(--brand-tint); border-radius: 14px; }
.ml-socialcta__title { margin: 0 0 14px; font-size: 19px; color: var(--brand-primary); }
.ml-socialcta__btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.ml-socialcta .ml-btn { display: inline-flex; align-items: center; gap: 8px; }
.ml-btn--fb { background: #1877f2; border-color: #1877f2; color: #fff; }
.ml-btn--yt { background: #e62117; border-color: #e62117; color: #fff; }
.ml-btn--fb:hover, .ml-btn--yt:hover { filter: brightness(.92); color: #fff; }

/* social feed sections */
.ml-feedsection { margin-top: 44px; }
.ml-feedsection__title { font-size: 21px; color: var(--brand-primary); margin: 0 0 16px; }
.ml-fbfeed { text-align: center; }
.ml-fbfeed iframe { display: block; margin: 0 auto; background: #fff; border-radius: 10px; }
.ml-fbfeed__fallback { font-size: 13px; margin-top: 8px; }
.ml-ytgrid .ml-pcard__thumb img { aspect-ratio: 16/9; object-fit: cover; }

/* Facebook page card (tap = open the page) */
.ml-fbcard { display: flex; align-items: center; gap: 18px; max-width: 760px; margin: 0 auto; padding: 18px 22px; background: #fff; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--text); box-shadow: var(--shadow-card); transition: transform .15s, box-shadow .15s; }
.ml-fbcard:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(24,119,242,.18); }
.ml-fbcard__logo { flex: none; width: 92px; height: 64px; display: grid; place-items: center; background: #fff; border-radius: 10px; border: 1px solid var(--line); padding: 6px; }
.ml-fbcard__logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.ml-fbcard__body { flex: 1; min-width: 0; display: grid; gap: 2px; }
.ml-fbcard__name { font-family: var(--font-head); font-weight: 700; font-size: 17px; color: var(--text); }
.ml-fbcard__text { font-size: 14px; color: var(--text-muted); }
.ml-fbcard__btn { flex: none; display: inline-flex; align-items: center; gap: 8px; background: #1877f2; color: #fff; font-family: var(--font-head); font-weight: 600; font-size: 14px; padding: 11px 18px; border-radius: 999px; }
@media (max-width: 600px) { .ml-fbcard { flex-wrap: wrap; justify-content: center; text-align: center; } .ml-fbcard__body { flex-basis: 100%; order: 2; } .ml-fbcard__btn { order: 3; } }

/* booking confirmation: WhatsApp step */
.ml-booked__wa { margin: 14px 0 10px; padding: 14px; background: #eafaf0; border: 1px solid #b6ecca; border-radius: 12px; text-align: center; }
.ml-booked__wa p { margin: 0 0 10px; font-size: 14px; }
.ml-btn--wa { background: #25d366; border-color: #25d366; color: #fff; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.ml-btn--wa:hover { filter: brightness(.93); color: #fff; }

/* contact page: layout follows the width of its own box, so it also works inside boxed / narrow layouts */
.ml-contactpage .ml-container { container-type: inline-size; container-name: mlcontact; }
@container mlcontact (max-width: 899px) { .ml-split { grid-template-columns: 1fr; } }
@container mlcontact (max-width: 620px) { .ml-form__row, .ml-form--grid { grid-template-columns: 1fr; } .ml-iconboxes { grid-template-columns: 1fr; } }
.ml-contactpage .ml-loc { margin-bottom: 18px; }
.ml-contactpage .ml-field input, .ml-contactpage .ml-field textarea { min-width: 0; width: 100%; }

/* service pages: "Available at" spans the full width below the content, cards sized to fit */
.ml-svc-locations { margin-top: 36px; }
.ml-svc-locations .ml-locgrid { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); align-items: stretch; }
.ml-svc-locations .ml-loc { height: 100%; }

/* Urdu line in the banner (right-to-left script, Nastaliq font) */
.ml-hero__sub--ur { font-family: 'Noto Nastaliq Urdu', 'Jameel Noori Nastaleeq', 'Noto Naskh Arabic', serif; direction: rtl; text-align: left; line-height: 2.1; font-size: 26px; margin-top: 0; }

/* quick links: four separate cards, 2 x 2 on large screens, one column on phones */
.ml-quick .ml-container { container-type: inline-size; container-name: mlquick; }
.ml-quick .ml-quick__box { grid-template-columns: repeat(2, 1fr); gap: 18px; background: none; border: 0; border-radius: 0; overflow: visible; }
.ml-quick .ml-quick__item, .ml-quick .ml-quick__item:nth-child(n) {
	background: var(--white); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-card);
	padding: 22px 24px; gap: 16px; transition: transform .15s, box-shadow .15s, border-color .15s;
}
.ml-quick .ml-quick__item:hover { background: var(--white); border-color: var(--brand-primary); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(27,127,75,.16); }
.ml-quick .ml-quick__icon { flex: none; width: 60px; height: 60px; display: grid; place-items: center; border-radius: 14px; background: var(--brand-tint); }
.ml-quick .ml-quick__title { font-size: 20px; }
.ml-quick .ml-quick__sub { font-size: 14px; }
@container mlquick (max-width: 560px) { .ml-quick .ml-quick__box { grid-template-columns: 1fr; gap: 12px; } .ml-quick .ml-quick__item, .ml-quick .ml-quick__item:nth-child(n) { padding: 16px 18px; } }

/* banner on tablets and phones: text first, image below, everything centred (follows its own width) */
.ml-hero__slides { container-type: inline-size; container-name: mlhero; }
@container mlhero (max-width: 860px) {
	.ml-hero__inner { grid-template-columns: 1fr; gap: 20px; text-align: center; }
	.ml-hero__copy { display: flex; flex-direction: column; align-items: center; }
	.ml-hero__title { font-size: 36px; line-height: 1.1; }
	.ml-hero__sub { margin: 6px 0 14px; font-size: 20px; }
	.ml-hero__sub--ur { text-align: center; font-size: 22px; line-height: 2; }
	.ml-hero__media { justify-content: center; }
	.ml-hero__img, .elementor .ml-hero__img { height: 220px; }
}
@container mlhero (max-width: 420px) { .ml-hero__title { font-size: 30px; } .ml-hero__img, .elementor .ml-hero__img { height: 190px; } }
@media (max-width: 1024px) { .ml-hero { padding: 28px 0 56px; } }

/* quick-link cards turn green on hover / keyboard focus / tap */
.ml-quick .ml-quick__item, .ml-quick .ml-quick__item:nth-child(n) { transition: background-color .2s ease, border-color .2s ease, transform .15s ease, box-shadow .2s ease; }
.ml-quick .ml-quick__title, .ml-quick .ml-quick__sub, .ml-quick .ml-quick__icon { transition: color .2s ease, background-color .2s ease; }
.ml-quick .ml-quick__item:focus-visible { outline: 3px solid rgba(27,127,75,.35); outline-offset: 2px; }
@media (hover: hover) {
	.ml-quick .ml-quick__item:hover { background: var(--brand-primary); border-color: var(--brand-primary); box-shadow: 0 10px 24px rgba(27,127,75,.35); }
	.ml-quick .ml-quick__item:hover .ml-quick__title { color: #fff; }
	.ml-quick .ml-quick__item:hover .ml-quick__sub { color: rgba(255,255,255,.88); }
	.ml-quick .ml-quick__item:hover .ml-quick__icon { background: rgba(255,255,255,.18); color: #fff; }
}
.ml-quick .ml-quick__item:focus-visible, .ml-quick .ml-quick__item:active { background: var(--brand-primary); border-color: var(--brand-primary); }
.ml-quick .ml-quick__item:focus-visible .ml-quick__title, .ml-quick .ml-quick__item:active .ml-quick__title { color: #fff; }
.ml-quick .ml-quick__item:focus-visible .ml-quick__sub, .ml-quick .ml-quick__item:active .ml-quick__sub { color: rgba(255,255,255,.88); }
.ml-quick .ml-quick__item:focus-visible .ml-quick__icon, .ml-quick .ml-quick__item:active .ml-quick__icon { background: rgba(255,255,255,.18); color: #fff; }

/* Our Team: founder message */
.ml-ceo__photo { overflow: hidden; }
.ml-ceo__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ml-ceo__who { font-family: var(--font-head); font-size: 20px; color: var(--brand-primary); margin: 0 0 14px; }
.ml-ceo__text p { line-height: 1.75; }
@media (max-width: 767px) { .ml-ceo__photo { height: 170px; } .ml-ceo__photo:has(img) { height: 320px; } }

/* special discount packages */
.ml-pkggrid--sale { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.ml-pkgcard--sale { position: relative; gap: 10px; padding: 24px 22px 20px; }
.ml-pkgcard__badge { position: absolute; top: 14px; right: 14px; background: #e8590c; color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 12px; padding: 5px 10px; border-radius: 999px; letter-spacing: .02em; }
.ml-pkgcard__badge--inline { position: static; display: inline-block; vertical-align: middle; margin-left: 10px; }
.ml-pkgcard__prices { margin: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; }
.ml-pkgcard__prices del, .ml-pkg__price del { color: var(--text-muted); font-size: 15px; font-weight: 400; margin-right: 8px; }
.ml-pkgcard__prices strong { font-family: var(--font-head); font-size: 24px; color: var(--brand-primary); }
.ml-pkgcard__tests { list-style: none; margin: 4px 0 6px; padding: 0; font-size: 14px; color: var(--text); }
.ml-pkgcard__tests li { position: relative; padding: 3px 0 3px 18px; }
.ml-pkgcard__tests li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 7px; height: 7px; border-radius: 50%; background: var(--brand-primary); }
.ml-pkgcard__more { color: var(--text-muted); font-style: italic; }
.ml-pkgcard__more::before { display: none; }
.ml-pkgcard__photo { display: block; margin: -24px -22px 6px; aspect-ratio: 16/9; overflow: hidden; border-radius: 12px 12px 0 0; background: var(--brand-tint); }
.ml-pkgcard__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ml-pkgcard__tests { text-align: left; align-self: stretch; }
.ml-pkgcard__soon { margin: 4px 0 6px; font-size: 14px; color: var(--text-muted); font-style: italic; text-align: center; }

/* package price block: was-price above, big sale price, "you save" pill */
.ml-pricebox { display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 4px 0 6px; line-height: 1.15; }
.ml-pricebox__was { font-size: 14px; color: var(--text-muted); }
.ml-pricebox__was del { text-decoration-thickness: 1.5px; text-decoration-color: #c0392b; }
.ml-pricebox__now { font-family: var(--font-head); font-size: 30px; font-weight: 700; color: var(--brand-primary); }
.ml-pricebox__save { margin-top: 2px; padding: 4px 12px; border-radius: 999px; background: var(--brand-tint); color: var(--brand-primary); font-family: var(--font-head); font-size: 12px; font-weight: 600; }
.ml-pkg__foot .ml-pricebox { align-items: flex-start; margin: 0; }
.ml-pkg__foot { gap: 22px; }

/* ------------------------------------------------ home offer popup */
.ml-modal--promo .ml-modal__dialog.ml-promo { padding: 0; max-width: 960px; width: calc(100% - 32px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); overflow: hidden; border-radius: 22px; text-align: left; max-height: 92vh; }
.ml-promo__body { padding: 30px 30px 26px; overflow-y: auto; max-height: 92vh; }
.ml-promo__media { background: #e9f4ee; position: relative; }
.ml-promo__media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.ml-promo__x { top: 14px; right: 14px; z-index: 3; background: #fff; border-radius: 50%; width: 38px; height: 38px; box-shadow: 0 2px 10px rgba(0,0,0,.2); }
.ml-promo__badge { display: inline-flex; align-items: center; gap: 6px; background: #e8590c; color: #fff; font-family: var(--font-head); font-weight: 600; font-size: 12px; padding: 6px 14px; border-radius: 999px; }
.ml-promo__title { margin: 16px 0 6px; font-family: 'Noto Nastaliq Urdu', 'Jameel Noori Nastaleeq', 'Noto Naskh Arabic', serif; font-size: 25px; font-weight: 600; line-height: 2.1; color: var(--text); text-align: right; }
.ml-promo__sub { margin: 0 0 14px; color: var(--text-muted); font-size: 14px; }
.ml-promo__tabs { display: flex; gap: 8px; margin: 0 0 14px; flex-wrap: wrap; }
.ml-promo__tab { flex: 1 1 0; min-width: 130px; padding: 10px 12px; border-radius: 999px; border: 1.5px solid var(--brand-primary); background: #fff; color: var(--brand-primary); font-family: var(--font-head); font-weight: 600; font-size: 13px; cursor: pointer; transition: background-color .15s, color .15s; }
.ml-promo__tab.is-active, .ml-promo__tab:hover { background: var(--brand-primary); color: #fff; }
.ml-promo__price { margin: 0 0 10px; color: #d9230f; font-family: var(--font-head); font-weight: 600; font-size: 16px; }
.ml-promo__price strong { font-size: 22px; }
.ml-promo__tests { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.ml-promo__tests li { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; line-height: 1.35; }
.ml-promo__tests .ml-icon { flex: none; color: #d9230f; margin-top: 3px; }
.ml-promo__ur { color: var(--text-muted); font-size: 13px; unicode-bidi: isolate; }
.ml-promo__cta { display: flex; gap: 10px; flex-wrap: wrap; }
.ml-promo__cta .ml-btn { display: inline-flex; align-items: center; gap: 8px; }
@media (max-width: 1024px) {
	/* tablets and phones: offer details only, no picture */
	.ml-modal--promo .ml-modal__dialog.ml-promo { grid-template-columns: 1fr; max-width: 560px; }
	.ml-promo__media { display: none; }
	.ml-promo__body { padding: 26px 20px 22px; }
	.ml-promo__title { font-size: 21px; }
	.ml-promo__x { top: 10px; right: 10px; }
}
@media (max-width: 480px) { .ml-promo__tests { grid-template-columns: 1fr; } .ml-promo__cta .ml-btn { flex: 1 1 100%; justify-content: center; } }

/* offer popup picture: show the whole flyer (never cropped), centred on a soft background */
.ml-promo__media { display: flex; align-items: center; justify-content: center; background: linear-gradient(160deg, #e3f1ea, #cfe8dc); padding: 12px; }
.ml-promo__media img { width: 100%; height: auto; max-height: 100%; object-fit: contain; border-radius: 10px; box-shadow: 0 6px 22px rgba(15,92,52,.18); }

/* offer popup picture: fills the whole right panel (no bands above/below); the panel width is set from its height in site.js */
.ml-promo__media { display: block; padding: 0; background: #d9ece2; min-width: 0; }
.ml-promo__media img { width: 100%; height: 100%; max-height: none; object-fit: cover; object-position: center; border-radius: 0; box-shadow: none; display: block; }
.ml-promo__body { padding: 26px 28px 22px; }
.ml-promo__title { line-height: 1.9; margin: 12px 0 4px; }
.ml-promo__tests { gap: 7px 16px; margin-bottom: 16px; }

.ml-modal--promo .ml-modal__dialog.ml-promo { max-width: min(1180px, calc(100vw - 32px)); }
@media (max-width: 1024px) { .ml-modal--promo .ml-modal__dialog.ml-promo { width: calc(100% - 32px) !important; height: auto !important; max-width: 560px; grid-template-columns: 1fr !important; } }
/* tablets and phones: never show the picture (must come after the picture rules above) */
@media (max-width: 1024px) { .ml-modal--promo .ml-promo__media { display: none !important; } .ml-promo__panel { min-height: 0 !important; } }

/* media cards with video thumbnails */
.ml-media-card__img { position: relative; }
.ml-media-card__img img { display: block; width: 100%; height: 175px; object-fit: cover; }
.ml-media-card__play { position: absolute; right: 12px; bottom: 12px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: rgba(0,0,0,.62); color: #fff; transition: background-color .15s, transform .15s; }
.ml-media-card:hover .ml-media-card__play { background: var(--brand-primary); transform: scale(1.08); }
.ml-media-card__img img { height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: #000; }

/* Instagram button + card */
.ml-btn--ig { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); border-color: #dc2743; color: #fff; }
.ml-btn--ig:hover { filter: brightness(.93); color: #fff; }
.ml-fbcard--ig .ml-fbcard__btn { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.ml-fbcard--ig:hover { box-shadow: 0 8px 22px rgba(220,39,67,.22); }
.ml-ceo__adminnote { grid-column: 1 / -1; padding: 10px 14px; background: #fff8e5; border: 1px solid #dba617; border-radius: 8px; font-style: normal; color: #6b4a00; }
