/* AMAR mega menu (inc/megamenu.php, assets/js/megamenu.js).
   Wide screens: one panel per top-level item, as wide as the masthead (logo to Radio tab), on a 12-column grid
   with three fixed zones: A introduce (3 columns), B ways in (4, text only), C look inside (5, pictures).
   Narrow screens: no panels; the phone menu shows each item's light version (.mega-m) when it is expanded. */

.mega {
	--mg-bg: #22221f; --mg-fg: #f1f0ec; --mg-fg2: #d6d4cc; --mg-muted: #a3a197; --mg-line: rgba(241, 240, 236, .14);
	--mg-hover: #2e2e2a; --mg-kick: #b3a98b; --mg-tile: #33332e; --mg-accent: #ce5a36; --mg-ochre: #cba54c;
	display: none; box-sizing: border-box; color: var(--mg-fg); background: var(--mg-bg);
	font-size: 16px; font-weight: 400; line-height: 1.5; letter-spacing: normal; text-transform: none; white-space: normal; text-align: start;
}
.mega *, .mega *::before, .mega *::after { box-sizing: border-box; }
.mega a { color: inherit; text-decoration: none; }
.mega ul { list-style: none; margin: 0; padding: 0; }
.mega p, .mega figure, .mega dl, .mega dd { margin: 0; }
.mega img { display: block; max-width: none; border-radius: 0; background: var(--mg-tile); }
.mega-arw { width: 14px; height: 14px; flex: 0 0 auto; }
[dir="rtl"] .mega-arw { transform: scaleX(-1); }
[dir="rtl"] .mega-arw--ext { transform: scaleX(-1); }
.mega :focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

/* page dims behind an open panel (wide screens) */
.mega-scrim {
	position: fixed; inset: 0; z-index: 99; background: rgba(20, 20, 18, .42);
	opacity: 0; visibility: hidden; transition: opacity .2s ease-out, visibility 0s .2s;
}
html.mega-open .mega-scrim { opacity: 1; visibility: visible; transition: opacity .2s ease-out; }

/* ================================================================ wide screens */
@media (min-width: 1024px) {
	.editorial .masthead { position: relative; }
	.site-nav .menu > li.has-mega { position: static; }
	.site-nav .menu > li.has-mega > .sub-menu { display: none !important; }
	.site-nav .menu > li.has-mega.is-open > a,
	.site-nav .menu > li.has-mega.is-open > .submenu-toggle { border-bottom-color: var(--orange); color: #fff; }
	/* Keep the arrow's keyboard and touch target usable while six items fit. */
	.editorial .site-nav .menu > li.has-mega > a { padding-inline-end: 2px; }
	.editorial .site-nav .menu > li.has-mega > a + .submenu-toggle { padding-inline: 1px 6px; min-width: 24px; }
	.editorial .site-nav .menu > li.has-mega > .submenu-toggle .icon { width: 11px; height: 11px; }

	.mega {
		position: absolute; z-index: 5; inset-block-start: 100%; inset-inline: 0;
		max-height: calc(100vh - var(--bar) - 40px); overflow-y: auto; overscroll-behavior: contain;
		border-top: 1px solid var(--mg-line); box-shadow: 0 24px 48px -24px rgba(0, 0, 0, .45);
	}
	.has-mega.is-open > .mega,
	html:not(.mega-js) .has-mega:hover > .mega,
	html:not(.mega-js) .has-mega:focus-within > .mega { display: block; }
	/* Animations are only ever added (megamenu.js sets the class for one opening and then drops it): switching the
	   animation off and on again would restart it and make the panel blink. */
	.has-mega.is-open.mega-enter > .mega,
	html:not(.mega-js) .has-mega:hover > .mega { animation: megaIn .17s cubic-bezier(.2, .7, .2, 1); }
	/* Switching panels: the coloured zones are solid from the first frame (no page showing through); only their content fades. */
	.has-mega.is-open.mega-swap > .mega .mega__in > * > * { animation: megaFade .16s ease-out; }
	.mega-m { display: none; }

	.mega__in {
		display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px;
		min-height: 472px; padding: 30px 40px 34px;
	}
	.mega-a { grid-column: 1 / span 3; display: flex; flex-direction: column; min-width: 0; }
	.mega-b, .mega-c { min-width: 0; border-inline-start: 1px solid var(--mg-line); padding-inline-start: 24px; margin-inline-start: -12px; }
	.mega-b { grid-column: 4 / span 4; }
	.mega-c { grid-column: 8 / span 5; }
	.mega-b--2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 22px; align-content: start; }
	.mega-b--2 > .mega-g + .mega-g { margin-top: 0; } /* side by side: both columns start at the same height */
}
@media (min-width: 1024px) and (max-width: 1199px) {
	/* Long labels may use two lines while every disclosure keeps its 24px target. */
	.editorial .site-nav .menu > li.has-mega > a { padding-inline: 3px 1px; white-space: normal; line-height: 1.3; text-align: end; } /* wrapped labels stay next to their chevron (responsive QA) */
	.editorial .site-nav .menu > li.has-mega > a + .submenu-toggle { padding-inline: 1px 3px; flex-shrink: 0; }
}
@media (min-width: 1024px) and (max-width: 1279px) {
	.mega-list a.all .m { display: none; }
}
@keyframes megaIn { from { opacity: 0; transform: translateY(-6px); } }
@keyframes megaFade { from { opacity: 0; } }

