/* ==========================================================================
   MECSN Members Portal — mobile application shell
   --------------------------------------------------------------------------
   Written mobile first, for a phone held in one hand, and widened for larger
   screens afterwards.

   Two things decide how this file is structured:

   1. SPECIFICITY. The portal renders inside the theme's `.entry-content`,
      whose element rules (`.entry-content h2`, 0-1-1) outrank a bare class
      (`.mp-h2`, 0-1-0). Every portal rule that competes with one is therefore
      written as `.mp .mp-thing` (0-2-0), which wins. This is why the portal's
      headings, lists and details blocks were being drawn at the website's
      desktop sizing, with a 2.5rem gap above every page title.

   2. WIDTH AND SAFE AREAS. Nothing may be wider than the screen, and nothing
      may sit under the bottom bar or the phone's own chrome. The bar's height
      is a token (--mp-nav-h); the body reserves exactly that plus the device
      inset. Negative margins are not used to escape the theme's gutters — the
      gutters are removed on portal pages instead, which is what was causing
      the horizontal scrollbar on every screen.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. The page the portal lives on
   -------------------------------------------------------------------------- */

body.mecsn-portal .site-header,
body.mecsn-portal .site-footer,
body.mecsn-portal .page-head,
body.mecsn-portal .skip-link { display: none !important; }