/* zone A */
.mega-kick { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--mg-kick); font-weight: 600; margin-bottom: 14px !important; }
.mega-title { font-size: 34px; line-height: 1; letter-spacing: -.045em; font-weight: 500; margin-bottom: 14px !important; text-wrap: balance; }
.mega-title small { display: block; font-size: 20px; letter-spacing: 0; margin-top: 8px; color: var(--mg-fg2); font-weight: 500; font-family: var(--font-ar); }
.mega-title small[lang="en"] { font-family: var(--font); }
.mega-lead { font-size: 14px; line-height: 1.55; color: var(--mg-fg2); max-width: 34ch; }
.mega-lead--tight { margin-top: 8px !important; }
.mega-figs { display: flex; gap: 22px; margin-top: 22px !important; }
.mega-figs b { display: block; font-size: 28px; line-height: 1; font-weight: 500; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.mega-figs span { display: block; font-size: 12px; line-height: 1.35; color: var(--mg-muted); margin-top: 6px; max-width: 13ch; }
.mega-fact { font-size: 12.5px; color: var(--mg-muted); margin-top: 14px !important; }
.mega-more { margin-top: 18px; display: grid; }
.mega-more a { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; font-weight: 500; padding: 6px 0; border-top: 1px solid var(--mg-line); }
.mega-more a span { color: var(--mg-muted); font-weight: 400; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.mega-more a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.mega-cta {
	margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding-inline: 18px;
	background: var(--mg-fg); color: var(--mg-bg) !important; font-weight: 600; font-size: 14px;
}
.mega-cta:hover, .mega-cta:focus-visible { background: var(--mg-accent); color: #fff !important; }

/* zone B */
.mega-g + .mega-g { margin-top: 20px; }
.mega-h {
	display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
	color: var(--mg-muted); font-weight: 600; padding-bottom: 8px; border-bottom: 1px solid var(--mg-line); margin-bottom: 4px !important;
}
.mega-c .mega-h { margin-bottom: 14px !important; }
.mega-h--gap { margin-top: 20px !important; }
.mega-h a { display: inline-flex; align-items: center; gap: 6px; }
.mega-h a:hover, .mega-h a:focus-visible { color: var(--mg-fg); }
.mega-h a.mega-h__link { display: inline; color: inherit; text-decoration: none; } /* a two-line heading's link keeps the heading colour */
.mega-h a.mega-h__link:hover, .mega-h a.mega-h__link:focus-visible { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.mega-list a { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 15px; font-weight: 500; }
.mega-list .t { min-width: 0; }
.mega-list .m { font-size: 12.5px; font-weight: 400; color: var(--mg-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mega-list .s { display: block; font-size: 12.5px; font-weight: 400; color: var(--mg-muted); margin-top: 2px; }
.mega-list a:hover .t, .mega-list a:focus-visible .t { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.mega-list a:hover .m { color: var(--mg-fg); }
.mega-list a.all { font-size: 13px; color: var(--mg-fg2); align-items: center; }
.mega-chip {
	display: inline-block; font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--mg-muted);
	border: 1px solid var(--mg-line); padding: 1px 6px 0; margin-inline-start: 8px; vertical-align: 2px; white-space: nowrap;
}
.mega-list [lang="ar"] { font-family: var(--font-ar); }
.mega-rail a { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 10px; padding: 4px 0; font-size: 14px; line-height: 1.38; align-items: baseline; justify-content: stretch; }
.mega-rail .y { font-variant-numeric: tabular-nums; color: var(--mg-muted); }
.mega-rail .is-bien .y { color: var(--mg-ochre); }
.mega-rail .k { color: var(--mg-muted); font-weight: 400; font-size: 12.5px; }
.mega-mail { margin-top: 10px !important; font-size: 13.5px; font-weight: 500; user-select: all; }

/* zone C: contact sheets, covers and features */
.mega-sheet, .mega-wall { display: grid; gap: 8px; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.mega-sheet a, .mega-wall a { display: block; position: relative; overflow: hidden; background: var(--mg-tile); }
.mega-sheet a { aspect-ratio: 4 / 5; }
.mega-wall a { aspect-ratio: 1; }
.mega-sheet a[hidden] { display: none; }
.mega-sheet img, .mega-wall img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease, opacity .2s; }
.mega-sheet img { filter: sepia(.12) contrast(1.03); }
.mega-sheet:hover a:not(:hover) img, .mega-wall:hover a:not(:hover) img, .mega-strip:hover a:not(:hover) img { opacity: .5; }
.mega-sheet a:hover img, .mega-wall a:hover img, .mega-sheet a:focus-visible img, .mega-wall a:focus-visible img { transform: scale(1.04); }
.mega-wall .tag {
	position: absolute; inset-block-start: 0; inset-inline-start: 0; background: var(--mg-accent); color: #fff;
	font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 6px;
}
.mega-wall a.mega-wall__all {
	display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 10px; background: transparent;
	border: 1px solid var(--mg-line); font-size: 13px; font-weight: 600; line-height: 1.3;
}
.mega-wall a.mega-wall__all:hover { background: var(--mg-hover); }
.mega-cap { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 12px !important; min-height: 22px; font-size: 13px; color: var(--mg-muted); }
.mega-cap b { color: var(--mg-fg); font-weight: 600; font-size: 14px; }
button.mega-swap { background: none; border: 0; padding: 0; color: var(--mg-fg); font: inherit; font-size: 13px; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; white-space: nowrap; }

.mega-feat { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 18px; align-items: start; }
.mega-feat img { width: 120px; height: 150px; object-fit: cover; }
.mega-feat > span { display: flex; flex-direction: column; min-width: 0; }
.mega-feat .meta { font-size: 12px; color: var(--mg-muted); }
.mega-feat .ttl { font-size: 18px; line-height: 1.3; font-weight: 600; margin: 6px 0 4px; }
.mega-feat .ttl[lang="ar"] { font-family: var(--font-ar); }
.mega-feat .sub { font-size: 13px; color: var(--mg-fg2); }
.mega-feat .desc { font-size: 13px; line-height: 1.5; color: var(--mg-muted); margin-top: 8px; }
.mega-feat:hover .ttl { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.mega-strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.mega-strip a { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--mg-tile); }
.mega-strip img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.4); transition: filter .2s, opacity .2s; }
.mega-strip a:hover img, .mega-strip a:focus-visible img { filter: none; }

.mega-ep { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 20px; align-items: center; }
.mega-ep img { width: 150px; height: 150px; }
.mega-ep .meta { font-size: 12px; color: var(--mg-muted); }
.mega-ep .ttl { font-size: 21px; line-height: 1.25; font-weight: 600; letter-spacing: -.02em; margin: 6px 0 14px; }
.mega-ep .ttl a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.mega-ep__row { display: flex; align-items: center; gap: 12px; }
.mega-play { width: 52px; height: 52px; border-radius: 50%; border: 0; padding: 0; background: var(--mg-accent); color: #fff; display: grid; place-items: center; cursor: pointer; flex: 0 0 auto; }
.mega-play svg { width: 16px; height: 16px; }
.mega-play .i-pause, .mega-play.is-playing .i-play { display: none; }
.mega-play.is-playing .i-pause { display: block; }
.mega-ep__dur { font-size: 13px; color: var(--mg-muted); display: flex; gap: 10px; align-items: center; }
.mega-eq { display: none; gap: 3px; align-items: flex-end; height: 16px; }
.mega-play.is-playing + .mega-ep__dur .mega-eq { display: inline-flex; }
.mega-eq i { width: 3px; background: var(--mg-accent); animation: megaEq .9s ease-in-out infinite; }
.mega-eq i:nth-child(2) { animation-delay: -.3s; }
.mega-eq i:nth-child(3) { animation-delay: -.6s; }
@keyframes megaEq { 0%, 100% { height: 4px; } 50% { height: 16px; } }
.mega-subs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px !important; align-items: center; }
.mega-subs > span { font-size: 12.5px; color: var(--mg-muted); margin-inline-end: 4px; }
.mega-subs a { border: 1px solid var(--mg-line); padding: 8px 12px; font-size: 13px; font-weight: 500; }
.mega-subs a:hover { background: var(--mg-hover); }
.mega-radio { margin-top: 18px !important; padding-top: 14px; border-top: 1px solid var(--mg-line); display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13.5px; color: var(--mg-fg2); }
.mega-radio a { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--mg-fg); white-space: nowrap; }
.mega-radio a:hover { text-decoration: underline; text-underline-offset: 4px; }

.mega-bien { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 20px; align-items: start; }
.mega-bien img { width: 160px; height: 200px; object-fit: cover; }
.mega-bien .meta { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--mg-ochre); font-weight: 600; }
.mega-bien .ttl { font-size: 24px; line-height: 1.15; letter-spacing: -.03em; font-weight: 500; margin: 8px 0 12px; }
.mega-bien .ttl a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.mega-bien dl { display: grid; gap: 8px; font-size: 13px; }
.mega-bien dt { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--mg-muted); }
.mega-bien dd { color: var(--mg-fg2); }
.mega-bien .links { display: flex; gap: 16px; margin-top: 14px; font-size: 13px; font-weight: 600; flex-wrap: wrap; }
.mega-bien .links a { display: inline-flex; gap: 6px; align-items: center; }
.mega-bien .links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.mega-hl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.mega-hl a { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 10px; align-items: start; }
.mega-hl img { width: 52px; height: 65px; object-fit: cover; }
.mega-hl b { display: block; font-size: 13px; line-height: 1.3; font-weight: 600; }
.mega-hl span span { display: block; font-size: 12px; line-height: 1.35; color: var(--mg-muted); margin-top: 3px; }
.mega-hl a:hover b { text-decoration: underline; text-underline-offset: 3px; }

.mega-photo img { width: 100%; height: 220px; object-fit: cover; }
.mega-photo figcaption { font-size: 12.5px; color: var(--mg-muted); margin-top: 8px; }
.mega-contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px 20px; margin-top: 18px; font-size: 13.5px; color: var(--mg-fg2); border-top: 1px solid var(--mg-line); padding-top: 14px; }
.mega-contact b { display: block; font-size: 11px; letter-spacing: .09em; text-transform: uppercase; color: var(--mg-muted); font-weight: 600; margin-bottom: 4px; }
.mega-contact span, .mega-contact a { display: block; }
.mega-contact span[dir="ltr"] { user-select: all; color: var(--mg-fg); font-weight: 500; }
.mega-contact a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Arabic: no letter-spacing or capitals, a size up for running text (as in the rest of the site) */
.lang-ar .mega-kick, .lang-ar .mega-h, .lang-ar .mega-chip, .lang-ar .mega-wall .tag, .lang-ar .mega-bien .meta, .lang-ar .mega-bien dt, .lang-ar .mega-contact b {
	letter-spacing: 0; text-transform: none;
}
.lang-ar .mega-kick, .lang-ar .mega-h { font-size: 13px; }
.lang-ar .mega-title { font-size: 30px; line-height: 1.3; letter-spacing: 0; font-weight: 600; }
.lang-ar .mega-lead { font-size: 15.5px; line-height: 1.75; }
.lang-ar .mega-figs span, .lang-ar .mega-fact, .lang-ar .mega-list .s, .lang-ar .mega-list .m, .lang-ar .mega-bien dt { font-size: 13px; }
.lang-ar .mega-list a { font-size: 15.5px; padding-block: 6px; }
.lang-ar .mega-chip, .lang-ar .mega-wall .tag { font-size: 11.5px; }
.lang-ar .mega-feat .desc, .lang-ar .mega-feat .sub { font-size: 14px; }
.lang-ar .mega-ep .ttl, .lang-ar .mega-bien .ttl { letter-spacing: 0; }
.lang-ar .mega-bien .ttl { line-height: 1.4; font-weight: 600; }
.lang-ar .mega-bien .meta { font-size: 13px; }

/* ================================================================ narrow screens: the phone menu */
@media (max-width: 1023px) {
	.site-nav .menu > li.has-mega > .sub-menu { display: none !important; }
	.site-nav .menu > li.has-mega > .mega { flex-basis: 100%; background: var(--navy-deep); }
	.site-nav .menu > li.has-mega.is-open > .mega { display: block; }
	.mega__in { display: none; }
	.mega-scrim { display: none; }
	.mega-m { padding: 0 20px 18px; }
	.editorial .site-nav.is-open { max-height: calc(100dvh - 100% - 10px); } /* the open phone menu runs to the bottom of the screen (bar height + the header's 10px offset), so no page strip shows under its last rows */
	.mega-m__lead { font-size: 13.5px; line-height: 1.5; color: var(--mg-muted); margin-bottom: 6px !important; }
	.mega-m__links a { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 44px; font-size: 15px; font-weight: 500; border-bottom: 1px solid var(--mg-line); }
	.mega-m__links .m { font-size: 12.5px; color: var(--mg-muted); font-weight: 400; font-variant-numeric: tabular-nums; }
	.mega-m__feat { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px; align-items: center; margin-top: 14px; }
	.mega-m__feat img { width: 48px; height: 60px; object-fit: cover; }
	.mega-m__feat b { display: block; font-size: 14px; line-height: 1.3; }
	.mega-m__feat span span { display: block; font-size: 12.5px; color: var(--mg-muted); }
	.mega-m__feat .mega-play { width: 44px; height: 44px; }
	.mega-m__cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; min-height: 44px; padding-inline: 16px; background: var(--mg-fg); color: var(--mg-bg) !important; font-size: 14px; font-weight: 600; }
	.lang-ar .mega-m__lead { font-size: 15px; }
	.lang-ar .mega-m__links a { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
	.has-mega.is-open.mega-enter > .mega, .has-mega.is-open.mega-swap > .mega .mega__in > * > * { animation: none !important; }
	.mega-sheet img, .mega-wall img, .mega-strip img, .mega-scrim { transition: none; }
	.mega-eq i { animation: none; height: 10px; }
}