body.mecsn-portal { background: #F2F5F9; }
body.mecsn-portal #main { padding-block: 0; }

/* The theme's wrapper is neutralised rather than escaped. The portal then
   spans the viewport exactly, and its own body supplies the gutters. */
body.mecsn-portal .wrap.page-body,
body.mecsn-portal .page-body {
	max-width: none;
	padding-inline: 0;
	padding-block: 0;
}
body.mecsn-portal .entry-content,
body.mecsn-portal .entry-content > * { max-width: none; }

/* A last resort against anything one pixel too wide. The widths themselves are
   fixed below; this only stops a single stray element from panning the page.
   It sits on the shell, not on body: clipping one axis of body makes the other
   compute to `auto`, which turns body into a scroll container and takes iOS
   momentum scrolling with it. */
body.mecsn-portal .mp { overflow-x: clip; }

/* --------------------------------------------------------------------------
   2. Tokens
   -------------------------------------------------------------------------- */

.mp {
	/* Brand, inherited from the theme with fallbacks. */
	--mp-navy: var(--navy, #0B2D5B);
	--mp-navy-deep: var(--navy-deep, #071E3D);
	--mp-orange: var(--orange, #FF7A00);
	--mp-orange-ink: var(--orange-ink, #B85600);
	--mp-orange-soft: var(--orange-soft, #FFF1E4);
	--mp-ink: var(--ink, #0E1B2E);
	--mp-ink-2: #46556B;
	--mp-mist: var(--mist, #F2F5F9);
	--mp-line: var(--line, #DCE3EC);
	--mp-white: #fff;
	--mp-ok: #0A7C42;
	--mp-warn: #9A5B00;
	--mp-err: #B42318;

	/* Type, in px so the website's 17px body scale cannot inflate the app.
	   -webkit-text-size-adjust stays at 100%, so the reader's own text-size
	   setting still enlarges everything. */
	--mp-fs-h1: 24px;
	--mp-fs-h2: 19px;
	--mp-fs-h3: 16px;
	--mp-fs-body: 15px;
	--mp-fs-small: 13px;
	--mp-fs-tiny: 11px;

	/* Space, on an 8px grid. */
	--mp-gutter: 16px;
	--mp-gap: 14px;
	--mp-radius: 14px;
	--mp-radius-sm: 10px;

	/* The chrome. Both bars are measured here and nowhere else. */
	--mp-bar-h: 52px;
	--mp-nav-h: 58px;
	--mp-safe-top: env(safe-area-inset-top, 0px);
	--mp-safe-bottom: env(safe-area-inset-bottom, 0px);

	--mp-shadow: 0 1px 2px rgba(11, 45, 91, .06);
	--mp-shadow-lg: 0 10px 30px rgba(11, 45, 91, .16);

	display: block;
	inline-size: 100%;
	max-inline-size: 100%;
	min-inline-size: 0;
	font-size: var(--mp-fs-body);
	line-height: 1.5;
	color: var(--mp-ink);
}

.mp *, .mp *::before, .mp *::after { box-sizing: border-box; }
.mp img, .mp table, .mp pre, .mp iframe { max-width: 100%; }

/* Everything that can shrink, shrinks. A grid or flex child defaults to
   min-width:auto and refuses to go below its content, which is how one long
   word used to make a whole screen wider than the phone. */
.mp > *,
.mp .mp__body > *,
.mp [class^="mp-"],
.mp [class*=" mp-"] { min-width: 0; }

/* --------------------------------------------------------------------------
   3. The shell: app bar, body, bottom bar
   -------------------------------------------------------------------------- */

.mp .mp__appbar {
	position: sticky;
	top: 0;
	z-index: 40;
	display: flex;
	align-items: center;
	gap: 10px;
	inline-size: 100%;
	min-block-size: var(--mp-bar-h);
	padding: 0 12px;
	padding-block-start: var(--mp-safe-top);
	background: var(--mp-navy);
	/* No gradient and no decorative stripe: the inset area is the same navy as
	   the bar, so the phone's status bar sits on brand colour and nothing
	   else. The inset is applied here and nowhere else, so it is never
	   counted twice. */
}

.mp .mp__logo {
	display: flex;
	align-items: center;
	min-block-size: 44px;
	flex: 0 1 auto;
	min-width: 0;
	margin-inline-end: auto;
	line-height: 0;
	text-decoration: none;
}
.mp .mp__logo img { height: 22px; width: auto; max-width: 150px; object-fit: contain; display: block; }
.mp .mp__logo-text { color: #fff; font-weight: 800; letter-spacing: .16em; font-size: var(--mp-fs-h3); line-height: 1; }
.mp .mp__appbar-end { display: flex; align-items: center; gap: 6px; min-width: 0; }

.mp .mp__body {
	inline-size: 100%;
	max-inline-size: 100%;
	min-inline-size: 0;
	padding-inline: var(--mp-gutter);
	padding-block-start: 14px;
	/* The bar, the device inset, and a little air after the last element. */
	padding-block-end: calc(var(--mp-nav-h) + var(--mp-safe-bottom) + 24px);
	display: grid;
	gap: var(--mp-gap);
	align-content: start;
}

/* --------------------------------------------------------------------------
   4. Typography
   -------------------------------------------------------------------------- */

.mp .mp-h2 {
	margin: 0 0 2px;
	font-size: var(--mp-fs-h1);
	line-height: 1.2;
	font-weight: 800;
	color: var(--mp-navy);
	letter-spacing: -0.01em;
}
.mp .mp-h {
	margin: 0 0 8px;
	font-size: var(--mp-fs-h2);
	line-height: 1.3;
	font-weight: 700;
	color: var(--mp-navy);
}
.mp h3 { font-size: var(--mp-fs-h3); line-height: 1.35; color: var(--mp-navy); margin: 0 0 8px; }
.mp .mp-intro { margin: 0 0 2px; font-size: var(--mp-fs-small); line-height: 1.5; color: var(--mp-ink-2); max-width: 60ch; }
.mp .mp-scope { margin: 0; font-size: var(--mp-fs-small); color: var(--mp-ink-2); }
.mp .mp-help { display: block; margin: 6px 0 0; font-size: var(--mp-fs-small); line-height: 1.5; color: var(--mp-ink-2); }
.mp .mp-count { margin: 0; font-size: var(--mp-fs-small); color: var(--mp-ink-2); font-weight: 600; }
.mp .mp-muted { color: var(--mp-ink-2); font-style: italic; }
.mp .mp-mono { font-variant-numeric: tabular-nums; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.mp .mp-list { margin: 0; padding-inline-start: 18px; font-size: var(--mp-fs-small); }
.mp .mp-list li { margin-block-end: 6px; line-height: 1.5; }
.mp .mp-empty {
	margin: 0;
	padding: 20px 16px;
	background: #fff;
	border: 1px solid var(--mp-line);
	border-radius: var(--mp-radius);
	color: var(--mp-ink-2);
	font-size: var(--mp-fs-small);
	text-align: center;
}

/* A closed section stays closed. The browser hides the contents of a closed
   <details> with its own `display: none`, but any author rule that sets
   `display` — a card list that is a grid, for instance — outranks it and the
   section renders anyway. This restores the browser's behaviour at a
   specificity the component rules cannot beat. */
.mp details:not([open]) > *:not(summary) { display: none; }

/* Long values — links, emails, Arabic names — wrap instead of widening the
   screen or being cut off. */
.mp a, .mp p, .mp li, .mp dd, .mp td, .mp th { overflow-wrap: anywhere; }

/* --------------------------------------------------------------------------
   5. Buttons and controls
   -------------------------------------------------------------------------- */

.mp .btn, .mp button, .mp input, .mp select, .mp textarea { font: inherit; }

.mp .btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 46px;
	padding: 11px 18px;
	border: 1px solid var(--mp-line);
	border-radius: 12px;
	background: #fff;
	color: var(--mp-navy);
	font-size: var(--mp-fs-body);
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
}
.mp .btn--primary { background: var(--mp-orange); border-color: var(--mp-orange); color: #fff; }
.mp .btn--primary:hover { filter: brightness(1.06); }
.mp .btn--ghost { background: transparent; }
.mp .btn--sm { min-height: 44px; padding: 8px 14px; font-size: var(--mp-fs-small); }
.mp .btn .mecsn-icon { width: 18px; height: 18px; }

/* --------------------------------------------------------------------------
   6. Country chip
   -------------------------------------------------------------------------- */

.mp .mp-cc { position: relative; min-width: 0; }
.mp .mp-cc__chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	max-width: 44vw;
	padding: 8px 12px;
	/* White on navy, not navy on navy: this is the contrast fault the audit
	   raised, and the reason the selected country could not be read. */
	border: 1px solid rgba(255, 255, 255, .55);
	border-radius: 999px;
	background: rgba(255, 255, 255, .16);
	color: #fff;
	font-size: var(--mp-fs-small);
	font-weight: 700;
	cursor: pointer;
	list-style: none;
	white-space: nowrap;
}
.mp .mp-cc__chip::-webkit-details-marker { display: none; }
.mp .mp-cc__chip:hover { background: rgba(255, 255, 255, .26); }
.mp .mp-cc__name { overflow: hidden; text-overflow: ellipsis; }
.mp .mp-cc__caret { font-size: 10px; opacity: .9; }
.mp .mp-cc[open] .mp-cc__caret { transform: rotate(180deg); }

.mp .mp-cc__panel {
	position: absolute;
	inset-inline-end: 0;
	top: calc(100% + 8px);
	z-index: 60;
	inline-size: min(17rem, calc(100vw - 24px));
	max-block-size: min(60vh, 380px);
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 8px;
	background: #fff;
	border: 1px solid var(--mp-line);
	border-radius: var(--mp-radius);
	box-shadow: var(--mp-shadow-lg);
}
.mp .mp-cc__title { margin: 2px 6px 6px; font-size: var(--mp-fs-tiny); letter-spacing: .08em; text-transform: uppercase; color: var(--mp-ink-2); font-weight: 700; }
.mp .mp-cc__list { display: grid; gap: 2px; }
.mp .mp-cc__opt {
	display: flex;
	align-items: center;
	gap: 8px;
	inline-size: 100%;
	min-height: 44px;
	padding: 10px;
	border: 0;
	border-radius: var(--mp-radius-sm);
	background: transparent;
	font-size: var(--mp-fs-body);
	color: var(--mp-ink);
	text-align: start;
	cursor: pointer;
}
.mp .mp-cc__opt:hover { background: var(--mp-mist); }
.mp .mp-cc__opt.is-current { background: var(--mp-navy); color: #fff; font-weight: 700; }
.mp .mp-cc__opt--mine { color: var(--mp-navy); font-weight: 700; border-block-end: 1px solid var(--mp-line); border-radius: var(--mp-radius-sm) var(--mp-radius-sm) 0 0; margin-block-end: 4px; }
.mp .mp-cc__ar { margin-inline-start: auto; font-size: var(--mp-fs-small); color: var(--mp-ink-2); direction: rtl; unicode-bidi: isolate; }
.mp .mp-cc__opt.is-current .mp-cc__ar { color: rgba(255, 255, 255, .8); }

/* The older inline selector, still used on the sign-in screen. */
.mp .mp-country { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; width: 100%; }
.mp .mp-country__label { font-size: var(--mp-fs-tiny); letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--mp-ink-2); }
.mp .mp-country__flag { font-size: 20px; line-height: 1; }
.mp .mp-country__select { flex: 1 1 10rem; min-width: 0; }

/* --------------------------------------------------------------------------
   7. The side menu
   -------------------------------------------------------------------------- */

.mp .mp__menubtn {
	display: grid;
	place-items: center;
	flex: none;
	inline-size: 44px;
	block-size: 44px;
	margin-inline-start: -6px;
	padding: 0;
	border: 0;
	border-radius: var(--mp-radius-sm);
	background: transparent;
	cursor: pointer;
}
.mp .mp__menubtn:hover { background: rgba(255, 255, 255, .14); }
.mp .mp__menubars { display: grid; gap: 4px; }
.mp .mp__menubars span { display: block; inline-size: 19px; block-size: 2px; border-radius: 2px; background: #fff; }

.mp .mp__menu { position: fixed; inset: 0; z-index: 90; }
.mp .mp__menu-scrim {
	position: absolute;
	inset: 0;
	border: 0;
	padding: 0;
	background: rgba(7, 30, 61, .45);
	opacity: 0;
	transition: opacity .2s ease;
	cursor: default;
}
.mp .mp__menu.is-open .mp__menu-scrim { opacity: 1; }

.mp .mp__menu-panel {
	position: absolute;
	inset-block: 0;
	inset-inline-start: 0;
	z-index: 1;
	display: flex;
	flex-direction: column;
	inline-size: min(86vw, 340px);
	max-block-size: 100%;
	padding: 0 14px calc(16px + var(--mp-safe-bottom));
	background: #fff;
	box-shadow: var(--mp-shadow-lg);
	/* The drawer scrolls inside itself, so Sign out stays reachable however
	   many screens the member can see, on any height of phone. */
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	transform: translateX(-102%);
	transition: transform .22s ease;
}
[dir="rtl"] .mp .mp__menu-panel { transform: translateX(102%); }
.mp .mp__menu.is-open .mp__menu-panel { transform: translateX(0); }

.mp .mp__menu-head {
	position: sticky;
	top: 0;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: start;
	gap: 2px 8px;
	padding-block: calc(14px + var(--mp-safe-top)) 14px;
	background: #fff;
	border-block-end: 1px solid var(--mp-line);
}
.mp .mp__menu-name { grid-column: 1; font-size: var(--mp-fs-h3); font-weight: 700; color: var(--mp-navy); line-height: 1.3; }
.mp .mp__menu-mail { grid-column: 1; font-size: var(--mp-fs-small); color: var(--mp-ink-2); overflow-wrap: anywhere; }
.mp .mp__menu-close {
	grid-column: 2;
	grid-row: 1 / span 2;
	display: grid;
	place-items: center;
	inline-size: 44px;
	block-size: 44px;
	padding: 0;
	border: 1px solid var(--mp-line);
	border-radius: 50%;
	background: #fff;
	color: var(--mp-ink-2);
	font-size: 17px;
	line-height: 1;
	cursor: pointer;
}
.mp .mp__menu-close:hover { background: var(--mp-mist); color: var(--mp-navy); }

.mp .mp__menu-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 2px; }
.mp .mp__menu-link {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 46px;
	padding: 10px 12px;
	border-radius: 12px;
	color: var(--mp-ink);
	text-decoration: none;
	font-size: var(--mp-fs-body);
	font-weight: 600;
}
.mp .mp__menu-link:hover { background: var(--mp-mist); }
.mp .mp__menu-link .mecsn-icon { width: 19px; height: 19px; flex: none; color: var(--mp-ink-2); }
.mp .mp__menu-link.is-active { background: var(--mp-orange-soft); color: var(--mp-orange-ink); }
.mp .mp__menu-link.is-active .mecsn-icon { color: var(--mp-orange-ink); }

.mp .mp__menu-lang {
	display: flex;
	gap: 4px;
	margin-block-start: 14px;
	padding: 4px;
	background: var(--mp-mist);
	border-radius: 999px;
}
.mp .mp__lang {
	flex: 1 1 0;
	min-height: 44px;
	padding: 8px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--mp-ink-2);
	font-size: var(--mp-fs-small);
	font-weight: 700;
	cursor: pointer;
}
.mp .mp__lang.is-active { background: #fff; color: var(--mp-navy); box-shadow: var(--mp-shadow); }

.mp .mp__menu-reset { margin: 10px 0 0; text-align: center; }
.mp .mp__resetbtn {
	min-height: 44px;
	border: 0;
	background: none;
	padding: 8px;
	color: var(--mp-ink-2);
	font-size: var(--mp-fs-small);
	text-decoration: underline;
	cursor: pointer;
}
.mp .mp__resetbtn:hover { color: var(--mp-navy); }

.mp .mp__menu-signout { margin-block-start: auto; padding-block-start: 14px; }
.mp .mp__signoutbtn {
	inline-size: 100%;
	min-height: 46px;
	padding: 11px 16px;
	border: 1px solid var(--mp-line);
	border-radius: 12px;
	background: #fff;
	color: var(--mp-ink-2);
	font-size: var(--mp-fs-body);
	font-weight: 600;
	cursor: pointer;
}
.mp .mp__menu-signout .mp__signoutbtn:hover { background: var(--mp-mist); color: var(--mp-navy); }

/* The navigation column's mark belongs to the desktop layout only. */
.mp .mp__menu-brand { display: none; }

body.mp-menu-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
	.mp .mp__menu-panel, .mp .mp__menu-scrim { transition: none; }
}

/* --------------------------------------------------------------------------
   8. The bottom bar
   -------------------------------------------------------------------------- */

.mp .mp__nav {
	position: fixed;
	inset-inline: 0;
	bottom: 0;
	z-index: 50;
	display: flex;
	align-items: stretch;
	min-block-size: calc(var(--mp-nav-h) + var(--mp-safe-bottom));
	padding-block-end: var(--mp-safe-bottom);
	background: rgba(255, 255, 255, .97);
	-webkit-backdrop-filter: saturate(180%) blur(12px);
	backdrop-filter: saturate(180%) blur(12px);
	border-block-start: 1px solid var(--mp-line);
}
.mp .mp__navlist {
	display: flex;
	flex: 1 1 auto;
	margin: 0;
	padding: 0;
	list-style: none;
	min-width: 0;
}
.mp .mp__navlist > li { flex: 1 1 0; min-width: 0; display: flex; }
.mp .mp__navlink {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 3px;
	inline-size: 100%;
	min-height: 44px;
	padding: 6px 2px;
	color: var(--mp-ink-2);
	text-decoration: none;
	font-size: var(--mp-fs-tiny);
	font-weight: 600;
	line-height: 1.1;
	text-align: center;
}
.mp .mp__navlink .mecsn-icon { width: 21px; height: 21px; flex: none; }
.mp .mp__navlink.is-active { color: var(--mp-orange); }
.mp .mp__navfull { display: none; }
.mp .mp__navshort { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }

/* --------------------------------------------------------------------------
   9. Cards, notices, badges
   -------------------------------------------------------------------------- */

.mp .mp-card {
	margin: 0;
	padding: 14px 16px 16px;
	background: #fff;
	border: 1px solid var(--mp-line);
	border-radius: var(--mp-radius);
	box-shadow: var(--mp-shadow);
}
.mp .mp-card h3 { margin: 0 0 10px; font-size: var(--mp-fs-h3); color: var(--mp-navy); }
.mp .mp-card--alerts { border-inline-start: 4px solid var(--mp-orange); }

.mp .mp__notice {
	margin: 0;
	padding: 12px 14px;
	border: 1px solid var(--mp-line);
	border-inline-start-width: 4px;
	border-radius: var(--mp-radius-sm);
	background: #fff;
	font-size: var(--mp-fs-small);
	line-height: 1.5;
}
.mp .mp__notice p { margin: 0 0 6px; }
.mp .mp__notice p:last-child { margin-bottom: 0; }
.mp .mp__notice--success { background: #EAF7F0; border-color: var(--mp-ok); }
.mp .mp__notice--warn { background: #FEF6E7; border-color: var(--mp-warn); }
.mp .mp__notice--error { background: #FDECEA; border-color: var(--mp-err); }
.mp .mp__notice--info { background: #EEF4FB; border-color: var(--mp-navy); }

.mp .mp-badge, .mp .mp-flag, .mp .mp-pill {
	display: inline-block;
	padding: 3px 9px;
	border-radius: 999px;
	font-size: var(--mp-fs-tiny);
	font-weight: 700;
	letter-spacing: .02em;
	background: var(--mp-mist);
	color: var(--mp-ink-2);
}
.mp .mp-badge--tier2 { background: #EEF4FB; color: var(--mp-navy); }
.mp .mp-badge--tier3, .mp .mp-badge--certified, .mp .mp-badge--individual { background: var(--mp-orange-soft); color: var(--mp-orange-ink); }
.mp .mp-flag--warn, .mp .mp-flag--pending, .mp .mp-flag--clarify, .mp .mp-pill--maybe { background: #FEF6E7; color: var(--mp-warn); }
.mp .mp-flag--approved { background: #EAF7F0; color: var(--mp-ok); }
.mp .mp-flag--rejected, .mp .mp-flag--removed, .mp .mp-flag--suspended { background: #FDECEA; color: var(--mp-err); }

.mp .mp-dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 14px; margin: 0; font-size: var(--mp-fs-small); }
.mp .mp-dl dt { color: var(--mp-ink-2); }
.mp .mp-dl dd { margin: 0; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }

.mp .mp-log { margin: 0; padding: 0; list-style: none; font-size: var(--mp-fs-small); }
.mp .mp-log li { padding-block: 8px; border-block-end: 1px solid var(--mp-line); }
.mp .mp-log time { color: var(--mp-ink-2); margin-inline-end: 8px; }

/* --------------------------------------------------------------------------
   10. Home
   -------------------------------------------------------------------------- */

.mp .mp-hero { display: grid; gap: 2px; }
.mp .mp-hero__title { margin: 0; font-size: var(--mp-fs-h1); line-height: 1.15; font-weight: 800; color: var(--mp-navy); letter-spacing: -0.01em; }
.mp .mp-hero__status { margin: 0; font-size: var(--mp-fs-small); color: var(--mp-ink-2); }

/* The network in numbers: one strip, read at a glance, never a screen-filling
   square. A single qualifying figure is a single compact row — the full-bleed
   square tile became a 390px empty box whenever only one number passed the
   "more than five" rule, which is exactly what happened on this network. */
.mp .mp-stats { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; }
.mp .mp-stat {
	display: flex;
	flex: 1 1 0;
	min-width: 0;
	min-block-size: 44px;
	align-items: baseline;
	gap: 6px;
	padding: 12px;
	background: #fff;
	border: 1px solid var(--mp-line);
	border-radius: 12px;
	box-shadow: var(--mp-shadow);
	text-decoration: none;
	color: inherit;
}
.mp a.mp-stat:hover { border-color: var(--mp-navy); }
.mp .mp-stat__n {
	font-size: 20px;
	font-weight: 800;
	line-height: 1;
	color: var(--mp-navy);
	font-variant-numeric: tabular-nums;
	flex: none;
}
.mp .mp-stat__label { font-size: var(--mp-fs-tiny); line-height: 1.25; color: var(--mp-ink-2); font-weight: 600; min-width: 0; }

/* Quick access: two columns, one tap each. */
.mp .mp-quick__grid { display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mp .mp-quick__item {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 56px;
	padding: 12px;
	background: #fff;
	border: 1px solid var(--mp-line);
	border-radius: 12px;
	box-shadow: var(--mp-shadow);
	color: var(--mp-navy);
	text-decoration: none;
	font-size: var(--mp-fs-small);
	font-weight: 700;
	line-height: 1.25;
}
.mp .mp-quick__item:hover { border-color: var(--mp-navy); }
.mp .mp-quick__item .mecsn-icon { width: 20px; height: 20px; flex: none; color: var(--mp-orange); }

/* New in the network. */
.mp .mp-joiners__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-block-end: 8px; }
.mp .mp-joiners__all { display: inline-flex; align-items: center; min-height: 44px; min-inline-size: 44px; justify-content: center; font-size: var(--mp-fs-small); font-weight: 700; color: var(--mp-navy); text-decoration: none; white-space: nowrap; }
.mp .mp-joiners__all:hover { text-decoration: underline; }
.mp .mp-joiners__cards { display: grid; gap: 8px; }
.mp .mp-joiner {
	display: grid;
	grid-template-columns: 40px minmax(0, 1fr);
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	background: #fff;
	border: 1px solid var(--mp-line);
	border-radius: 12px;
	box-shadow: var(--mp-shadow);
}
.mp .mp-joiner__photo { inline-size: 40px; block-size: 40px; border-radius: 50%; object-fit: cover; flex: none; }
.mp .mp-joiner__text { display: grid; gap: 1px; min-width: 0; }
.mp .mp-joiner__name { font-size: var(--mp-fs-body); font-weight: 700; color: var(--mp-navy); line-height: 1.3; }
.mp .mp-joiner__role, .mp .mp-joiner__co { font-size: var(--mp-fs-small); color: var(--mp-ink-2); line-height: 1.35; }
.mp .mp-joiner__co { font-weight: 600; color: var(--mp-ink); }
.mp .mp-joiners__list { display: grid; gap: 8px; margin: 0 0 10px; padding: 0; list-style: none; }
.mp .mp-joiners__item { display: flex; gap: 10px; align-items: center; }
.mp .mp-joiners__who { display: grid; min-width: 0; }
.mp .mp-joiners__role { font-size: var(--mp-fs-small); color: var(--mp-ink-2); }
.mp .mp-joiners__sub { margin: 8px 0; font-size: var(--mp-fs-body); color: var(--mp-navy); }

/* The code of conduct, in the app rather than off to the website. */
.mp .mp-conduct__more > summary {
	cursor: pointer;
	list-style: none;
	min-height: 44px;
	display: flex;
	align-items: center;
	font-size: var(--mp-fs-small);
	font-weight: 700;
	color: var(--mp-navy);
}
.mp .mp-conduct__more > summary::-webkit-details-marker { display: none; }
.mp .mp-conduct__more > summary::before { content: "\25B8"; color: var(--mp-orange); margin-inline-end: 6px; }
.mp .mp-conduct__more[open] > summary::before { content: "\25BE"; }
.mp .mp-conduct__body { font-size: var(--mp-fs-small); line-height: 1.6; border-block-start: 1px solid var(--mp-line); padding-block-start: 12px; margin-block-start: 6px; }
.mp .mp-conduct__body h2, .mp .mp-conduct__body h3 { font-size: var(--mp-fs-h3); color: var(--mp-navy); margin-block: 16px 6px; }
.mp .mp-conduct__body ul, .mp .mp-conduct__body ol { padding-inline-start: 18px; margin: 0 0 10px; }
.mp .mp-conduct__body li { margin-block-end: 5px; }
.mp .mp-conduct__body p { margin: 0 0 10px; }

/* Installing the app. A white card, like everything else on the screen, with
   the one-tap install where the browser offers it and the manual steps for
   each platform where it does not. Hidden once the app is installed, and
   hidden for good once the member dismisses it. */
.mp .mp-install {
	display: grid;
	gap: 12px;
	padding: 14px 16px 16px;
	background: #fff;
	border: 1px solid var(--mp-line);
	border-radius: var(--mp-radius);
	box-shadow: var(--mp-shadow);
}
.mp .mp-install__head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: start; }
.mp .mp-install__icon {
	display: grid;
	place-items: center;
	inline-size: 44px;
	block-size: 44px;
	border-radius: 12px;
	background: var(--mp-navy);
	color: #fff;
}
.mp .mp-install__icon .mecsn-icon { width: 22px; height: 22px; }
.mp .mp-install__intro { min-width: 0; }
.mp .mp-install h3 { margin: 0 0 2px; font-size: var(--mp-fs-h3); color: var(--mp-navy); }
.mp .mp-install p { margin: 0; font-size: var(--mp-fs-small); line-height: 1.5; color: var(--mp-ink-2); }
.mp .mp-install__close {
	inline-size: 44px;
	block-size: 44px;
	margin: -8px -8px 0 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--mp-ink-2);
	font-size: 15px;
	cursor: pointer;
}
.mp .mp-install__close:hover { background: var(--mp-mist); color: var(--mp-navy); }
.mp .mp-install__action { margin: 0; }
.mp .mp-install__action .btn { background: var(--mp-navy); border-color: var(--mp-navy); color: #fff; }
.mp .mp-install__action .btn:hover { background: var(--mp-navy-deep); }

.mp .mp-install__ways { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.mp .mp-install__ways li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; align-items: start; }
.mp .mp-install__way-icon {
	display: grid;
	place-items: center;
	inline-size: 36px;
	block-size: 36px;
	border-radius: 10px;
	background: var(--mp-mist);
	color: var(--mp-navy);
}
.mp .mp-install__glyph { width: 20px; height: 20px; }
.mp .mp-install__way-text { min-width: 0; font-size: var(--mp-fs-small); line-height: 1.5; color: var(--mp-ink-2); }
.mp .mp-install__way-text strong { display: block; color: var(--mp-navy); font-size: var(--mp-fs-body); }
.mp .mp-install__url { margin: 0; font-size: var(--mp-fs-small); color: var(--mp-ink-2); }
.mp .mp-install__url strong { color: var(--mp-navy); word-break: break-all; }
.mp .mp-install__steps { display: none; }

.mecsn-app .mp-install { display: none; }

/* --------------------------------------------------------------------------
   11. Forms
   -------------------------------------------------------------------------- */

.mp .mp-form { display: grid; gap: 16px; inline-size: 100%; max-inline-size: 100%; min-inline-size: 0; }
.mp .mp-form p, .mp .mp-field { margin: 0; display: grid; gap: 5px; min-width: 0; }
.mp .mp-form label, .mp .mp-field label { font-weight: 700; font-size: var(--mp-fs-small); color: var(--mp-ink); }

.mp input[type="text"], .mp input[type="email"], .mp input[type="tel"],
.mp input[type="password"], .mp input[type="number"], .mp input[type="date"],
.mp input[type="url"], .mp input[type="search"], .mp select, .mp textarea {
	inline-size: 100%;
	max-inline-size: 100%;
	min-inline-size: 0;
	min-height: 46px;
	padding: 11px 13px;
	border: 1px solid var(--mp-line);
	border-radius: 12px;
	background: #fff;
	color: var(--mp-ink);
	/* 16px exactly: anything smaller makes iOS zoom the page when the field is
	   tapped, and it never zooms back. */
	font-size: 16px;
	line-height: 1.4;
}
.mp textarea { resize: vertical; min-height: 110px; }
.mp select {
	appearance: none;
	-webkit-appearance: none;
	background-image: linear-gradient(45deg, transparent 50%, #46556B 50%), linear-gradient(135deg, #46556B 50%, transparent 50%);
	background-position: calc(100% - 18px) 21px, calc(100% - 13px) 21px;
	background-size: 5px 5px, 5px 5px;
	background-repeat: no-repeat;
	padding-inline-end: 34px;
}
[dir="rtl"] .mp select { background-position: 13px 21px, 18px 21px; padding-inline-end: 13px; padding-inline-start: 34px; }
.mp input:focus-visible, .mp select:focus-visible, .mp textarea:focus-visible {
	outline: 2px solid var(--mp-orange);
	outline-offset: 1px;
	border-color: var(--mp-orange);
}
.mp input:disabled, .mp select:disabled, .mp textarea:disabled { background: var(--mp-mist); color: var(--mp-ink-2); }

.mp .mp-consent { display: grid; gap: 5px; }
.mp .mp-consent label { display: flex; gap: 10px; align-items: flex-start; min-height: 44px; padding-block: 2px; font-weight: 400; font-size: var(--mp-fs-small); line-height: 1.5; }
.mp .mp-consent input { margin-block-start: 3px; flex: none; inline-size: 20px; block-size: 20px; min-height: 0; }
.mp .mp-error { display: block; font-size: var(--mp-fs-small); color: var(--mp-err); font-weight: 600; }
.mp .mp-choice { border: 0; padding: 0; margin: 0; display: grid; gap: 7px; min-width: 0; }
.mp .mp-choice legend { font-weight: 700; font-size: var(--mp-fs-small); padding: 0; }
.mp .mp-check { display: flex; gap: 8px; align-items: center; font-size: var(--mp-fs-small); min-height: 44px; }
.mp .mp-check input { inline-size: 20px; block-size: 20px; flex: none; }

/* A section of a form. Not a desktop fieldset whose border and padding then
   push it past the right edge of the phone — that overflow is what made the
   profile screen scroll sideways. */
.mp .mp-fieldset {
	display: grid;
	gap: 14px;
	inline-size: 100%;
	max-inline-size: 100%;
	min-inline-size: 0;
	margin: 0;
	padding: 14px 16px 16px;
	border: 1px solid var(--mp-line);
	border-radius: var(--mp-radius);
	background: #fff;
	box-shadow: var(--mp-shadow);
}
.mp .mp-fieldset legend {
	float: left;
	inline-size: 100%;
	max-inline-size: 100%;
	margin: 0 0 2px;
	padding: 0;
	font-size: var(--mp-fs-h3);
	font-weight: 700;
	color: var(--mp-navy);
}
.mp .mp-fieldset legend + * { clear: both; }

/* The save row sits at the end of the form, above the bar, with its own
   breathing room — not stuck to the bottom of the screen where it would cover
   the field being edited. */
.mp .mp-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding-block-start: 4px; }
.mp .mp-actions form { display: flex; flex-wrap: wrap; gap: 8px; }
.mp .mp-actions .btn { flex: 1 1 10rem; }

.mp .mp-photo__row { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 14px; align-items: start; }
.mp .mp-photo__img, .mp .mp-photo__none {
	inline-size: 72px;
	block-size: 72px;
	border-radius: 50%;
	object-fit: cover;
	background: var(--mp-mist);
	display: grid;
	place-items: center;
	color: var(--mp-ink-2);
	font-weight: 700;
}
.mp .mp-photo__controls { display: grid; gap: 8px; min-width: 0; }
.mp input[type="file"] {
	inline-size: 100%;
	max-inline-size: 100%;
	min-inline-size: 0;
	min-block-size: 44px;
	padding-block: 10px;
	font-size: var(--mp-fs-small);
}
.mp .mp-photo__controls input[type="file"]::file-selector-button { margin-inline-end: 8px; }

.mp .mp-rate { border: 0; padding: 0; margin: 0; display: grid; gap: 7px; }
.mp .mp-rate legend { font-weight: 700; font-size: var(--mp-fs-small); padding: 0; }
.mp .mp-rate__opts { display: flex; gap: 6px; }
.mp .mp-rate__opt { position: relative; flex: 1 1 0; }
.mp .mp-rate__opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.mp .mp-rate__opt span {
	display: grid;
	place-items: center;
	min-height: 44px;
	border: 1px solid var(--mp-line);
	border-radius: var(--mp-radius-sm);
	background: #fff;
	font-weight: 700;
}
.mp .mp-rate__opt input:checked + span { background: var(--mp-navy); border-color: var(--mp-navy); color: #fff; }
.mp .mp-rate__opt input:focus-visible + span { outline: 2px solid var(--mp-orange); outline-offset: 2px; }

/* --------------------------------------------------------------------------
   12. Search
   -------------------------------------------------------------------------- */

.mp .mp-search { margin: 0; display: grid; gap: 8px; }
.mp .mp-search__label { font-weight: 700; font-size: var(--mp-fs-small); }
/* Search first and full width; the narrower filter and the button share the
   row under it. Three stacked full-width rows pushed the first result off the
   screen before the member had read anything. */
.mp .mp-search__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.mp .mp-search__row input[type="search"] { grid-column: 1 / -1; }
.mp .mp-search__row select { min-width: 0; }
.mp .mp-search__row .btn { white-space: nowrap; }

/* --------------------------------------------------------------------------
   13. Tabs, tables, calls to action
   -------------------------------------------------------------------------- */

.mp .mp-tabs {
	display: flex;
	gap: 4px;
	margin: 0;
	padding-block-end: 2px;
	overflow-x: auto;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
	border-block-end: 1px solid var(--mp-line);
}
.mp .mp-tabs::-webkit-scrollbar { display: none; }
.mp .mp-tab {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 10px 12px;
	border-block-end: 2px solid transparent;
	color: var(--mp-ink-2);
	text-decoration: none;
	font-size: var(--mp-fs-small);
	font-weight: 700;
	white-space: nowrap;
}
.mp .mp-tab.is-active { color: var(--mp-navy); border-block-end-color: var(--mp-orange); }

/* Integrity Register actions (1.15.0): four real buttons, not tabs.
   A 2×2 grid on a phone, one segmented row from tablet width up. */
.mp .mp-seg {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
	margin: 0 0 4px;
}
.mp .mp-seg--3 .mp-seg__btn:last-child { grid-column: 1 / -1; }
.mp .mp-seg__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 10px 12px;
	border: 1px solid var(--mp-line);
	border-radius: var(--mp-radius-sm);
	background: #fff;
	color: var(--mp-navy);
	font-size: var(--mp-fs-small);
	font-weight: 700;
	line-height: 1.25;
	text-align: center;
	text-decoration: none;
	box-shadow: 0 1px 2px rgba(11, 45, 91, .06);
}
.mp .mp-seg__btn:hover { border-color: var(--mp-navy); }
.mp .mp-seg__btn:focus-visible { outline: 3px solid var(--mp-orange); outline-offset: 2px; }
.mp .mp-seg__btn.is-active {
	background: var(--mp-navy);
	border-color: var(--mp-navy);
	color: #fff;
	box-shadow: inset 0 -3px 0 var(--mp-orange);
}
@media (min-width: 48rem) {
	.mp .mp-seg {
		display: flex;
		gap: 0;
		inline-size: fit-content;
		max-inline-size: 100%;
		padding: 4px;
		border: 1px solid var(--mp-line);
		border-radius: calc(var(--mp-radius-sm) + 4px);
		background: var(--mp-mist);
	}
	.mp .mp-seg__btn {
		min-height: 44px;
		padding: 10px 20px;
		border: 0;
		background: transparent;
		box-shadow: none;
		white-space: nowrap;
	}
	.mp .mp-seg__btn.is-active { background: var(--mp-navy); box-shadow: inset 0 -3px 0 var(--mp-orange); }
}

/* The Integrity Register is Arabic and right to left inside an English portal
   too (1.16.0). The page-level right-to-left rules do not reach it there, so
   the few that matter are repeated for its own wrapper. */
.mp .mp-pir { direction: rtl; }
.mp .mp-pir select { background-position: 13px 21px, 18px 21px; padding-inline-end: 13px; padding-inline-start: 34px; }
.mp .mp-pir .mp-mono,
.mp .mp-pir input[dir="ltr"] { direction: ltr; unicode-bidi: isolate; text-align: right; }
.mp .mp-pir .mp-mono { text-align: start; }

/* The search rules, above the box. */
.mp .mp-rules {
	margin: 0 0 10px;
	padding: 10px 12px;
	border-inline-start: 3px solid var(--mp-orange);
	background: var(--mp-mist);
	border-radius: var(--mp-radius-sm);
	font-size: var(--mp-fs-small);
	line-height: 1.5;
	color: var(--mp-ink);
}

.mp .mp-table { width: 100%; border-collapse: collapse; font-size: var(--mp-fs-small); }
.mp .mp-table th, .mp .mp-table td { padding: 9px 8px; text-align: start; border-block-end: 1px solid var(--mp-line); vertical-align: top; }
.mp .mp-table thead th { background: var(--mp-mist); font-size: var(--mp-fs-tiny); letter-spacing: .04em; text-transform: uppercase; color: var(--mp-ink-2); }
.mp .mp-table__note td { background: var(--mp-mist); font-size: var(--mp-fs-small); line-height: 1.5; }
.mp .mp-table__note-label { font-weight: 700; color: var(--mp-navy); text-transform: uppercase; font-size: var(--mp-fs-tiny); letter-spacing: .04em; }

/* Register results on a narrow phone: five columns at 13px do not fit a 360px
   screen, so each row becomes a card with its heading beside each value. The
   labels come from data-label on the cells, so the table stays a table for
   screen readers and on anything wider. */
@media (max-width: 29.99rem) {
	.mp .mp-table--cards thead { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	.mp .mp-table--cards, .mp .mp-table--cards tbody, .mp .mp-table--cards tr, .mp .mp-table--cards td { display: block; inline-size: 100%; }
	.mp .mp-table--cards tbody tr:not(.mp-table__note) { margin-block-start: 10px; border: 1px solid var(--mp-line); border-radius: var(--mp-radius-sm) var(--mp-radius-sm) 0 0; background: #fff; }
	.mp .mp-table--cards tbody tr:not(.mp-table__note):first-child { margin-block-start: 0; }
	.mp .mp-table--cards tbody tr:not(.mp-table__note) + tr:not(.mp-table__note) { border-radius: var(--mp-radius-sm); }
	.mp .mp-table--cards td[data-label] { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 8px; padding: 8px 12px; }
	.mp .mp-table--cards td[data-label]::before { content: attr(data-label); font-size: var(--mp-fs-tiny); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--mp-ink-2); }
	.mp .mp-table--cards td[data-label]:last-child { border-block-end: 0; }
	.mp .mp-table--cards .mp-table__note td { border: 1px solid var(--mp-line); border-block-start: 0; border-radius: 0 0 var(--mp-radius-sm) var(--mp-radius-sm); padding: 10px 12px; }
}

.mp .mp-terms { margin-block-start: 4px; }
.mp .mp-terms summary { cursor: pointer; font-weight: 700; font-size: var(--mp-fs-small); color: var(--mp-navy); min-height: 44px; display: flex; align-items: center; }
.mp .mp-terms ul { margin-block-start: 8px; }

.mp .mp-allow {
	justify-self: start;
	margin: 0;
	padding: 5px 11px;
	border-radius: 999px;
	background: var(--mp-mist);
	color: var(--mp-ink-2);
	font-size: var(--mp-fs-tiny);
	font-weight: 700;
}
.mp .mp-allow--out { background: #FEF6E7; color: var(--mp-warn); }

.mp .mp-cta { display: grid; gap: 6px; justify-items: start; padding: 16px; background: var(--mp-navy); border-radius: var(--mp-radius); color: #fff; }
.mp .mp-cta__title { margin: 0; font-size: var(--mp-fs-h3); color: #fff; }
.mp .mp-cta__text { margin: 0 0 4px; font-size: var(--mp-fs-small); line-height: 1.5; color: rgba(255, 255, 255, .86); }

/* --------------------------------------------------------------------------
   14. Members directory
   -------------------------------------------------------------------------- */

.mp .mp-dir { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.mp .mp-dir__item {
	display: grid;
	/* Avatar column, then one text column: name, role, company and phone all
	   start on the same line. */
	grid-template-columns: 44px minmax(0, 1fr);
	gap: 2px 12px;
	align-items: start;
	padding: 12px 14px;
	background: #fff;
	border: 1px solid var(--mp-line);
	border-radius: var(--mp-radius);
	box-shadow: var(--mp-shadow);
}
.mp .mp-avatar, .mp .mp-dir__photo {
	grid-row: span 1;
	display: grid;
	place-items: center;
	inline-size: 44px;
	block-size: 44px;
	flex: none;
	border-radius: 50%;
	object-fit: cover;
	background: var(--mp-navy);
	color: #fff;
	font-weight: 700;
	font-size: var(--mp-fs-small);
}
.mp .mp-dir__body { min-width: 0; display: grid; gap: 1px; }
.mp .mp-dir__name { margin: 0; font-size: var(--mp-fs-body); font-weight: 700; line-height: 1.3; color: var(--mp-navy); }
.mp .mp-dir__role, .mp .mp-dir__co { margin: 0; font-size: var(--mp-fs-small); line-height: 1.4; color: var(--mp-ink-2); }
.mp .mp-dir__co { font-weight: 600; color: var(--mp-ink); }
.mp .mp-dir__phone { margin: 4px 0 0; font-size: var(--mp-fs-body); }
.mp .mp-dir__phone a {
	display: inline-grid;
	grid-template-columns: 17px auto;
	align-items: center;
	gap: 7px;
	min-height: 44px;
	color: var(--mp-orange-ink);
	text-decoration: none;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	direction: ltr;
	unicode-bidi: isolate;
}
.mp .mp-dir__phone .mecsn-icon { width: 17px; height: 17px; }

/* "View profile" sits beside the name (1.15.0). The name keeps the room it
   needs and wraps; the button keeps a full 44px tap target. */
.mp .mp-dir__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.mp .mp-dir__head .mp-dir__name { min-width: 0; padding-block-start: 2px; }
.mp .mp-dir__view {
	flex: none;
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	/* The tap target overhangs the line it sits on, so the card is no taller
	   than it was before the button existed. */
	margin-block: -12px;
	margin-inline-end: -6px;
	padding: 0 10px;
	border-radius: var(--mp-radius-sm);
	color: var(--mp-orange-ink);
	font-size: var(--mp-fs-small);
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}
.mp .mp-dir__view:hover { background: var(--mp-mist); }
.mp .mp-dir__view:focus-visible { outline: 3px solid var(--mp-orange); outline-offset: -3px; }

/* One member's profile. */
.mp .mp-back { margin: 0 0 10px; }
.mp .mp-back a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--mp-navy); font-weight: 700; font-size: var(--mp-fs-small); text-decoration: none; }
.mp .mp-back__arrow { display: inline-flex; }
.mp .mp-back__arrow .mecsn-icon { width: 18px; height: 18px; }
/* The icon is a drawing, so it does not turn round by itself in Arabic. */
.mp[dir="rtl"] .mp-back__arrow { transform: scaleX(-1); }
.mp .mp-profile { display: grid; gap: 14px; }
.mp .mp-profile__head { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: center; }
.mp .mp-profile__photo { inline-size: 96px; block-size: 96px; border-radius: 50%; object-fit: cover; }
.mp .mp-avatar.mp-profile__photo { font-size: 28px; }
.mp .mp-profile__who { min-width: 0; display: grid; gap: 2px; }
.mp .mp-profile__name { margin: 0; font-size: var(--mp-fs-h2); line-height: 1.25; color: var(--mp-navy); }
.mp .mp-profile__role, .mp .mp-profile__co, .mp .mp-profile__city { margin: 0; font-size: var(--mp-fs-small); line-height: 1.45; color: var(--mp-ink-2); }
.mp .mp-profile__co { font-weight: 600; color: var(--mp-ink); }
.mp .mp-profile__city { display: flex; align-items: center; gap: 4px; }
.mp .mp-profile__city .mecsn-icon { width: 14px; height: 14px; flex: none; }
.mp .mp-profile__actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.mp .mp-profile__actions .btn { gap: 8px; }
.mp .mp-profile__phone bdi { font-variant-numeric: tabular-nums; }
.mp .mp-profile__section { display: grid; gap: 6px; }
.mp .mp-profile__section h3 { margin: 0; font-size: var(--mp-fs-tiny); letter-spacing: .04em; text-transform: uppercase; color: var(--mp-ink-2); }
.mp .mp-profile__bio { margin: 0; line-height: 1.6; }
/* Phones with notifications or Face ID set up (My Profile, 1.16.0). */
.mp .mp-push { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 6px 0 10px; }
.mp .mp-devices { display: grid; gap: 6px; margin: 6px 0 0; padding: 0; list-style: none; }
.mp .mp-devices li { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 12px; border: 1px solid var(--mp-line); border-radius: var(--mp-radius-sm); background: var(--mp-mist); font-size: var(--mp-fs-small); }
.mp .mp-devices li > span:first-child { font-weight: 700; color: var(--mp-navy); }
.mp .mp-devices__when { color: var(--mp-ink-2); margin-inline-start: auto; }
.mp .mp-devices__remove { min-height: 36px; padding: 4px 10px; border: 1px solid var(--mp-line); border-radius: var(--mp-radius-sm); background: #fff; color: var(--mp-warn); font-weight: 700; font-size: var(--mp-fs-small); cursor: pointer; }
.mp .mp-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.mp .mp-chips li { padding: 4px 10px; border-radius: 999px; background: var(--mp-mist); border: 1px solid var(--mp-line); font-size: var(--mp-fs-small); font-weight: 600; color: var(--mp-navy); }
@media (min-width: 48rem) {
	.mp .mp-profile { max-inline-size: 46rem; }
	.mp .mp-profile__head { grid-template-columns: 120px minmax(0, 1fr); gap: 20px; }
	.mp .mp-profile__photo { inline-size: 120px; block-size: 120px; }
}

.mp .mp-pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-block: 8px; }
.mp .mp-pager__at { font-size: var(--mp-fs-small); color: var(--mp-ink-2); }
.mp .mp-pager ul { display: flex; flex-wrap: wrap; gap: 5px; list-style: none; margin: 8px 0 0; padding: 0; justify-content: center; }
.mp .mp-pager__link { display: grid; place-items: center; min-inline-size: 44px; min-block-size: 44px; padding: 8px; border: 1px solid var(--mp-line); border-radius: var(--mp-radius-sm); text-decoration: none; color: var(--mp-ink-2); font-size: var(--mp-fs-small); background: #fff; }
.mp .mp-pager__link.is-current { background: var(--mp-navy); border-color: var(--mp-navy); color: #fff; }
.mp .mp-pager__gap { padding: 8px 2px; color: var(--mp-ink-2); }

/* --------------------------------------------------------------------------
   15. Companies and reviews
   -------------------------------------------------------------------------- */

.mp .mp-colist { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.mp .mp-co { display: grid; gap: 10px; padding: 14px; background: #fff; border: 1px solid var(--mp-line); border-radius: var(--mp-radius); box-shadow: var(--mp-shadow); }
.mp .mp-co__logo { inline-size: 90px; }
.mp .mp-co__logo img { max-width: 100%; height: auto; }
.mp .mp-co__body { min-width: 0; }
.mp .mp-co__name { margin: 0 0 4px; font-size: var(--mp-fs-h3); color: var(--mp-navy); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mp .mp-co__hq, .mp .mp-co__services, .mp .mp-co__countries { margin: 3px 0; font-size: var(--mp-fs-small); color: var(--mp-ink-2); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.mp .mp-co__hq .mecsn-icon { width: 15px; height: 15px; }
.mp .mp-co__flag { padding: 2px 7px; background: var(--mp-mist); border-radius: 6px; font-size: var(--mp-fs-tiny); }
.mp .mp-co__rating { margin: 6px 0; font-size: var(--mp-fs-small); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.mp .mp-co__links { margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.mp .mp-stars { display: inline-flex; gap: 1px; }
.mp .mp-star { color: var(--mp-line); font-size: var(--mp-fs-h3); line-height: 1; }
.mp .mp-star.is-on { color: var(--mp-orange); }

.mp .mp-reviews__summary { padding: 14px; background: var(--mp-mist); border-radius: var(--mp-radius); margin-block-end: 12px; }
.mp .mp-reviews__score { margin: 0 0 8px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: var(--mp-fs-h3); }
.mp .mp-reviews__crit { display: grid; gap: 4px 14px; margin: 0; font-size: var(--mp-fs-small); }
.mp .mp-reviews__crit dt { color: var(--mp-ink-2); display: inline; }
.mp .mp-reviews__crit dd { margin: 0 0 4px; display: inline; font-weight: 700; }
.mp .mp-reviews__crit dd::after { content: ""; display: block; }
.mp .mp-reviews__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.mp .mp-review { padding: 14px; border: 1px solid var(--mp-line); border-radius: var(--mp-radius); background: #fff; }
.mp .mp-review__head { margin: 0 0 8px; display: flex; gap: 10px; align-items: center; font-size: var(--mp-fs-small); color: var(--mp-ink-2); flex-wrap: wrap; }
.mp .mp-review__text p { margin: 0 0 8px; font-size: var(--mp-fs-small); }
.mp .mp-review__by { margin: 4px 0 0; font-size: var(--mp-fs-small); color: var(--mp-ink-2); }
.mp .mp-review__response { margin-block-start: 10px; padding: 11px; background: var(--mp-mist); border-radius: var(--mp-radius-sm); }
.mp .mp-review__rlabel { margin: 0 0 5px; font-size: var(--mp-fs-tiny); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--mp-ink-2); }
.mp .mp-respond summary { cursor: pointer; font-size: var(--mp-fs-small); color: var(--mp-navy); font-weight: 700; min-height: 44px; display: flex; align-items: center; }

.mp .mp-status__co { margin: 0 0 4px; font-size: var(--mp-fs-h2); font-weight: 800; color: var(--mp-navy); }
.mp .mp-status__badge { margin: 0 0 12px; }

/* --------------------------------------------------------------------------
   16. Jobs
   -------------------------------------------------------------------------- */

.mp .mp-jobs { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.mp .mp-job { background: #fff; border: 1px solid var(--mp-line); border-radius: var(--mp-radius); padding: 14px; box-shadow: var(--mp-shadow); }
.mp .mp-job__title { margin: 0 0 4px; font-size: var(--mp-fs-h3); color: var(--mp-navy); line-height: 1.3; }
.mp .mp-job__meta { margin: 0 0 5px; font-size: var(--mp-fs-small); color: var(--mp-ink-2); }
.mp .mp-job__closing { margin: 0 0 7px; font-size: var(--mp-fs-small); color: var(--mp-ink-2); }
.mp .mp-job__closing.is-soon { color: var(--mp-warn); font-weight: 700; }
.mp .mp-job__blurb { margin: 0 0 10px; font-size: var(--mp-fs-small); line-height: 1.5; }
.mp .mp-job__actions { margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.mp .mp-job__actions .btn { flex: 1 1 9rem; }

/* --------------------------------------------------------------------------
   17. Documents
   -------------------------------------------------------------------------- */

.mp .mp-docgrid { display: grid; gap: 8px; }
.mp .mp-docbox {
	display: grid;
	align-content: start;
	gap: 6px;
	padding: 14px;
	background: #fff;
	border: 1px solid var(--mp-line);
	border-radius: var(--mp-radius);
	box-shadow: var(--mp-shadow);
}
.mp .mp-docbox__cat {
	margin: 0;
	justify-self: start;
	padding: 3px 9px;
	border-radius: 999px;
	background: var(--mp-orange-soft);
	color: var(--mp-orange-ink);
	font-size: var(--mp-fs-tiny);
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
}
.mp .mp-docbox__title { margin: 0; font-size: var(--mp-fs-body); font-weight: 700; line-height: 1.35; color: var(--mp-navy); }
.mp .mp-docbox__title a { color: inherit; text-decoration: none; }
.mp .mp-docbox__meta { margin: 0; display: flex; gap: 8px; font-size: var(--mp-fs-small); color: var(--mp-ink-2); }
.mp .mp-docbox__size::before { content: "\00B7 "; }
.mp .mp-docbox__open {
	justify-self: start;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin-block-start: 4px;
	min-height: 44px;
	padding: 10px 16px;
	border-radius: 12px;
	background: var(--mp-navy);
	color: #fff;
	font-size: var(--mp-fs-small);
	font-weight: 700;
	text-decoration: none;
}
.mp .mp-docbox__open:hover { background: var(--mp-navy-deep); }
.mp .mp-docbox__open .mecsn-icon { width: 16px; height: 16px; }
.mp .mp-docbox--soon { background: var(--mp-mist); box-shadow: none; }
.mp .mp-docbox__soon { font-size: var(--mp-fs-small); color: var(--mp-ink-2); font-style: italic; }

/* --------------------------------------------------------------------------
   18. Emergency and essential services
   -------------------------------------------------------------------------- */

.mp .mp-emg__country { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: var(--mp-fs-small); color: var(--mp-ink-2); margin: 0; }
.mp .mp-emg__country strong { color: var(--mp-ink); font-size: var(--mp-fs-body); }
.mp .mp-emg__flag { font-size: 20px; line-height: 1; }
/* English and Arabic never share a line uncontrolled: each Arabic label is its
   own isolated run, so a long one cannot drag the English out of place. */
.mp .mp-emg__ar, .mp .mp-emg__catar, .mp .mp-emg__namear {
	direction: rtl;
	unicode-bidi: isolate;
	color: var(--mp-ink-2);
	font-weight: 400;
	font-size: var(--mp-fs-small);
}

.mp .mp-emg__priority { display: grid; gap: 8px; margin: 0; }
.mp .mp-emg__cat { margin: 0; }
.mp .mp-emg__cat > .mp-h { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; }
.mp .mp-emg__list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }

/* One number to a card: service, number, Call, Copy. Everything
   administrative — who verified it, when, from what source — lives in the
   admin screens where it is managed. */
.mp .mp-emg {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	grid-template-rows: auto auto auto auto;
	align-items: center;
	align-content: start;
	gap: 2px 12px;
	padding: 12px 14px;
	background: #fff;
	border: 1px solid var(--mp-line);
	border-radius: var(--mp-radius);
	box-shadow: var(--mp-shadow);
}
.mp .mp-emg__head { grid-column: 1; grid-row: 1; display: grid; gap: 0; justify-items: start; min-width: 0; }
.mp .mp-emg__name { margin: 0; font-weight: 700; font-size: var(--mp-fs-body); color: var(--mp-navy); line-height: 1.3; }
.mp .mp-emg__region { font-weight: 500; font-size: var(--mp-fs-small); color: var(--mp-ink-2); }
.mp .mp-emg__namear { display: inline-block; margin: 0; line-height: 1.35; }
.mp .mp-emg__num { grid-column: 1; grid-row: 3; margin: 0; }
.mp .mp-emg__digits {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	font-size: 26px;
	font-weight: 800;
	color: var(--mp-navy);
	font-variant-numeric: tabular-nums;
	text-decoration: none;
	line-height: 1.1;
	direction: ltr;
	unicode-bidi: isolate;
}
.mp .mp-emg__tag {
	grid-column: 1;
	grid-row: 2;
	justify-self: start;
	margin: 3px 0 0;
	padding: 2px 8px;
	border-radius: 999px;
	background: #FEF6E7;
	color: var(--mp-warn);
	font-size: var(--mp-fs-tiny);
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
}
/* The actions sit beside the number rather than under it, which is what made
   each card nearly half a screen tall. */
.mp .mp-emg__actions {
	grid-column: 2;
	grid-row: 1 / 4;
	display: grid;
	gap: 6px;
	margin: 0;
	align-content: center;
	justify-items: stretch;
}
.mp .mp-emg__call {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	min-inline-size: 104px;
	min-height: 46px;
	padding: 11px 16px;
	border: 0;
	border-radius: 12px;
	background: var(--mp-orange);
	color: #fff;
	font-weight: 700;
	font-size: var(--mp-fs-body);
	text-decoration: none;
}
.mp .mp-emg__call:hover { filter: brightness(1.06); }
.mp .mp-emg__call .mecsn-icon { width: 17px; height: 17px; }
.mp .mp-emg__copy {
	min-height: 44px;
	padding: 8px 12px;
	border: 1px solid var(--mp-line);
	border-radius: 10px;
	background: #fff;
	color: var(--mp-ink-2);
	font-size: var(--mp-fs-small);
	font-weight: 600;
	cursor: pointer;
}
.mp .mp-emg__copy:hover { border-color: var(--mp-navy); color: var(--mp-navy); }
.mp .mp-emg__copy.is-copied { background: #EAF7F0; border-color: var(--mp-ok); color: var(--mp-ok); }

.mp .mp-emg__report { grid-column: 1 / -1; grid-row: 4; margin: 0; font-size: var(--mp-fs-small); }
.mp .mp-emg__report a { display: inline-flex; align-items: center; min-height: 44px; }
.mp .mp-emg__report a { color: var(--mp-ink-2); text-decoration: none; border-block-end: 1px solid var(--mp-line); }
.mp .mp-emg__report a:hover { color: var(--mp-navy); border-color: currentColor; }

/* The headline services are bigger, because they are why the screen exists. */
.mp .mp-emg--big { padding: 14px 16px; }
.mp .mp-emg--big .mp-emg__digits { font-size: 32px; }
.mp .mp-emg--big .mp-emg__name { font-size: var(--mp-fs-h3); }

.mp .mp-emg--pending, .mp .mp-emg--recheck { border-inline-start: 4px solid var(--mp-warn); }
.mp .mp-emg__pending { margin-block-start: 4px; }

/* Secondary services collapse, so the directory is not screens of cards
   before the member reaches the search box. */
.mp .mp-emg__more > summary {
	cursor: pointer;
	list-style: none;
	display: flex;
	align-items: center;
	gap: 6px;
	min-height: 46px;
	padding: 10px 14px;
	background: #fff;
	border: 1px solid var(--mp-line);
	border-radius: 12px;
	font-size: var(--mp-fs-small);
	font-weight: 700;
	color: var(--mp-navy);
}
.mp .mp-emg__more > summary::-webkit-details-marker { display: none; }
.mp .mp-emg__more > summary::after { content: "\25BE"; margin-inline-start: auto; color: var(--mp-ink-2); }
.mp .mp-emg__more[open] > summary::after { content: "\25B4"; }
.mp .mp-emg__more[open] > summary { border-end-start-radius: 0; border-end-end-radius: 0; }
.mp .mp-emg__body { display: grid; gap: 8px; padding-block-start: 8px; }

/* --------------------------------------------------------------------------
   19. Announcements, auth, offline
   -------------------------------------------------------------------------- */

.mp .mp-ann__list { display: grid; gap: 8px; }
.mp .mp-ann__item { padding: 14px; background: #fff; border: 1px solid var(--mp-line); border-radius: var(--mp-radius); box-shadow: var(--mp-shadow); }
.mp .mp-ann__kind { margin: 0 0 3px; font-size: var(--mp-fs-tiny); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mp-orange-ink); }
.mp .mp-ann__title { margin: 0; font-size: var(--mp-fs-h3); color: var(--mp-navy); }
.mp .mp-ann__date { margin: 2px 0 7px; font-size: var(--mp-fs-small); color: var(--mp-ink-2); }
.mp .mp-ann__text p { margin: 0 0 8px; font-size: var(--mp-fs-small); }
.mp .mp-ann__link { font-weight: 700; }

.mp .mp-auth { max-width: 26rem; margin-inline: auto; padding-block: 24px; }
.mp .mp-auth h2 { margin: 0 0 14px; font-size: var(--mp-fs-h1); color: var(--mp-navy); }
.mp .mp-auth__form { display: grid; gap: 14px; }
.mp .mp-auth__form p { margin: 0; display: grid; gap: 5px; }
.mp .mp-auth__form label { font-weight: 700; font-size: var(--mp-fs-small); }
.mp .mp-auth__remember label { display: flex; gap: 8px; align-items: center; font-weight: 400; font-size: var(--mp-fs-small); }
.mp .mp-auth__lost { margin-block-start: 16px; }
.mp .mp-auth__lost summary { cursor: pointer; font-size: var(--mp-fs-small); color: var(--mp-navy); min-height: 44px; display: flex; align-items: center; }
.mp .mp-auth__join { margin-block-start: 16px; font-size: var(--mp-fs-small); color: var(--mp-ink-2); }

/* The offline page is a standalone document and has no .mp wrapper. */
.mp-offline { display: grid; place-items: center; min-block-size: 100dvh; margin: 0; padding: 24px; font-family: system-ui, sans-serif; background: #F2F5F9; }
.mp-offline__box { max-width: 30rem; text-align: center; background: #fff; padding: 28px; border-radius: 14px; }
.mp-offline__box h1 { color: #0B2D5B; margin-block-start: 0; }
.mp-offline__data { margin-block-start: 20px; text-align: start; }
.mp-offline__data em { color: #8A6D00; font-size: .85rem; font-style: normal; }
.mp-offline__data .mp-help { color: #5A6B80; font-size: .85rem; }

/* --------------------------------------------------------------------------
   20. Larger screens
   -------------------------------------------------------------------------- */

/* On a phone the menu-only items live in the menu, not in the bar. */
@media (max-width: 47.99rem) {
	.mp .mp__navlist > li.mp__navitem--menu-only { display: none; }
}

@media (min-width: 30rem) {
	.mp .mp-stat__n { font-size: 22px; }
	.mp .mp-emg--big .mp-emg__digits { font-size: 36px; }
	.mp .mp-docgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 48rem) {
	.mp { --mp-gutter: 28px; --mp-fs-h1: 28px; }
	.mp .mp__body {
		max-inline-size: 60rem;
		margin-inline: auto;
		padding-block-start: 22px;
		/* The bar becomes a row under the app bar on a wide screen, so the body
		   no longer reserves space at the foot of the page. */
		padding-block-end: 40px;
		gap: 18px;
	}
	.mp .mp__appbar { padding-inline: 28px; }

	/* Tabs move up beside the content: a bottom-fixed strip across a desktop
	   window is a phone pattern stranded on the wrong device. */
	.mp .mp__nav {
		position: static;
		min-block-size: 0;
		padding: 0;
		margin-inline: auto;
		max-inline-size: 60rem;
		inline-size: 100%;
		background: transparent;
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
		border-block-start: 0;
		border-block-end: 1px solid var(--mp-line);
	}
	.mp .mp__navlist { gap: 4px; padding-inline: 28px; overflow-x: auto; scrollbar-width: none; }
	.mp .mp__navlist > li { flex: 0 0 auto; }
	.mp .mp__navlist > li.mp__navitem--menu-only { display: flex; }
	.mp .mp__navlink { flex-direction: row; gap: 8px; padding: 12px 14px; font-size: var(--mp-fs-small); white-space: nowrap; }
	.mp .mp__navfull { display: inline; }
	.mp .mp__navshort { display: none; }
	.mp .mp__navlink.is-active { color: var(--mp-navy); border-block-end: 2px solid var(--mp-orange); }
	.mp .mp__menubtn { display: none; }

	.mp .mp-dir { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mp .mp-emg__list, .mp .mp-emg__priority { grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); }
	.mp .mp-quick__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.mp .mp-joiners__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mp .mp-docgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.mp .mp-co { grid-template-columns: auto minmax(0, 1fr); }
	.mp .mp-form { max-inline-size: 42rem; }
	.mp .mp-search__row { grid-template-columns: minmax(0, 1fr) 12rem auto; }
	.mp .mp-search__row input[type="search"] { grid-column: auto; }
}

/* --------------------------------------------------------------------------
   21. Right to left
   -------------------------------------------------------------------------- */

.mecsn-portal--rtl .mp, .mp[dir="rtl"] { direction: rtl; }
[dir="rtl"] .mp .mp-emg__digits,
[dir="rtl"] .mp .mp-mono,
[dir="rtl"] .mp .mp-stat__n,
[dir="rtl"] .mp .mp-dir__phone a { direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] .mp .mp-docbox__size::before { content: " \00B7"; }
[dir="rtl"] .mp .mp-conduct__more > summary::before { content: "\25C2"; }
[dir="rtl"] .mp .mp__menubtn { margin-inline-start: 0; margin-inline-end: -6px; }
/* Addresses, email and telephone numbers are written left to right in any
   language. In an Arabic form they keep that direction, so a long LinkedIn
   address is never cut off at its start (1.15.0). */
.mp[dir="rtl"] input[type="url"],
.mp[dir="rtl"] input[type="email"],
.mp[dir="rtl"] input[type="tel"],
.mp[dir="rtl"].mp--auth input[type="text"],
.mp[dir="rtl"].mp--auth input[type="password"] { direction: ltr; text-align: right; }
.mp[dir="rtl"] .mp-mono, .mp[dir="rtl"] .mp-emg__digits, .mp[dir="rtl"] .mp-dir__phone a { direction: ltr; unicode-bidi: isolate; }

/* --------------------------------------------------------------------------
   22. Focus, motion, print
   -------------------------------------------------------------------------- */

.mecsn-portal a:focus-visible,
.mecsn-portal button:focus-visible,
.mecsn-portal select:focus-visible,
.mecsn-portal summary:focus-visible {
	outline: 2px solid var(--mp-orange, #FF7A00);
	outline-offset: 2px;
	border-radius: 6px;
}

@media print {
	.mp .mp__appbar, .mp .mp__nav, .mp .mp__menu, .mp .mp-emg__actions, .mp .mp-emg__report, .mp .mp-search { display: none !important; }
	.mp .mp__body { padding: 0; }
	.mp .mp-emg { break-inside: avoid; border: 1px solid #999; box-shadow: none; }
}

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ==========================================================================
   23. The sign-in screen
   --------------------------------------------------------------------------
   Its own layout: a navy field, the mark, and one white card. There is no app
   bar and no navigation, because there is nothing to navigate to until the
   member is through.
   ========================================================================== */

body.mecsn-portal--login,
body.mecsn-portal.mecsn-portal--login { background: var(--navy, #0B2D5B); }

.mp.mp--auth {
	display: grid;
	align-content: start;
	justify-items: center;
	gap: 22px;
	min-block-size: 100dvh;
	padding: calc(32px + env(safe-area-inset-top, 0px)) 16px calc(32px + env(safe-area-inset-bottom, 0px));
	background: var(--mp-navy);
}
.mp.mp--auth .mp-auth__brand { display: grid; justify-items: center; gap: 6px; text-align: center; }
.mp.mp--auth .mp-auth__brand img { height: 42px; width: auto; max-width: 240px; object-fit: contain; display: block; }
.mp.mp--auth .mp__logo-text { font-size: 26px; letter-spacing: .18em; }
/* The welcome under the mark (1.15.0). */
.mp.mp--auth .mp-auth__welcome { display: grid; justify-items: center; gap: 6px; text-align: center; max-inline-size: 26rem; }
.mp.mp--auth .mp-auth__title { margin: 0; font-size: 26px; line-height: 1.2; font-weight: 800; color: #fff; }
.mp.mp--auth .mp-auth__tag {
	margin: 0;
	font-size: var(--mp-fs-small);
	font-weight: 700;
	letter-spacing: .04em;
	color: var(--mp-orange);
}
.mp.mp--auth .mp-auth__lede {
	margin: 0;
	max-inline-size: 30ch;
	text-align: center;
	font-size: var(--mp-fs-body);
	line-height: 1.55;
	color: rgba(255, 255, 255, .78);
}

.mp.mp--auth .mp-auth {
	inline-size: 100%;
	max-inline-size: 26rem;
	margin: 0;
	padding: 22px 20px 24px;
	background: #fff;
	border-radius: 18px;
	box-shadow: 0 18px 50px rgba(3, 16, 34, .35);
}
.mp.mp--auth .mp-auth h2 { margin: 0 0 16px; font-size: var(--mp-fs-h2); color: var(--mp-navy); }
.mp.mp--auth .mp-auth__form { display: grid; gap: 14px; }
.mp.mp--auth .mp-auth__form p { margin: 0; display: grid; gap: 6px; }
.mp.mp--auth .mp-auth__form label { font-weight: 700; font-size: var(--mp-fs-small); color: var(--mp-ink); }
.mp.mp--auth .mp-auth__form .btn,
.mp.mp--auth .mp-auth__form button[type="submit"] {
	inline-size: 100%;
	min-height: 50px;
	border-radius: 12px;
	font-size: var(--mp-fs-body);
	font-weight: 700;
}
/* The one thing to press is navy, as on the rest of MECSN's sign-in material;
   orange stays for actions inside the portal. */
.mp.mp--auth .mp-auth__form .btn--primary {
	background: var(--mp-navy);
	border-color: var(--mp-navy);
	color: #fff;
}
.mp.mp--auth .mp-auth__form .btn--primary:hover { background: var(--mp-navy-deep); }
.mp.mp--auth .mp-auth__remember label { display: flex; gap: 10px; align-items: center; min-height: 44px; font-weight: 400; font-size: var(--mp-fs-small); }
.mp.mp--auth .mp-auth__remember input { inline-size: 20px; block-size: 20px; flex: none; }

.mp.mp--auth .mp-auth__lost { margin-block-start: 12px; padding: 0; border: 0; border-block-start: 1px solid var(--mp-line); padding-block-start: 4px; }
.mp.mp--auth .mp-auth__lost summary { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; color: var(--mp-navy); list-style: none; }
.mp.mp--auth .mp-auth__lost summary::-webkit-details-marker { display: none; }
.mp.mp--auth .mp-auth__lost summary::before { content: "\25B8"; font-size: 12px; transition: transform .15s ease; }
.mp.mp--auth .mp-auth__lost[open] summary::before { transform: rotate(90deg); }
.mp[dir="rtl"].mp--auth .mp-auth__lost summary::before { content: "\25C2"; }
.mp[dir="rtl"].mp--auth .mp-auth__lost[open] summary::before { transform: rotate(-90deg); }
.mp.mp--auth .mp-auth__lost .mp-auth__form { margin-block-start: 6px; padding: 14px; border-radius: 12px; background: var(--mp-mist); }
.mp.mp--auth .mp-auth__hint { margin: 0; font-size: var(--mp-fs-small); line-height: 1.5; color: var(--mp-ink-2); }
.mp.mp--auth .mp-auth__lost .btn { background: #fff; border: 1px solid var(--mp-navy); color: var(--mp-navy); }
.mp.mp--auth .mp-auth__note { margin: 14px 0 0; padding-block-start: 14px; border-block-start: 1px solid var(--mp-line); font-size: var(--mp-fs-small); line-height: 1.55; color: var(--mp-ink-2); }
.mp.mp--auth .mp-auth__note a { color: var(--mp-navy); font-weight: 600; }
/* Face ID sign-in above the password form (1.16.0). */
.mp.mp--auth .mp-auth__pk { display: grid; gap: 10px; margin-block-end: 6px; }
.mp.mp--auth .mp-auth__pkbtn { display: flex; align-items: center; justify-content: center; gap: 10px; inline-size: 100%; min-height: 50px; border-radius: 12px; font-weight: 700; }
.mp.mp--auth .mp-auth__pkbtn .mecsn-icon { width: 20px; height: 20px; }
.mp.mp--auth .mp-auth__or { display: flex; align-items: center; gap: 10px; margin: 4px 0; font-size: var(--mp-fs-small); color: var(--mp-ink-2); }
.mp.mp--auth .mp-auth__or::before, .mp.mp--auth .mp-auth__or::after { content: ""; flex: 1; height: 1px; background: var(--mp-line); }

/* English | العربية, on the navy below the card. */
.mp.mp--auth .mp__menu-lang { inline-size: 100%; max-inline-size: 16rem; background: rgba(255, 255, 255, .12); }
.mp.mp--auth .mp__lang { color: rgba(255, 255, 255, .78); }
.mp.mp--auth .mp__lang.is-active { background: #fff; color: var(--mp-navy); }
.mp.mp--auth .mp-auth__join {
	margin: 0;
	max-inline-size: 26rem;
	text-align: center;
	font-size: var(--mp-fs-small);
	color: rgba(255, 255, 255, .72);
}
.mp.mp--auth .mp-auth__join a { color: #fff; font-weight: 600; }
.mp.mp--auth .mp__notice {
	inline-size: 100%;
	max-inline-size: 26rem;
	margin: 0;
}

@media (min-width: 48rem) {
	.mp.mp--auth { gap: 26px; padding-block: 56px; }
	.mp.mp--auth .mp-auth__brand img { height: 52px; max-width: 300px; }
	.mp.mp--auth .mp-auth { padding: 28px 28px 30px; }
}

/* ==========================================================================
   24. Desktop: a sidebar, not a phone bar
   --------------------------------------------------------------------------
   Everything in this section applies from 48rem up and nowhere else. The
   phone layout above is untouched by it.
   ========================================================================== */

@media (min-width: 48rem) {
	.mp:not(.mp--auth) {
		--mp-side: 268px;
		display: grid;
		grid-template-columns: var(--mp-side) minmax(0, 1fr);
		grid-template-rows: auto 1fr;
		min-block-size: 100dvh;
		background: var(--mp-mist);
	}

	/* The drawer becomes the permanent navigation column. Its markup is the
	   same one the phone opens over the screen; here it simply stays put. */
	.mp:not(.mp--auth) .mp__menu,
	.mp:not(.mp--auth) .mp__menu.is-closed,
	.mp:not(.mp--auth) .mp__menu[hidden] {
		display: block;
		/* inset first, then the sticky offset: the shorthand resets all four
		   sides, so setting top before it would be undone. */
		inset: auto;
		position: sticky;
		top: 0;
		grid-column: 1;
		grid-row: 1 / -1;
		z-index: 30;
		block-size: 100dvh;
	}
	.mp:not(.mp--auth) .mp__menu-scrim { display: none; }
	.mp:not(.mp--auth) .mp__menu-panel {
		position: static;
		inline-size: 100%;
		max-block-size: none;
		block-size: 100%;
		padding: 0 14px 18px;
		background: var(--mp-navy);
		box-shadow: none;
		transform: none;
		transition: none;
	}
	.mp:not(.mp--auth) .mp__menu-head {
		order: 2;
		margin-block-start: auto;
		position: static;
		padding-block: 16px 0;
		background: transparent;
		border-block-start: 1px solid rgba(255, 255, 255, .16);
		border-block-end: 0;
	}
	.mp:not(.mp--auth) .mp__menu-name { color: #fff; }
	.mp:not(.mp--auth) .mp__menu-mail { color: rgba(255, 255, 255, .62); }
	.mp:not(.mp--auth) .mp__menu-close { display: none; }

	/* The mark sits at the top of the column, as on the rest of MECSN. */
	.mp:not(.mp--auth) .mp__menu-brand {
		order: 0;
		display: flex;
		align-items: center;
		min-block-size: 64px;
		margin-inline: -14px;
		margin-block-end: 14px;
		padding-inline: 18px;
		border-block-end: 1px solid rgba(255, 255, 255, .14);
		line-height: 0;
	}
	.mp:not(.mp--auth) .mp__menu-brand img { height: 30px; width: auto; max-width: 190px; object-fit: contain; }
	.mp:not(.mp--auth) .mp__menu-brand .mp__logo-text { color: #fff; font-size: 18px; letter-spacing: .16em; }
	.mp:not(.mp--auth) .mp__menu-list { order: 1; margin: 0; gap: 2px; }
	.mp:not(.mp--auth) .mp__menu-link {
		min-height: 48px;
		color: rgba(255, 255, 255, .84);
		font-weight: 500;
	}
	.mp:not(.mp--auth) .mp__menu-link .mecsn-icon { color: rgba(255, 255, 255, .64); }
	.mp:not(.mp--auth) .mp__menu-link:hover { background: rgba(255, 255, 255, .1); color: #fff; }
	.mp:not(.mp--auth) .mp__menu-link.is-active {
		background: rgba(255, 255, 255, .14);
		color: #fff;
		font-weight: 700;
		box-shadow: inset 3px 0 0 var(--mp-orange);
	}
	.mp:not(.mp--auth) .mp__menu-link.is-active .mecsn-icon { color: var(--mp-orange); }
	.mp:not(.mp--auth) .mp__menu-lang { order: 3; background: rgba(255, 255, 255, .12); margin-block-start: 12px; }
	.mp:not(.mp--auth) .mp__lang { color: rgba(255, 255, 255, .72); }
	.mp:not(.mp--auth) .mp__lang.is-active { background: #fff; color: var(--mp-navy); }
	.mp:not(.mp--auth) .mp__menu-reset { order: 4; }
	.mp:not(.mp--auth) .mp__resetbtn { color: rgba(255, 255, 255, .55); }
	.mp:not(.mp--auth) .mp__resetbtn:hover { color: #fff; }
	.mp:not(.mp--auth) .mp__menu-signout { order: 5; margin-block-start: 10px; padding-block-start: 0; }
	.mp:not(.mp--auth) .mp__menu-signout .mp__signoutbtn {
		background: transparent;
		border-color: rgba(255, 255, 255, .3);
		color: rgba(255, 255, 255, .88);
	}
	.mp:not(.mp--auth) .mp__menu-signout .mp__signoutbtn:hover { background: rgba(255, 255, 255, .14); color: #fff; }

	/* A white top strip over the content, holding only the country chip. */
	.mp:not(.mp--auth) .mp__appbar {
		grid-column: 2;
		grid-row: 1;
		justify-content: flex-end;
		gap: 12px;
		min-block-size: 56px;
		padding-inline: 32px;
		padding-block-start: 0;
		background: #fff;
		border-block-end: 1px solid var(--mp-line);
	}
	.mp:not(.mp--auth) .mp__appbar .mp__logo { display: none; }
	.mp:not(.mp--auth) .mp-cc__chip {
		max-width: 20rem;
		border-color: var(--mp-line);
		background: #fff;
		color: var(--mp-navy);
	}
	.mp:not(.mp--auth) .mp-cc__chip:hover { background: var(--mp-mist); }

	.mp:not(.mp--auth) .mp__body {
		grid-column: 2;
		grid-row: 2;
		max-inline-size: 64rem;
		margin-inline: 0;
		padding: 28px 32px 48px;
	}

	/* The bottom bar is a phone pattern; the column replaces it. */
	.mp:not(.mp--auth) .mp__nav { display: none; }

	/* A single figure should read as a tile, not as a bar across the window. */
	.mp:not(.mp--auth) .mp-stats { flex-wrap: wrap; }
	.mp:not(.mp--auth) .mp-stat { flex: 0 1 15rem; }

	/* Search: the box is the point, the field selector is not. */
	.mp:not(.mp--auth) .mp-search__row { grid-template-columns: 11rem minmax(0, 1fr) auto; align-items: stretch; }
	.mp:not(.mp--auth) .mp-search__row input[type="search"] { grid-column: auto; min-height: 52px; font-size: 17px; }
	.mp:not(.mp--auth) .mp-search__row select { min-height: 52px; }
	.mp:not(.mp--auth) .mp-search__row .btn { min-height: 52px; padding-inline: 28px; }
}

/* The drawer is only a drawer below that width. */
@media (max-width: 47.99rem) {
	.mp .mp__menu.is-closed { display: none; }
}

[dir="rtl"] .mp:not(.mp--auth) .mp__menu-link.is-active { box-shadow: inset -3px 0 0 var(--mp-orange); }