/* ================================================================ the live look (body.mega-style, user decisions 2026-10-04)
   Shared rules for coloured zones: A (introduce) the panel's strong colour, B (ways in) white, C (look inside) a tint.
   The colours per panel and the width (logo emblem to EN/AR) are in the "mix" block below. */
/* the bar */
.mega-style.editorial .navbar, .mega-style .site-search { background: var(--navy); }
.mega-style .lang-switch { background: var(--navy-deep); border-inline-start-color: rgba(255, 255, 255, .16); }
.mega-style .lang-switch a[aria-current] { background: rgba(255, 255, 255, .14); }
.mega-style .search-toggle { border-inline-start-color: rgba(255, 255, 255, .16); }
.mega-style .radio-tab { --tab-square: var(--navy-deep); }
.mega-style .site-nav .menu > li > a:hover, .mega-style .site-nav .menu > li > .submenu-toggle:hover,
.mega-style .site-nav .menu > li.current-menu-item > a, .mega-style .site-nav .menu > li.current-menu-ancestor > a { border-bottom-color: var(--orange); }

/* zones: each sets the variables the panel's components already use */
.mega-style .mega-a { --mg-bg: var(--za-bg); --mg-fg: var(--za-fg); --mg-fg2: var(--za-fg2); --mg-muted: var(--za-muted); --mg-line: var(--za-line); --mg-kick: var(--za-kick); --mg-tile: var(--za-tile); --mg-hover: rgba(255, 255, 255, .08); }
.mega-style .mega-b { --mg-bg: var(--zb-bg); --mg-fg: var(--zb-fg); --mg-fg2: var(--zb-fg2); --mg-muted: var(--zb-muted); --mg-line: var(--zb-line); --mg-kick: var(--zb-kick); --mg-tile: var(--zb-tile); --mg-hover: var(--zb-tile); }
.mega-style .mega-c { --mg-bg: var(--zc-bg); --mg-fg: var(--zc-fg); --mg-fg2: var(--zc-fg2); --mg-muted: var(--zc-muted); --mg-line: var(--zc-line); --mg-kick: var(--zc-kick); --mg-tile: var(--zc-tile); --mg-hover: var(--zc-line); }
.mega-style .mega { --mg-accent: var(--mega-accent); --mg-ochre: var(--mega-ochre); }
.mega-style .mega-a, .mega-style .mega-b, .mega-style .mega-c { background: var(--mg-bg); color: var(--mg-fg); }
.mega-style .mega-cta, .mega-style .mega-m__cta { background: var(--cta-bg); color: var(--cta-fg) !important; }
.mega-style .mega-cta:hover, .mega-style .mega-cta:focus-visible { background: var(--cta-hover-bg); color: var(--cta-hover-fg) !important; }
.mega-style .mega-h, .mega-style .mega-c .mega-h { color: var(--mg-kick); }
.mega-style .mega-rail .is-bien .y { color: var(--mg-accent); font-weight: 700; }

@media (min-width: 1024px) {
	.mega-style .mega { background: transparent; border-top: 0; box-shadow: 0 30px 60px -30px rgba(20, 22, 40, .5); }
	.mega-style .mega__in { column-gap: 0; padding: 0; }
	.mega-style .mega-a, .mega-style .mega-b, .mega-style .mega-c { margin: 0; border: 0; padding: 28px 26px 30px; }
	.mega-style .mega-a { padding-inline-start: 30px; }
	.mega-style .mega-c { padding-inline-end: 30px; }
}
@media (min-width: 1200px) {
	.mega-style .mega { inset-inline-start: var(--mega-s, 0); inset-inline-end: var(--mega-e, 0); }
	.mega-style .mega-sheet, .mega-style .mega-wall { gap: 6px; }
	.mega-style .mega-figs { gap: 16px; }
	.mega-style .mega-title { font-size: 30px; }
	.lang-ar.mega-style .mega-title { font-size: 27px; }
}
/* phone menu */
@media (max-width: 1023px) {
	.mega-style .site-nav .menu > li.has-mega > .mega { background: var(--navy-deep); }
	.mega-style .mega-m { --mg-fg: #fff; --mg-muted: rgba(255, 255, 255, .72); --mg-line: rgba(255, 255, 255, .16); }
}

/* ---------------------------------------------------------------- "mix" (user brief 2026-10-04)
   The bar is always navy; each panel has its own colour (A strong, B white, C a light tint), alternating warm and cool
   along the bar. The panel runs from the start of the logo to the end of the EN/AR switch. */
.mega-style-mix .site-header { --navy: #32365f; --navy-deep: #272a4c; --orange: #e2b85a; }
.mega-style-mix .mega { --zb-bg: #fff; --cta-fg: #fff; --mega-accent: #b84329; --mega-ochre: #8a6a12; }
.mega-style-mix .mega[data-mega="artists"] { /* terracotta */
	--za-bg: #b84329; --za-fg: #fff; --za-fg2: #fde6dc; --za-muted: #f6c6b3; --za-line: rgba(255, 255, 255, .24); --za-kick: #ffe3a6; --za-tile: #9c3620;
	--zb-fg: #241a16; --zb-fg2: #4a3a33; --zb-muted: #6d5d55; --zb-line: #f0e2db; --zb-kick: #9c3620; --zb-tile: #f7e7df;
	--zc-bg: #fbece5; --zc-fg: #241a16; --zc-fg2: #4a3a33; --zc-muted: #67564d; --zc-line: #efd5c9; --zc-kick: #9c3620; --zc-tile: #f2dacf;
	--cta-bg: #22221f; --cta-hover-bg: #ffe3a6; --cta-hover-fg: #241a16;
}
.mega-style-mix .mega[data-mega="research"] { /* powder blue */
	--za-bg: #a8c5dc; --za-fg: #1c2433; --za-fg2: #253047; --za-muted: #34425c; --za-line: rgba(28, 36, 51, .2); --za-kick: #32365f; --za-tile: #8fb0c9;
	--zb-fg: #1c2433; --zb-fg2: #33405a; --zb-muted: #5b6780; --zb-line: #e0e7ef; --zb-kick: #2f5d80; --zb-tile: #e8f0f6;
	--zc-bg: #eaf2f8; --zc-fg: #1c2433; --zc-fg2: #33405a; --zc-muted: #4f5c74; --zc-line: #cfdeea; --zc-kick: #2f5d80; --zc-tile: #d6e5f0;
	--cta-bg: #32365f; --cta-hover-bg: #b84329; --cta-hover-fg: #fff;
}
.mega-style-mix .mega[data-mega="podcast"] { /* ochre */
	--za-bg: #d4ad52; --za-fg: #1f1d16; --za-fg2: #2f2a1b; --za-muted: #4b4229; --za-line: rgba(31, 29, 22, .2); --za-kick: #32365f; --za-tile: #b8933d;
	--zb-fg: #22201a; --zb-fg2: #3e3826; --zb-muted: #6a6150; --zb-line: #eee6d3; --zb-kick: #7d5f12; --zb-tile: #f3ecdb;
	--zc-bg: #e9ebf5; --zc-fg: #20223a; --zc-fg2: #3b3e57; --zc-muted: #575a73; --zc-line: #cfd3e5; --zc-kick: #32365f; --zc-tile: #d8dbec;
	--cta-bg: #32365f; --cta-hover-bg: #b84329; --cta-hover-fg: #fff;
}
.mega-style-mix .mega[data-mega="events"] { /* olive green */
	--za-bg: #5f6f35; --za-fg: #fff; --za-fg2: #e6ecd5; --za-muted: #c9d2ae; --za-line: rgba(255, 255, 255, .22); --za-kick: #ece08f; --za-tile: #4d5a2a;
	--zb-fg: #1e2214; --zb-fg2: #3a4127; --zb-muted: #61684f; --zb-line: #e5e9da; --zb-kick: #4d5a2a; --zb-tile: #eef1e5;
	--zc-bg: #eef2e3; --zc-fg: #1e2214; --zc-fg2: #3a4127; --zc-muted: #5a614a; --zc-line: #d6dcc2; --zc-kick: #4d5a2a; --zc-tile: #dfe5cd;
	--cta-bg: #22221f; --cta-hover-bg: #ece08f; --cta-hover-fg: #1e2214;
}
.mega-style-mix .mega[data-mega="publications"] { /* logo orange */
	--za-bg: #ef6530; --za-fg: #1f140e; --za-fg2: #2b1a10; --za-muted: #4a2a18; --za-line: rgba(31, 20, 14, .22); --za-kick: #2a1609; --za-tile: #d4521f;
	--zb-fg: #22170f; --zb-fg2: #45301f; --zb-muted: #6e5848; --zb-line: #f6e1d4; --zb-kick: #b5421a; --zb-tile: #fde9dd;
	--zc-bg: #fdeee4; --zc-fg: #22170f; --zc-fg2: #45301f; --zc-muted: #6a5243; --zc-line: #f6d7c4; --zc-kick: #b5421a; --zc-tile: #fbdcc8;
	--cta-bg: #32365f; --cta-hover-bg: #22221f; --cta-hover-fg: #fff;
}
.mega-style-mix .mega[data-mega="about"] { /* navy, like the bar */
	--za-bg: #32365f; --za-fg: #fff; --za-fg2: #dcdeec; --za-muted: #b3b7d3; --za-line: rgba(255, 255, 255, .2); --za-kick: #e8c26a; --za-tile: #272a4c;
	--zb-fg: #20223a; --zb-fg2: #3b3e57; --zb-muted: #62657d; --zb-line: #e1e3ee; --zb-kick: #32365f; --zb-tile: #e9ebf5;
	--zc-bg: #e9ebf5; --zc-fg: #20223a; --zc-fg2: #3b3e57; --zc-muted: #575a73; --zc-line: #cfd3e5; --zc-kick: #32365f; --zc-tile: #d8dbec;
	--cta-bg: #b84329; --cta-hover-bg: #e8c26a; --cta-hover-fg: #20223a;
}
@media (min-width: 1024px) {
	.mega-style-mix .mega, .mega-style-mix.mega-style .mega { inset-inline-start: var(--mega-logo-s, 0); inset-inline-end: var(--mega-lang-e, 0); }
}
.mega-style .mega-figs { flex-wrap: wrap; row-gap: 12px; }
.mega-style .mega-wall a.mega-wall__all { font-size: 12px; overflow-wrap: anywhere; hyphens: auto; }
@media (min-width: 1024px) and (max-width: 1199px) {
	.mega-style .mega-figs { gap: 12px; }
	.mega-style .mega-figs b { font-size: 24px; }
	.mega-style .mega-cap { flex-wrap: wrap; }
}
@media (min-width: 1024px) and (max-width: 1199px) {
	.mega-style .mega-title { font-size: 24px; overflow-wrap: anywhere; }
	.lang-ar.mega-style .mega-title { font-size: 22px; }
	.mega-style .mega-wall a.mega-wall__all { display: none; } /* the section button in zone A does the same */
	.mega-style .mega-a, .mega-style .mega-b, .mega-style .mega-c { padding-inline: 20px; }
}
@media (min-width: 1024px) and (max-width: 1279px) {
	.mega-style .mega-rail .k { display: none; }
	.mega-style .mega-bien { grid-template-columns: 110px minmax(0, 1fr); gap: 14px; }
	.mega-style .mega-bien img { width: 110px; height: 138px; }
	.mega-style .mega-bien .ttl { font-size: 20px; }
	.mega-style .mega-bien .links { flex-direction: column; gap: 8px; }
	.mega-style .mega-c .mega-h--gap, .mega-style .mega-hl { display: none; } /* the highlights are also on the year rail */
}
.mega-more { margin-bottom: 18px; } /* keeps a gap above the section button when zone A is full */

/* Logo and Radio tab: the logo shows its original navy and orange on hover (it is greyscale at rest), and the
   Radio tab's label block takes the logo's orange (user request 2026-10-04); since 2026-10-15 the play button's square
   turns orange with it, its ring and icon unchanged (user request). */
.editorial .brand img { transition: filter .25s ease; }
.editorial .brand:hover img, .editorial .brand:focus-visible img { filter: none; }
.editorial .radio-tab__link .radio-tab__line, .editorial .radio-tab__play { transition: background-color .25s ease; }
.editorial .radio-tab:hover, .editorial .radio-tab:focus-within { --tab-block: #ef6530; --tab-square: #ef6530; }
@media (prefers-reduced-motion: reduce) { .editorial .brand img, .editorial .radio-tab__link .radio-tab__line, .editorial .radio-tab__play { transition: none; } }

@media (min-width: 1024px) { .mega-style .mega__in { min-height: var(--mega-h, 472px); } } /* tallest panel, set by megamenu.js */
@media (min-width: 1024px) and (max-width: 1279px) {
	/* narrow zone A: the count goes under its label, so long labels wrap less */
	.mega-style .mega-more a { flex-direction: column; gap: 1px; padding-block: 5px; }
	.mega-style .mega-figs b { font-size: 22px; }
	.mega-style .mega-figs span { margin-top: 3px; }
}
@media (min-width: 1024px) and (max-width: 1279px) {
	/* narrow zone A keeps the essentials: title, one sentence, figures, links and the section button */
	.mega-style .mega-a .mega-kick, .mega-style .mega-a .mega-fact { display: none; }
	.mega-style .mega-figs { margin-top: 16px !important; }
}
.mega-style .mega-wall a.mega-wall__all { justify-content: center; padding: 8px; line-height: 1.2; hyphens: manual; overflow-wrap: break-word; }

/* ================================================================ Lab (inc/lab.php): team and reviewers only */
.site-nav .menu > li.menu-item-lab > .lab-link { gap: 6px; }
.lab-link__icon { width: 18px; height: 18px; flex: none; }
@media (min-width: 1024px) {
	/* in the bar: the flask alone (its name stays for screen readers) */
	.site-nav .menu > li.menu-item-lab > .lab-link .lab-link__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
	.site-nav .menu > li.menu-item-lab > .lab-link { padding-inline: 8px 2px; }
	.mega[data-mega="lab"] .mega-b--lab { grid-column: 4 / span 9; }
	.mega-style .mega[data-mega="lab"] .mega-b--lab { padding-inline-end: 30px; }
}
.mega-style-mix .mega[data-mega="lab"] { /* lime, from the DS brief: apart from the six section colours */
	--za-bg: #c8d65f; --za-fg: #1d2110; --za-fg2: #2c331a; --za-muted: #3f4826; --za-line: rgba(29, 33, 16, .2); --za-kick: #32365f; --za-tile: #b3c14a;
	--zb-fg: #1e2214; --zb-fg2: #3a4127; --zb-muted: #5a614a; --zb-line: #e3e8d2; --zb-kick: #4d5a2a; --zb-tile: #eef2e0;
	--cta-bg: #22221f; --cta-hover-bg: #32365f; --cta-hover-fg: #fff;
}
.lab-list { list-style: none; margin: 0; padding: 0; }
.lab-list a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 12px; padding: 10px 0; border-bottom: 1px solid var(--mg-line, var(--line)); color: inherit; text-decoration: none; }
.lab-list__t { font-size: 15px; font-weight: 600; line-height: 1.3; }
.lab-list__st { align-self: start; white-space: nowrap; font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--mg-muted, var(--muted)); border: 1px solid var(--mg-line, var(--line)); padding: 1px 6px 0; }
.lab-list__d { grid-column: 1 / -1; font-size: 13px; line-height: 1.45; color: var(--mg-muted, var(--muted)); }
/* the circled capital B of the Budget entry (also on the Budget page, amar-budget) */
.amar-b { display: inline-grid; place-items: center; flex: 0 0 auto; box-sizing: border-box; width: 1.35em; height: 1.35em; margin-inline-end: .4em; border: 1.6px solid currentColor; border-radius: 50%; font-family: var(--font, Manrope, Arial, sans-serif); font-size: .9em; font-weight: 800; line-height: 1; vertical-align: -.2em; text-decoration: none; }
.lab-list a:hover .lab-list__t, .lab-list a:focus-visible .lab-list__t { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
/* the panel: the groups in two columns, each group one column of rows under a small heading;
   Docs (the review pages, the guides, the Budget) on its own row below them, its entries spread over the columns (user, 2026-10-16) */
.mega-b--lab .lab-groups { columns: 2; column-gap: 28px; }
.mega-b--lab .lab-g { break-inside: avoid; margin-bottom: 12px; }
.mega-b--lab .lab-g--docs { column-span: all; margin: 4px 0 0; }
.mega-b--lab .lab-g--docs .lab-list { columns: 2; column-gap: 28px; }
.mega-b--lab .lab-g--docs .lab-list li { break-inside: avoid; }
.mega-b--lab .lab-list__d { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } /* one line each: the Lab page has the full text */
@media (min-width: 1024px) { /* three columns: discs | listening | archive, then Docs across all three */
	.mega-b--lab .lab-groups { columns: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 20px; row-gap: 16px; align-items: start; }
	.mega-b--lab .lab-g { margin: 0; }
	.mega-b--lab .lab-g--discs { grid-column: 1; grid-row: 1; }
	.mega-b--lab .lab-g--listen { grid-column: 2; grid-row: 1; }
	.mega-b--lab .lab-g--archive { grid-column: 3; grid-row: 1; }
	.mega-b--lab .lab-g--workbooks { grid-column: 3; grid-row: 2; } /* empty since 2026-10-15; if it returns, Docs moves down a row */
	.mega-b--lab .lab-g--docs { grid-column: 1 / -1; }
	.mega-b--lab .lab-g--docs .lab-list { columns: 3; column-gap: 20px; }
}
@media (min-width: 1024px) and (max-width: 1199px) { /* narrow screens: the Docs titles alone, so the panel keeps the others' height */
	.mega-b--lab .lab-g--docs .lab-list__d { display: none; }
}
@media (min-width: 1280px) {
	.mega-b--lab .lab-groups { column-gap: 24px; row-gap: 18px; }
	.mega-b--lab .lab-g--docs .lab-list { column-gap: 24px; }
}
.mega .lab-group, .mega-m .lab-group { display: flex; justify-content: space-between; margin: 0; padding-bottom: 5px; border-bottom: 1px solid var(--mg-line); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mg-muted); }
.mega .lab-group span, .mega-m .lab-group span { font-weight: 500; }
html[dir="rtl"] .mega .lab-group, html[dir="rtl"] .mega-m .lab-group { letter-spacing: 0; text-transform: none; font-size: 12.5px; }
.mega-m .lab-g + .lab-g { margin-top: 14px; }
.lab-list--phone .lab-list__st { display: none; } /* like the panel: the status is on the Lab page */
/* the panel stays within the other panels' height: compact rows, the status only on the Lab page */
.lab-list--panel a { padding: 6px 0; gap: 1px 12px; }
.lab-list--panel .lab-list__st { display: none; }
.lab-list--panel .lab-list__d { font-size: 12.5px; line-height: 1.4; }
.lang-ar .lab-list--panel .lab-list__d { font-size: 13.5px; }
.lang-ar .lab-list__st { letter-spacing: 0; text-transform: none; font-size: 12px; }
.lang-ar .lab-list__t { font-size: 16px; }
.lang-ar .lab-list__d { font-size: 14px; }
/* the private page /lab/ */
.lab-page { --mg-line: var(--line); --mg-muted: var(--muted); max-width: 1100px; margin-block: 8px 48px; }
.lab-page__intro { max-width: 62ch; font-size: 17px; margin: 0 0 20px; }
.lab-list--page { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); column-gap: 36px; }
.lab-list--page a { padding: 16px 0; }
.lab-list--page .lab-list__t { font-size: 18px; }
.lab-page .lab-group { display: flex; align-items: baseline; gap: 10px; margin: 36px 0 4px; padding-bottom: 8px; border-bottom: 1px solid currentColor; font-size: 15px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.lab-page .lab-g:first-child .lab-group { margin-top: 8px; }
.lab-page .lab-group span { font-weight: 500; opacity: .6; }
html[dir="rtl"] .lab-page .lab-group { letter-spacing: 0; text-transform: none; font-size: 17px; }
@media (max-width: 1023px) { .lab-list--phone a { padding: 10px 0; } .lab-list--phone .lab-list__d { color: var(--mg-muted); } }
/* the flask makes the bar one item longer (team only): keep everything on one line */
.site-nav .menu > li.menu-item-lab > .submenu-toggle { display: none; } /* hover or focus opens the panel; the flask links to /lab/ */
.site-nav .menu > li.menu-item-lab > .lab-link { padding-inline: 8px; }
@media (min-width: 1024px) and (max-width: 1439px) {
	body.has-lab .site-nav .menu > li > a { padding-inline: 6px 1px; }
	body.has-lab .site-nav .menu > li.has-mega > a + .submenu-toggle { padding-inline: 1px 4px; }
}
/* Below 1280px, with a mouse, the six arrows go (hovering a label or ArrowDown opens its panel) to make room. */
@media (min-width: 1024px) and (max-width: 1279px) and (hover: hover) and (pointer: fine) {
	body.has-lab .site-nav .menu > li.has-mega > a + .submenu-toggle { display: none; }
	body.has-lab .site-nav .menu > li > a { padding-inline: 7px; }
}
@media (min-width: 1024px) and (max-width: 1199px) and (hover: hover) and (pointer: fine) {
	body.has-lab .site-nav .menu > li > a { padding-inline: 5px; }
}
/* Touch screens keep the arrows (a tap on the arrow opens the panel): smaller English labels instead (Arabic fits as it is). */
@media (min-width: 1024px) and (max-width: 1279px) and (not ((hover: hover) and (pointer: fine))) {
	html:not([dir="rtl"]) body.has-lab .site-nav .menu > li > a { font-size: 12.5px; padding-inline: 3px 0; }
	html:not([dir="rtl"]) body.has-lab .site-nav .menu > li.has-mega > a + .submenu-toggle { padding-inline: 0 2px; }
	html:not([dir="rtl"]) body.has-lab .site-nav .menu > li.menu-item-lab > .lab-link { padding-inline: 3px; }
}
