/* =========================================================================
   Montreal Tips main stylesheet
   Tokens, base, layout, header, hero, sections, components, content,
   Enfold compatibility, motion, dark mode, RTL, reduced motion.
   Logical properties throughout so Arabic (RTL) mirrors cleanly.
   ========================================================================= */

:root {
	--paper: #ffffff;
	--mist: #f4f6f9;
	--mist-2: #e8ecf2;
	--ink: #0b1f3a;
	--ink-2: #24364f;
	--muted: #56667d;
	--line: rgba(11, 31, 58, 0.12);
	--line-strong: rgba(11, 31, 58, 0.22);
	--red: #d6283b;
	--red-ink: #b51d30;
	--river: #1d56cf;
	--on-dark: #ffffff;
	--glass: rgba(255, 255, 255, 0.72);
	--glass-line: rgba(11, 31, 58, 0.08);
	--shadow: 0 1px 2px rgba(11, 31, 58, 0.06), 0 12px 32px -12px rgba(11, 31, 58, 0.18);
	--shadow-lift: 0 2px 4px rgba(11, 31, 58, 0.06), 0 24px 48px -16px rgba(11, 31, 58, 0.28);
	--r-xl: 32px;
	--r-l: 24px;
	--r-m: 16px;
	--r-s: 10px;
	--font: "Bricolage", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--wrap: 1240px;
	--gutter: clamp(16px, 4vw, 40px);
	--header-h: 64px;
	--ease: cubic-bezier(0.2, 0.7, 0.2, 1);
	--ease-out: cubic-bezier(0.16, 1, 0.3, 1);
	color-scheme: light;
}

:root:lang(ar) {
	--font: "Plex Arabic", "Bricolage", Tahoma, "Segoe UI", sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font);
	font-size: 1.0625rem;
	line-height: 1.6;
	font-optical-sizing: auto;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: clip;
	text-rendering: optimizeLegibility;
}
@media (min-width: 900px) { body { font-size: 1.125rem; } }
img, video, svg, iframe, canvas { max-width: 100%; }
img, video { height: auto; }
a { color: var(--river); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { line-height: 1.1; letter-spacing: -0.02em; font-weight: 700; margin: 0 0 0.5em; color: var(--ink); }
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3, :lang(ar) h4 { letter-spacing: 0; line-height: 1.35; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--river); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(214, 40, 59, 0.18); }
.mt-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.mt-skip { position: absolute; inset-inline-start: 16px; top: -100px; z-index: 1000; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; }
.mt-skip:focus { top: 12px; }
.mt-wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.mt-main { display: block; outline: none; }
.mt-muted { color: var(--muted); }
.mt-count { display: inline-block; font-size: 0.75em; font-weight: 600; color: var(--muted); margin-inline-start: 0.4em; font-variant-numeric: tabular-nums; }
.mt-icon { width: 1.25em; height: 1.25em; flex: none; vertical-align: -0.2em; }
.mt-flip { transform: scaleX(-1); }

/* ---------- Type scale ---------- */
.mt-h2 { font-size: clamp(2rem, 1.2rem + 3.4vw, 3.6rem); font-weight: 700; letter-spacing: -0.022em; line-height: 1.02; font-variation-settings: "opsz" 96; }
.mt-h3 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); letter-spacing: -0.02em; }
:lang(ar) .mt-h2 { letter-spacing: 0; line-height: 1.25; }

/* ---------- Buttons, chips ---------- */
.mt-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
	min-height: 48px; padding: 0.75em 1.35em; border-radius: 999px;
	font-weight: 650; font-size: 1rem; line-height: 1.1; text-decoration: none; cursor: pointer;
	border: 1px solid transparent; transition: transform 0.25s var(--ease), background-color 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.mt-btn:hover { transform: translateY(-1px); }
.mt-btn:active { transform: translateY(0) scale(0.98); }
.mt-btn--primary { background: var(--red); color: #fff; }
.mt-btn--primary:hover { background: var(--red-ink); }
.mt-btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.mt-btn--ghost:hover { border-color: var(--ink); }
.mt-btn--light { background: #fff; color: #0b1f3a; }
.mt-btn--small { min-height: 38px; padding: 0.5em 1em; font-size: 0.9rem; }
.mt-btn--block { width: 100%; }
.mt-header .mt-btn--small { background: var(--ink); color: #fff; }
.mt-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.mt-chips a, .mt-chip {
	display: inline-flex; align-items: center; min-height: 36px; padding: 0.35em 0.95em; border-radius: 999px;
	background: var(--mist); color: var(--ink); text-decoration: none; font-size: 0.92rem; font-weight: 550;
	border: 1px solid transparent; transition: background-color 0.2s, border-color 0.2s;
}
.mt-chips a:hover, .mt-chip:hover { border-color: var(--line-strong); background: var(--paper); }
.mt-iconbtn {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 40px; height: 40px; padding: 0 10px;
	border-radius: 999px; border: 0; background: transparent; color: inherit; cursor: pointer; text-decoration: none;
	transition: background-color 0.2s;
}
.mt-iconbtn:hover { background: rgba(11, 31, 58, 0.07); }
.mt-iconbtn__txt { font-size: 0.82rem; font-weight: 700; }
.mt-kbd { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 6px; border: 1px solid var(--line-strong); font: 600 0.75rem/1 var(--font); color: var(--muted); }

/* ---------- Header (frosted glass) ---------- */
.mt-header {
	position: fixed; inset-inline: 0; top: 0; z-index: 100;
	color: var(--ink);
	background: var(--glass);
	-webkit-backdrop-filter: saturate(180%) blur(20px);
	backdrop-filter: saturate(180%) blur(20px);
	border-bottom: 1px solid var(--glass-line);
	transition: background-color 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s;
}
body.admin-bar .mt-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .mt-header { top: 46px; } }
.mt-header.is-dark { background: rgba(6, 14, 28, 0.32); color: #fff; border-bottom-color: rgba(255, 255, 255, 0.1); }
.mt-header.is-dark .mt-header__cta { background: #fff; color: var(--ink); }
.mt-header.is-dark .mt-iconbtn:hover { background: rgba(255, 255, 255, 0.14); }
.mt-header.is-dark .mt-kbd { border-color: rgba(255, 255, 255, 0.4); color: rgba(255, 255, 255, 0.8); }
.mt-header.is-dark .mt-mark { --mark-bg: #fff; --mark-m: #0b1f3a; --mark-river: #1d56cf; }
.mt-header__bar { max-width: 1440px; margin-inline: auto; height: var(--header-h); display: flex; align-items: center; gap: 12px; padding-inline: var(--gutter); }
.mt-header__brand { color: inherit; text-decoration: none; flex: none; }
.mt-logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; font-size: 1.12rem; letter-spacing: -0.02em; white-space: nowrap; }
.mt-mark { display: block; flex: none; }
.mt-nav { flex: 1; display: none; justify-content: center; }
@media (min-width: 1080px) { .mt-nav { display: flex; } }
.mt-nav__list { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.mt-nav__btn {
	display: inline-flex; align-items: center; gap: 4px; height: 40px; padding: 0 14px; border-radius: 999px; border: 0;
	background: transparent; cursor: pointer; font-weight: 560; font-size: 0.95rem; color: inherit; transition: background-color 0.2s;
}
.mt-nav__btn:hover, .mt-nav__btn[aria-expanded="true"] { background: rgba(11, 31, 58, 0.07); }
.mt-header.is-dark .mt-nav__btn:hover, .mt-header.is-dark .mt-nav__btn[aria-expanded="true"] { background: rgba(255, 255, 255, 0.14); }
.mt-nav__caret { width: 14px; height: 14px; transition: transform 0.25s var(--ease); }
.mt-nav__btn[aria-expanded="true"] .mt-nav__caret { transform: rotate(180deg); }
.mt-header__actions { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
@media (min-width: 1080px) { .mt-header__actions { margin-inline-start: 0; } }
.mt-header__search { padding-inline: 12px; }
.mt-header__search-label { display: none; font-size: 0.92rem; }
@media (min-width: 1280px) { .mt-header__search-label { display: inline; color: inherit; opacity: 0.8; } }
.mt-header__search .mt-kbd { display: none; }
@media (min-width: 1280px) { .mt-header__search .mt-kbd { display: inline-grid; } }
.mt-header__cta { display: none; margin-inline-start: 6px; }
@media (min-width: 640px) { .mt-header__cta { display: inline-flex; } }
@media (min-width: 1080px) { .mt-header__menu { display: none; } }
.mt-when-dark { display: none; }

/* Reading progress line */
.mt-progress { position: absolute; inset-inline: 0; bottom: -1px; height: 2px; overflow: hidden; pointer-events: none; }
.mt-progress span { display: block; height: 100%; background: var(--red); transform-origin: 0 50%; transform: scaleX(var(--read, 0)); }
:dir(rtl) .mt-progress span, [dir="rtl"] .mt-progress span { transform-origin: 100% 50%; }

/* Mega menu */
.mt-mega {
	position: absolute; inset-inline: 0; top: 100%;
	background: var(--glass); color: var(--ink);
	-webkit-backdrop-filter: saturate(180%) blur(24px); backdrop-filter: saturate(180%) blur(24px);
	border-bottom: 1px solid var(--glass-line); box-shadow: 0 30px 60px -30px rgba(11, 31, 58, 0.3);
	animation: mt-drop 0.32s var(--ease-out);
}
.mt-header.is-dark .mt-mega { background: rgba(255, 255, 255, 0.94); }
@keyframes mt-drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.mt-mega__inner { max-width: 1240px; margin-inline: auto; padding: 32px var(--gutter) 40px; display: grid; grid-template-columns: 1fr 300px; gap: 40px; }
.mt-mega__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 28px; }
.mt-mega__head { font-size: 0.82rem; font-weight: 650; color: var(--muted); margin: 0 0 10px; }
.mt-mega__inner ul { list-style: none; margin: 0; padding: 0; }
.mt-mega__inner li a { display: flex; align-items: center; gap: 8px; padding: 6px 0; color: var(--ink); text-decoration: none; font-weight: 560; font-size: 0.98rem; }
.mt-mega__inner li a:hover { color: var(--red); }
.mt-mega__inner li a .mt-icon { color: var(--muted); width: 18px; height: 18px; }
.mt-mega__feature { display: grid; gap: 8px; align-content: start; align-self: start; color: var(--ink); text-decoration: none; }
.mt-mega__feature-img { display: block; aspect-ratio: 4 / 3; border-radius: var(--r-m); overflow: hidden; background: var(--mist); }
.mt-mega__feature-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.mt-mega__feature:hover img { transform: scale(1.04); }
.mt-mega__feature-label { font-size: 0.8rem; font-weight: 650; color: var(--red); }
.mt-mega__feature-title { font-weight: 650; line-height: 1.25; }
.mt-mega__aside { background: var(--mist); border-radius: var(--r-l); padding: 24px; align-self: start; }
.mt-mega__big { font-size: 1.8rem; font-weight: 750; letter-spacing: -0.03em; margin-bottom: 6px; }
.mt-mega__inner--games { grid-template-columns: 1fr auto; align-items: center; }
.mt-mega__games { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.mt-mega__games a { padding: 10px; border-radius: var(--r-m); background: var(--mist); }
.mt-mega__gicon { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--paper); }
.mt-mega__all { font-weight: 650; }

/* Popover (language) */
.mt-pop { position: relative; }
.mt-pop__panel { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); min-width: 210px; background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-m); box-shadow: var(--shadow-lift); padding: 6px; animation: mt-drop 0.25s var(--ease-out); }
.mt-langs { list-style: none; margin: 0; padding: 0; }
.mt-langs a { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 12px; border-radius: 10px; color: inherit; text-decoration: none; font-weight: 560; }
.mt-langs a:hover { background: var(--mist); }
.mt-langs a[aria-current="true"] { background: var(--mist); }
.mt-langs a[aria-current="true"]::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); align-self: center; }
.mt-langs__partial { font-size: 0.72rem; color: var(--muted); font-weight: 500; }
.mt-langs--row { display: flex; flex-wrap: wrap; gap: 6px; }
.mt-langs--row a { background: var(--mist); }

/* Mobile drawer */
.mt-drawer { position: fixed; inset: var(--header-h) 0 0 0; z-index: 99; background: var(--paper); overflow-y: auto; padding: 8px var(--gutter) 40px; animation: mt-drop 0.3s var(--ease-out); overscroll-behavior: contain; }
body.admin-bar .mt-drawer { top: calc(var(--header-h) + 46px); }
.mt-drawer__group { border-bottom: 1px solid var(--line); }
.mt-drawer__group summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 18px 0; font-size: 1.35rem; font-weight: 700; cursor: pointer; letter-spacing: -0.02em; }
.mt-drawer__group summary::-webkit-details-marker { display: none; }
.mt-drawer__group[open] summary .mt-icon { transform: rotate(180deg); }
.mt-drawer__panel .mt-mega__inner { display: block; padding: 0 0 20px; }
.mt-drawer__panel .mt-mega__cols { grid-template-columns: 1fr 1fr; gap: 20px; }
.mt-drawer__panel .mt-mega__feature, .mt-drawer__panel .mt-mega__aside p:not(.mt-mega__big) { display: none; }
.mt-drawer__panel .mt-mega__aside { margin-top: 16px; padding: 16px; }
.mt-drawer__panel .mt-mega__games { grid-template-columns: 1fr; }
.mt-drawer__link { display: block; padding: 16px 0; font-size: 1.2rem; font-weight: 650; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.mt-drawer__foot { padding-top: 24px; display: grid; gap: 16px; }
.mt-drawer__label { margin: 0; font-weight: 650; color: var(--muted); font-size: 0.9rem; }
@media (min-width: 1080px) { .mt-drawer { display: none !important; } }

/* Search dialog */
.mt-search { position: fixed; inset: 0; z-index: 200; background: rgba(6, 14, 28, 0.45); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); display: flex; justify-content: center; align-items: flex-start; padding: min(12vh, 120px) 16px 16px; animation: mt-fade 0.2s; }
.mt-search[hidden] { display: none; }
@keyframes mt-fade { from { opacity: 0; } }
.mt-search__box { width: min(720px, 100%); max-height: 76vh; display: flex; flex-direction: column; background: var(--paper); border-radius: var(--r-l); box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.5); overflow: hidden; animation: mt-drop 0.3s var(--ease-out); }
.mt-search__form { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 20px; border-bottom: 1px solid var(--line); }
[dir="rtl"] .mt-search__form { padding: 10px 20px 10px 10px; }
.mt-search__form input::-webkit-search-cancel-button { display: none; }
.mt-search__form input { flex: 1; min-width: 0; border: 0; background: transparent; font-size: 1.25rem; padding: 12px 0; outline: none; }
.mt-search__hint { margin: 0; padding: 10px 20px; font-size: 0.85rem; color: var(--muted); }
.mt-search__list { list-style: none; margin: 0; padding: 6px; overflow-y: auto; }
.mt-search__list a { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 12px; color: var(--ink); text-decoration: none; }
.mt-search__list [aria-selected="true"] a, .mt-search__list a:hover { background: var(--mist); }
.mt-search__thumb { width: 44px; height: 44px; border-radius: 10px; background: var(--mist); display: grid; place-items: center; overflow: hidden; color: var(--muted); }
.mt-search__thumb img { width: 100%; height: 100%; object-fit: cover; }
.mt-search__t { font-weight: 600; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.mt-search__t mark { background: rgba(214, 40, 59, 0.14); color: inherit; border-radius: 3px; }
.mt-search__k { font-size: 0.75rem; color: var(--muted); white-space: nowrap; }

/* Inline search form */
.mt-search-form { display: flex; align-items: center; gap: 10px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 6px 6px 6px 18px; max-width: 560px; box-shadow: var(--shadow); }
[dir="rtl"] .mt-search-form { padding: 6px 18px 6px 6px; }
.mt-search-form .mt-icon { color: var(--muted); }
.mt-search-form input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 10px 0; font-size: 1rem; outline: none; }
.mt-search-form input::-webkit-search-cancel-button { display: none; }
.mt-search-form .mt-kbd { display: none; }
@media (min-width: 700px) { .mt-search-form .mt-kbd { display: inline-grid; } }
.mt-search-form__go { border: 0; border-radius: 999px; background: var(--ink); color: #fff; min-height: 44px; padding: 0 20px; font-weight: 650; cursor: pointer; }
.mt-search-form:focus-within { border-color: var(--river); box-shadow: 0 0 0 4px rgba(29, 86, 207, 0.15); }

/* ---------- Home hero (sticky, zooms and rounds) ---------- */
.mt-hero { position: relative; height: 175vh; height: 175svh; background: #06101f; }
.mt-hero__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; align-items: flex-end; }
.mt-hero__media {
	position: absolute; inset: 0; margin: 0;
	clip-path: inset(calc(var(--hp, 0) * 3.5vh) calc(var(--hp, 0) * 4vw) round calc(var(--hp, 0) * 40px));
	will-change: clip-path;
}
.mt-hero__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1.18 - var(--hp, 0) * 0.18)); transform-origin: 50% 40%; will-change: transform; }
.mt-hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 16, 31, 0.5) 0%, rgba(6, 16, 31, 0.1) 30%, rgba(6, 16, 31, 0.25) 55%, rgba(6, 16, 31, 0.86) 100%); }
.mt-hero__content { position: relative; z-index: 2; color: #fff; padding-bottom: clamp(48px, 12vh, 120px); opacity: calc(1 - var(--hp, 0) * 1.4); transform: translateY(calc(var(--hp, 0) * -40px)); }
.mt-hero__title { color: #fff; font-size: clamp(2.6rem, 1.2rem + 6.2vw, 6.6rem); font-weight: 700; line-height: 1; letter-spacing: -0.028em; max-width: 13ch; margin-bottom: 0.3em; font-variation-settings: "opsz" 96; }
:lang(ar) .mt-hero__title { letter-spacing: 0; line-height: 1.2; max-width: 16ch; }
.mt-hero__lede { font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.35rem); max-width: 40ch; color: rgba(255, 255, 255, 0.88); margin-bottom: 1.4em; }
.mt-search-form--hero { border: 0; max-width: 600px; }
.mt-chips--hero { margin-top: 16px; }
.mt-chips--hero a { background: rgba(255, 255, 255, 0.14); color: #fff; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.mt-chips--hero a:hover { background: rgba(255, 255, 255, 0.24); border-color: transparent; }

/* ---------- Numbers band ---------- */
.mt-numbers { padding: clamp(56px, 9vw, 110px) 0; border-bottom: 1px solid var(--line); }
.mt-numbers__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; margin: 0; }
@media (min-width: 900px) { .mt-numbers__list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.mt-numbers__item { display: flex; flex-direction: column-reverse; gap: 6px; border-top: 1px solid var(--line-strong); padding-top: 18px; }
.mt-numbers__item dd { margin: 0; font-size: clamp(2.4rem, 1.4rem + 4vw, 4.6rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.mt-numbers__item dt { color: var(--muted); font-size: 0.98rem; }

/* ---------- Sections ---------- */
.mt-section { position: relative; padding: clamp(72px, 11vw, 140px) 0; overflow-x: clip; }
.mt-section__head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); position: relative; z-index: 1; }
.mt-section__head--split { max-width: none; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 32px; }
.mt-section__head--split > div { max-width: 720px; }
.mt-section__head p { font-size: 1.12rem; margin: 0; }
.mt-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* Decorative outline words drifting behind sections */
[data-word] { position: relative; }
[data-word]::before {
	content: attr(data-word);
	position: absolute; z-index: 0; top: clamp(8px, 3vw, 40px); inset-inline-end: -0.04em;
	font-size: clamp(6rem, 3rem + 18vw, 20rem); font-weight: 800; line-height: 0.8; letter-spacing: -0.06em; white-space: nowrap;
	color: transparent; -webkit-text-stroke: 1px var(--line); text-stroke: 1px var(--line); opacity: 0.8;
	transform: translateX(var(--wx, 0px)); pointer-events: none; user-select: none;
	font-variation-settings: "opsz" 96;
}
[data-word] > * { position: relative; z-index: 1; }

/* ---------- Pinned horizontal carousel ---------- */
.mt-hscroll { position: relative; background: var(--mist); }
.mt-hscroll__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding-top: var(--header-h); }
.mt-hscroll__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: clamp(20px, 3vh, 40px); }
.mt-hscroll__head p { margin: 0; }
.mt-hscroll__meter { display: grid; gap: 10px; justify-items: end; min-width: 120px; flex: none; }
.mt-hscroll__count { font-weight: 700; font-variant-numeric: tabular-nums; font-size: 1.1rem; }
.mt-hscroll__bar { display: block; width: 120px; height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; }
.mt-hscroll__bar span { display: block; height: 100%; background: var(--red); transform-origin: 0 50%; transform: scaleX(var(--hs, 0)); }
[dir="rtl"] .mt-hscroll__bar span { transform-origin: 100% 50%; }
.mt-hscroll__viewport { overflow: visible; }
.mt-hscroll__track { list-style: none; margin: 0; display: flex; gap: clamp(14px, 2vw, 24px); padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); will-change: transform; transform: translate3d(var(--tx, 0px), 0, 0); }
.mt-hscroll__item { flex: none; width: min(74vw, 340px); }
@media (min-width: 900px) { .mt-hscroll__item { width: min(30vw, 380px); } }
.mt-tallcard { position: relative; display: block; aspect-ratio: 3 / 4; max-height: 62vh; border-radius: var(--r-l); overflow: hidden; color: #fff; text-decoration: none; background: var(--ink); box-shadow: var(--shadow); }
.mt-tallcard__media { position: absolute; inset: 0; overflow: hidden; }
.mt-tallcard__media img, .mt-tallcard__media .mt-img { width: 100%; height: 100%; object-fit: cover; transform: translateY(var(--py, 0px)) scale(1.14); transition: filter 0.4s; }
.mt-tallcard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(6, 16, 31, 0.88)); }
.mt-tallcard__body { position: absolute; inset-inline: 0; bottom: 0; z-index: 1; padding: 22px; display: grid; gap: 6px; }
.mt-tallcard__cat { font-size: 0.8rem; font-weight: 650; opacity: 0.85; }
.mt-tallcard__title { font-size: clamp(1.25rem, 1rem + 0.8vw, 1.6rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
.mt-tallcard:hover .mt-tallcard__media img { filter: brightness(1.08); }

/* ---------- Bento tiles (grow into place) ---------- */
.mt-bento { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(180px, 26vw); }
@media (min-width: 900px) { .mt-bento { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(220px, 17vw); gap: 18px; } }
.mt-tile--0 { grid-column: span 2; grid-row: span 2; }
@media (min-width: 900px) { .mt-tile--3, .mt-tile--4, .mt-tile--5 { grid-column: span 2; } }
.mt-tile {
	position: relative; display: block; overflow: hidden; border-radius: var(--r-l); color: #fff; text-decoration: none; background: var(--ink);
	transform: scale(calc(0.86 + var(--g, 1) * 0.14)); opacity: calc(0.35 + var(--g, 1) * 0.65); border-radius: calc(var(--r-xl) * (1.6 - var(--g, 1) * 0.6));
	transition: box-shadow 0.3s;
}
.mt-tile__media { position: absolute; inset: 0; }
.mt-tile__media img, .mt-tile__media .mt-img { width: 100%; height: 100%; object-fit: cover; transform: translateY(var(--py, 0px)) scale(1.16); transition: transform 0.8s var(--ease); }
.mt-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 16, 31, 0.05) 30%, rgba(6, 16, 31, 0.78)); }
.mt-tile__body { position: absolute; inset-inline: 0; bottom: 0; z-index: 1; padding: clamp(16px, 2vw, 28px); display: grid; gap: 2px; }
.mt-tile__icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: rgba(255, 255, 255, 0.16); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); margin-bottom: 8px; }
.mt-tile__title { font-size: clamp(1.2rem, 0.9rem + 1vw, 2rem); font-weight: 720; letter-spacing: -0.025em; line-height: 1.1; }
.mt-tile--0 .mt-tile__title { font-size: clamp(1.6rem, 1rem + 2.2vw, 3rem); }
.mt-tile__count { font-size: 0.9rem; opacity: 0.85; }

/* ---------- Cards and grids ---------- */
.mt-grid { display: grid; gap: clamp(20px, 2.4vw, 32px); }
.mt-grid--cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); }
.mt-grid--two { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.mt-card { position: relative; }
.mt-card__link { display: grid; gap: 14px; color: inherit; text-decoration: none; }
.mt-card__media { display: block; aspect-ratio: 4 / 3; border-radius: var(--r-m); overflow: hidden; background: var(--mist); }
.mt-card__media img, .mt-card__media .mt-img { width: 100%; height: 100%; object-fit: cover; transform: translateY(var(--py, 0px)) scale(1.08); transition: transform 0.7s var(--ease); }
.mt-card__link:hover .mt-card__media img { transform: translateY(var(--py, 0px)) scale(1.13); }
.mt-img--blank { display: grid !important; place-items: center; background: var(--mist-2); }
.mt-card__body { display: grid; gap: 6px; }
.mt-card__cat { font-size: 0.8rem; font-weight: 650; color: var(--red); }
.mt-card__title { font-size: 1.18rem; line-height: 1.25; margin: 0; font-weight: 680; letter-spacing: -0.015em; }
.mt-card__link:hover .mt-card__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
.mt-card__excerpt { color: var(--muted); font-size: 0.97rem; }
.mt-card__meta { font-size: 0.85rem; color: var(--muted); }

/* People */
.mt-people__grid { display: grid; gap: 40px; }
@media (min-width: 1000px) { .mt-people__grid { grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; } .mt-people__intro { position: sticky; top: calc(var(--header-h) + 40px); } }
.mt-people__intro p { font-size: 1.15rem; color: var(--ink-2); max-width: 46ch; }

/* Tools */
.mt-tools-band { background: var(--mist); }
.mt-toolgrid { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.mt-toolgrid--wide { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.mt-tool { display: grid; grid-template-columns: 48px 1fr; align-items: center; column-gap: 14px; row-gap: 2px; height: 100%; padding: 16px; border-radius: var(--r-m); background: var(--paper); color: var(--ink); text-decoration: none; border: 1px solid var(--line); transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s; }
.mt-tool:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: transparent; }
.mt-tool__icon { grid-row: span 3; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--mist); color: var(--river); align-self: start; }
.mt-tools-band .mt-tool__icon { background: var(--mist); }
.mt-tool__name { font-weight: 650; line-height: 1.25; }
.mt-tool__group, .mt-tool__blurb { font-size: 0.86rem; color: var(--muted); line-height: 1.4; }
.mt-toolgroup { margin-bottom: 56px; }
.mt-toolgroup h2 { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.mt-toolgroup__icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--ink); color: #fff; }

/* Games */
.mt-gamegrid { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.mt-gamegrid > li { display: flex; }
.mt-game { flex: 1; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r-m); background: var(--mist); color: var(--ink); text-decoration: none; font-weight: 620; transition: background-color 0.2s, transform 0.3s var(--ease); }
.mt-game:hover { background: var(--mist-2); transform: translateY(-2px); }
.mt-game__icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--paper); color: var(--red); flex: none; }
.mt-gamegrid--big .mt-game { flex-direction: column; align-items: flex-start; padding: 24px; min-height: 200px; }
.mt-gamegrid--big .mt-game__name { font-size: 1.3rem; font-weight: 700; flex: 1; }
.mt-game__play { font-size: 0.9rem; color: var(--red); font-weight: 650; }

/* Giving band */
.mt-giving { background: var(--ink); color: #fff; padding: clamp(72px, 10vw, 130px) 0; }
.mt-giving__inner { display: grid; gap: 32px; justify-items: start; }
.mt-giving__quote { margin: 0; max-width: 28ch; }
.mt-giving__quote p { font-size: clamp(1.6rem, 1rem + 2.4vw, 3rem); font-weight: 650; line-height: 1.15; letter-spacing: -0.03em; margin-bottom: 0.6em; }
:lang(ar) .mt-giving__quote p { letter-spacing: 0; line-height: 1.4; }
.mt-giving__quote footer { color: rgba(255, 255, 255, 0.7); }

/* ---------- Page heads and hubs ---------- */
.mt-pagehead { padding: calc(var(--header-h) + clamp(40px, 7vw, 96px)) 0 clamp(28px, 4vw, 48px); position: relative; overflow-x: clip; }
.mt-pagehead--hub { background: var(--mist); padding-bottom: clamp(40px, 6vw, 72px); margin-bottom: clamp(32px, 5vw, 56px); }
.mt-pagehead__title { font-size: clamp(2.2rem, 1.2rem + 4.4vw, 5rem); font-weight: 700; letter-spacing: -0.026em; line-height: 1; max-width: 20ch; font-variation-settings: "opsz" 96; }
:lang(ar) .mt-pagehead__title { letter-spacing: 0; line-height: 1.25; }
.mt-pagehead__lede { font-size: clamp(1.08rem, 1rem + 0.4vw, 1.3rem); color: var(--ink-2); max-width: 58ch; }
.mt-pagehead__kicker { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; color: var(--muted); margin-bottom: 12px; }
.mt-pagehead__icon { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--ink); color: #fff; }
.mt-pagehead .mt-search-form { margin-top: 20px; }
.mt-crumbs ol { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.88rem; color: var(--muted); }
.mt-crumbs li + li::before { content: "/"; margin-inline-end: 6px; opacity: 0.5; }
.mt-crumbs a { color: inherit; text-decoration: none; }
.mt-crumbs a:hover { text-decoration: underline; }

.mt-hubhero { position: relative; padding: calc(var(--header-h) + clamp(48px, 9vw, 120px)) 0 clamp(40px, 6vw, 72px); background: var(--mist); overflow: hidden; }
.mt-hubhero--image { background: #06101f; color: #fff; min-height: min(72vh, 640px); display: flex; align-items: flex-end; }
.mt-hubhero__media { position: absolute; inset: 0; margin: 0; }
.mt-hubhero__media img, .mt-hubhero__media .mt-img { width: 100%; height: 115%; object-fit: cover; transform: translateY(var(--py, 0px)); }
.mt-hubhero--image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 16, 31, 0.55), rgba(6, 16, 31, 0.3) 40%, rgba(6, 16, 31, 0.88)); }
.mt-hubhero__inner { position: relative; z-index: 2; }
.mt-hubhero__title { font-size: clamp(2.6rem, 1.2rem + 6vw, 6.4rem); font-weight: 700; letter-spacing: -0.028em; line-height: 0.95; font-variation-settings: "opsz" 96; }
:lang(ar) .mt-hubhero__title { letter-spacing: 0; line-height: 1.2; }
.mt-hubhero--image .mt-hubhero__title, .mt-hubhero--image .mt-crumbs { color: #fff; }
.mt-hubhero--image .mt-crumbs ol { color: rgba(255, 255, 255, 0.78); }
.mt-hubhero__desc { max-width: 56ch; font-size: 1.15rem; opacity: 0.9; }
.mt-hubhero--image[data-word]::before { -webkit-text-stroke-color: rgba(255, 255, 255, 0.14); z-index: 1; }
.mt-hub { padding-top: clamp(28px, 4vw, 48px); padding-bottom: clamp(72px, 10vw, 120px); }
.mt-hub__subs { margin-bottom: 28px; }
.mt-filterbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-bottom: 32px; }
.mt-filterbar__search { display: flex; align-items: center; gap: 10px; flex: 1 1 260px; max-width: 420px; padding: 0 16px; min-height: 48px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); }
.mt-filterbar__search:focus-within { border-color: var(--river); box-shadow: 0 0 0 4px rgba(29, 86, 207, 0.15); }
.mt-filterbar__search input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; padding: 10px 0; }
.mt-filterbar__sort { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.95rem; }
.mt-filterbar__sort select { min-height: 44px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); padding: 0 14px; color: var(--ink); }
.mt-filterbar__count { margin: 0; color: var(--muted); font-size: 0.92rem; margin-inline-start: auto; }
.mt-empty { padding: 40px 0; color: var(--muted); font-size: 1.1rem; }
.mt-pager ul { list-style: none; padding: 0; margin: 56px 0 0; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.mt-pager a, .mt-pager span { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 999px; text-decoration: none; color: var(--ink); background: var(--mist); font-weight: 600; }
.mt-pager .current { background: var(--ink); color: #fff; }
[dir="rtl"] .mt-pager .mt-icon { transform: scaleX(-1); }
[dir="rtl"] .mt-pager .mt-flip { transform: none; }

/* A to Z */
.mt-az__letters { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 24px; }
.mt-az__letters a { display: grid; place-items: center; min-width: 40px; height: 40px; border-radius: 10px; background: var(--paper); color: var(--ink); text-decoration: none; font-weight: 650; }
.mt-az__letters a:hover { background: var(--ink); color: #fff; }
.mt-az { padding-bottom: 96px; }
.mt-az__group { display: grid; gap: 8px 32px; padding: 28px 0; border-top: 1px solid var(--line); }
@media (min-width: 800px) { .mt-az__group { grid-template-columns: 120px 1fr; } }
.mt-az__letter { font-size: 3rem; line-height: 1; margin: 0; color: var(--red); }
@media (min-width: 800px) { .mt-az__letter { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; } }
.mt-az__list { list-style: none; margin: 0; padding: 0; columns: 1; column-gap: 40px; }
@media (min-width: 900px) { .mt-az__list { columns: 2; } }
.mt-az__list li { break-inside: avoid; padding: 6px 0; display: flex; flex-direction: column; }
.mt-az__list a { color: var(--ink); text-decoration: none; font-weight: 560; }
.mt-az__list a:hover { color: var(--red); text-decoration: underline; }
.mt-az__list .mt-muted { font-size: 0.82rem; }

/* ---------- Article ---------- */
.mt-arthero { position: relative; padding: calc(var(--header-h) + clamp(40px, 7vw, 96px)) 0 clamp(32px, 5vw, 56px); background: var(--mist); }
.mt-arthero--image { min-height: min(86vh, 760px); display: flex; align-items: flex-end; color: #fff; background: #06101f; overflow: hidden; }
.mt-arthero__media { position: absolute; inset: 0; margin: 0; }
.mt-arthero__media img { width: 100%; height: 118%; object-fit: cover; transform: translateY(var(--py, 0px)); }
.mt-arthero--image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 16, 31, 0.6), rgba(6, 16, 31, 0.3) 35%, rgba(6, 16, 31, 0.92)); }
.mt-arthero__inner { position: relative; z-index: 2; }
.mt-arthero__title { font-size: clamp(2.1rem, 1.1rem + 4vw, 4.6rem); font-weight: 700; letter-spacing: -0.026em; line-height: 1.02; max-width: 22ch; margin-top: 16px; font-variation-settings: "opsz" 96; }
:lang(ar) .mt-arthero__title { letter-spacing: 0; line-height: 1.3; }
.mt-arthero--image .mt-arthero__title { color: #fff; }
.mt-arthero--image .mt-crumbs ol { color: rgba(255, 255, 255, 0.78); }
.mt-arthero--image .mt-chip { background: rgba(255, 255, 255, 0.16); color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.mt-arthero__meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; font-size: 0.95rem; opacity: 0.85; }
.mt-article__layout { display: grid; gap: 32px; padding-top: clamp(32px, 5vw, 64px); padding-bottom: clamp(40px, 6vw, 80px); }
@media (min-width: 1100px) { .mt-article__layout { grid-template-columns: 220px minmax(0, 720px) 1fr; gap: 56px; } }
.mt-article__main { min-width: 0; }
.mt-article__side, .mt-article__share { min-width: 0; }
@media (min-width: 1100px) { .mt-article__side > *, .mt-article__share > * { position: sticky; top: calc(var(--header-h) + 32px); } }
@media (max-width: 1099px) { .mt-article__side:empty { display: none; } }
.mt-toc { font-size: 0.92rem; }
.mt-toc__title { font-weight: 700; margin-bottom: 8px; }
.mt-toc ol { list-style: none; margin: 0; padding: 0; border-inline-start: 2px solid var(--line); }
.mt-toc a { display: block; padding: 6px 14px; color: var(--muted); text-decoration: none; margin-inline-start: -2px; border-inline-start: 2px solid transparent; line-height: 1.35; }
.mt-toc a:hover { color: var(--ink); }
.mt-toc a.is-active { color: var(--ink); border-inline-start-color: var(--red); font-weight: 600; }
@media (max-width: 1099px) { .mt-toc { background: var(--mist); border-radius: var(--r-m); padding: 16px 18px; } }
.mt-share__label { font-weight: 650; font-size: 0.9rem; margin-bottom: 6px; }
.mt-share ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.mt-share .mt-iconbtn { background: var(--mist); color: var(--ink); width: 44px; height: 44px; }
.mt-share .mt-iconbtn:hover { background: var(--mist-2); }
.mt-notice { background: #fff7e6; color: #5c3b00; border: 1px solid #f3d8a6; border-radius: var(--r-m); padding: 12px 16px; font-size: 0.95rem; }
.mt-listing { background: var(--mist); border-radius: var(--r-l); padding: clamp(20px, 3vw, 32px); margin-bottom: 32px; }
.mt-listing__title { font-size: 1.3rem; }
.mt-facts { width: 100%; border-collapse: collapse; }
.mt-facts th, .mt-facts td { text-align: start; padding: 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.mt-facts th { width: 34%; color: var(--muted); font-weight: 600; padding-inline-end: 16px; }
.mt-highlights, .mt-checklist { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 10px; }
.mt-highlights li { display: flex; gap: 10px; }
.mt-checklist li { position: relative; padding-inline-start: 30px; }
.mt-checklist li::before { content: ""; position: absolute; inset-inline-start: 0; top: 0.45em; width: 16px; height: 9px; border-inline-start: 2px solid var(--red); border-bottom: 2px solid var(--red); transform: rotate(-45deg); }
[dir="rtl"] .mt-checklist li::before { transform: rotate(45deg) scaleX(-1); }
.mt-faq, .mt-sources { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.mt-faq h2, .mt-sources h2 { font-size: 1.5rem; }
.mt-faq__item { border-bottom: 1px solid var(--line); }
.mt-faq__item summary { cursor: pointer; padding: 16px 0; font-weight: 650; }
.mt-sources ul { padding-inline-start: 1.2em; }
.mt-sources li { margin-bottom: 6px; overflow-wrap: anywhere; }
.mt-prevnext { display: grid; gap: 16px; padding-bottom: 80px; }
@media (min-width: 800px) { .mt-prevnext { grid-template-columns: 1fr 1fr; } }
.mt-prevnext__link { display: grid; gap: 4px; padding: 20px 24px; border-radius: var(--r-m); background: var(--mist); color: var(--ink); text-decoration: none; font-weight: 620; }
.mt-prevnext__link--next { text-align: end; }
.mt-related { background: var(--mist); }
.mt-related .mt-h2 { margin-bottom: 32px; }

/* ---------- Prose (post and page content, including legacy inline-styled HTML) ---------- */
.mt-prose { font-size: 1.12rem; line-height: 1.72; color: var(--ink-2); overflow-wrap: break-word; }
.mt-prose > * { max-width: 100%; }
.mt-prose h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); margin: 1.8em 0 0.6em; color: var(--ink); letter-spacing: -0.025em; }
.mt-prose h3 { font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem); margin: 1.6em 0 0.5em; color: var(--ink); }
.mt-prose h4 { font-size: 1.1rem; margin: 1.4em 0 0.4em; }
.mt-prose ul, .mt-prose ol { padding-inline-start: 1.3em; }
.mt-prose li { margin-bottom: 0.4em; }
.mt-prose img { border-radius: var(--r-m); }
.mt-prose figure { margin: 2em 0; }
.mt-prose figcaption, .mt-prose .wp-caption-text { font-size: 0.88rem; color: var(--muted); margin-top: 8px; }
.mt-prose .wp-caption { max-width: 100% !important; }
.mt-prose blockquote { margin: 2em 0; padding-inline-start: 24px; border-inline-start: 3px solid var(--red); font-size: 1.25rem; color: var(--ink); }
.mt-prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }
.mt-prose iframe { width: 100%; border: 0; border-radius: var(--r-m); }
.mt-prose iframe[src*="youtube"], .mt-prose iframe[src*="vimeo"] { aspect-ratio: 16 / 9; height: auto; }
.mt-prose .aligncenter { display: block; margin-inline: auto; }
.mt-prose .alignleft { float: left; margin: 0.3em 1.5em 1em 0; max-width: 50%; }
.mt-prose .alignright { float: right; margin: 0.3em 0 1em 1.5em; max-width: 50%; }
@media (max-width: 640px) { .mt-prose .alignleft, .mt-prose .alignright { float: none; margin: 1em 0; max-width: 100%; } }
.mt-prose a { overflow-wrap: anywhere; }
.mt-prose code { background: var(--mist); padding: 0.1em 0.35em; border-radius: 5px; font-size: 0.9em; }
.mt-prose pre { background: var(--mist); padding: 16px; border-radius: var(--r-m); overflow-x: auto; }
.mt-table-wrap { overflow-x: auto; margin: 1.5em 0; border-radius: var(--r-m); border: 1px solid var(--line); }
.mt-table-wrap table { width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 480px; }
.mt-table-wrap th, .mt-table-wrap td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; }
.mt-table-wrap th { background: var(--mist); font-weight: 650; }
.mt-prose [style*="max-width"] { max-width: 100% !important; }
.mt-prose [style*="width:"]:not(img):not(span) { max-width: 100%; }

/* Tool and game bodies keep their own styles on a light card */
.mt-page__body { padding-bottom: 64px; }
.mt-prose--narrow { max-width: 780px; margin-inline: auto; }
.mt-toolbody { background: #ffffff; color: #1a1a1a; color-scheme: light; border-radius: var(--r-l); padding: clamp(8px, 2vw, 24px); box-shadow: var(--shadow); max-width: 1000px; margin-inline: auto; overflow-x: auto; }
.mt-page--game .mt-toolbody { max-width: 1200px; }
.mt-toolbody canvas { max-width: 100%; height: auto; touch-action: manipulation; }
.mt-page__share { max-width: 1000px; margin: 32px auto 0; }

/* About, forms */
.mt-about { padding-bottom: 96px; }
.mt-about .mt-prose { max-width: 720px; }
.mt-formpage { display: grid; gap: 40px; padding-bottom: 96px; }
@media (min-width: 960px) { .mt-formpage { grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr); gap: 72px; } }
.mt-formpage__aside { align-self: start; background: var(--mist); border-radius: var(--r-l); padding: clamp(20px, 3vw, 32px); }
.mt-form__grid { display: grid; gap: 4px 20px; }
@media (min-width: 700px) { .mt-form__grid { grid-template-columns: 1fr 1fr; } .mt-field.is-wide { grid-column: 1 / -1; } }
.mt-field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.98rem; }
.mt-field input, .mt-field textarea { width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--paper); transition: border-color 0.2s, box-shadow 0.2s; }
.mt-field textarea { resize: vertical; min-height: 140px; }
.mt-field textarea[rows="2"] { min-height: 84px; }
.mt-field input:focus, .mt-field textarea:focus { outline: none; border-color: var(--river); box-shadow: 0 0 0 4px rgba(29, 86, 207, 0.15); }
.mt-field input[aria-invalid="true"], .mt-field textarea[aria-invalid="true"] { border-color: var(--red); }
.mt-req { color: var(--red); }
.mt-opt { font-weight: 400; color: var(--muted); font-size: 0.88rem; }
.mt-checks { border: 0; padding: 0; margin: 12px 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.mt-checks legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
.mt-checks label, .mt-consent label { display: inline-flex; gap: 10px; align-items: flex-start; }
.mt-checks input, .mt-consent input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--red); flex: none; }
.mt-consent { margin: 16px 0 24px; color: var(--ink-2); }
.mt-hp { position: absolute !important; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.mt-form__error { background: #fde8ea; color: #8a1324; border-radius: 12px; padding: 12px 16px; font-weight: 600; }
.mt-form-done { background: var(--mist); border-radius: var(--r-l); padding: 32px; }
.mt-form-done .mt-icon { width: 44px; height: 44px; color: #138a43; }

/* 404 */
.mt-404 { padding: calc(var(--header-h) + 80px) 0 120px; min-height: 80vh; overflow-x: clip; }
.mt-404__code { font-size: clamp(6rem, 20vw, 14rem); font-weight: 800; line-height: 0.8; letter-spacing: -0.06em; margin: 0 0 24px; color: var(--red); }
.mt-404__lede { font-size: 1.2rem; max-width: 48ch; color: var(--ink-2); }
.mt-404 .mt-search-form { margin: 24px 0; }

/* ---------- Footer ---------- */
.mt-footer { background: #06101f; color: rgba(255, 255, 255, 0.82); position: relative; overflow: hidden; }
.mt-footer a { color: #fff; text-decoration: none; }
.mt-footer a.mt-btn--light { color: #0b1f3a; }
.mt-footer a.mt-btn--light:hover { text-decoration: none; }
.mt-footer a:hover { text-decoration: underline; }
.mt-footer[data-word]::before { top: auto; bottom: -0.12em; -webkit-text-stroke-color: rgba(255, 255, 255, 0.07); }
.mt-footer__cta { padding: clamp(72px, 10vw, 120px) 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.mt-footer__cta-title { color: #fff; font-size: clamp(2rem, 1.2rem + 3.6vw, 4rem); letter-spacing: -0.024em; max-width: 18ch; font-weight: 700; }
:lang(ar) .mt-footer__cta-title { letter-spacing: 0; line-height: 1.3; }
.mt-footer__cta p { font-size: 1.15rem; max-width: 50ch; }
.mt-footer__grid { display: grid; gap: 40px; padding-top: 64px; padding-bottom: 48px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 1000px) { .mt-footer__grid { grid-template-columns: 1.5fr repeat(4, minmax(0, 1fr)); } }
.mt-footer__brand { grid-column: 1 / -1; max-width: 380px; }
@media (min-width: 1000px) { .mt-footer__brand { grid-column: auto; } }
.mt-footer__brand .mt-mark { --mark-bg: #fff; --mark-m: #0b1f3a; --mark-river: #1d56cf; }
.mt-footer__logo { display: inline-block; margin-bottom: 16px; }
.mt-footer__head { color: #fff; font-size: 0.95rem; font-weight: 650; margin-bottom: 14px; letter-spacing: 0; }
.mt-footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mt-footer__col ul a { color: rgba(255, 255, 255, 0.82); }
.mt-footer__col ul a:hover { color: #fff; }
.mt-footer .mt-count { color: rgba(255, 255, 255, 0.5); }
.mt-footer__give { display: inline-flex; align-items: center; gap: 8px; }
.mt-footer__give .mt-icon { color: #ff6b7d; }
.mt-social { list-style: none; margin: 16px 0 0; padding: 0; display: flex; gap: 8px; }
.mt-social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); }
.mt-social a:hover { background: rgba(255, 255, 255, 0.16); }
.mt-langs--footer a { padding: 6px 0; color: rgba(255, 255, 255, 0.82); }
.mt-langs--footer a:hover, .mt-langs--footer a[aria-current="true"] { background: transparent; color: #fff; }
.mt-langs--footer .mt-langs__partial { color: rgba(255, 255, 255, 0.5); }
.mt-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; padding-bottom: 32px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.9rem; position: relative; z-index: 1; }
.mt-footer__base p { margin: 0; }
.mt-credit a { text-decoration: underline; text-underline-offset: 0.2em; }

/* ---------- Enfold compatibility ---------- */
.mt-av { display: flex; flex-wrap: wrap; gap: 24px 32px; align-items: flex-start; }
.mt-av > *:not(.mt-av-col):not(.mt-av-section) { flex: 1 1 100%; max-width: 100%; }
.mt-av-section { flex: 1 1 100%; position: relative; border-radius: var(--r-l); overflow: hidden; padding: clamp(24px, 4vw, 48px); background: var(--mist); }
.mt-av-section.has-bg { background: #06101f var(--av-bg) center / cover no-repeat; color: #fff; }
.mt-av-section.has-bg::before { content: ""; position: absolute; inset: 0; background: rgba(6, 16, 31, 0.55); }
.mt-av-section.has-bg * { color: #fff; }
.mt-av-row { position: relative; display: flex; flex-wrap: wrap; gap: 24px 32px; }
.mt-av-col { flex: 1 1 100%; min-width: 0; }
@media (min-width: 760px) {
	.mt-av-col--half { flex-basis: calc(50% - 16px); }
	.mt-av-col--third { flex-basis: calc(33.333% - 22px); }
	.mt-av-col--two-third { flex-basis: calc(66.666% - 11px); }
	.mt-av-col--fourth { flex-basis: calc(50% - 16px); }
	.mt-av-col--three-fourth { flex-basis: calc(75% - 8px); }
	.mt-av-col--fifth { flex-basis: calc(20% - 26px); }
	.mt-av-col--two-fifth { flex-basis: calc(40% - 20px); }
	.mt-av-col--three-fifth { flex-basis: calc(60% - 13px); }
	.mt-av-col--four-fifth { flex-basis: calc(80% - 7px); }
}
@media (min-width: 1000px) { .mt-av-col--fourth { flex-basis: calc(25% - 24px); } }
.mt-av-heading h1, .mt-av-heading h2 { font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.5rem); }
.mt-av-heading__sub { color: var(--muted); }
.mt-av-figure { margin: 0 0 1em; }
.mt-av-figure img { width: 100%; border-radius: var(--r-m); }
.mt-av-hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; width: 100%; }
.mt-av-space { height: 16px; }
.mt-av-box { height: 100%; padding: 22px; border-radius: var(--r-m); background: var(--mist); }
.mt-av-box__icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--paper); color: var(--red); margin-bottom: 10px; }
.mt-av-box__title { font-size: 1.15rem; margin-bottom: 6px; }
.mt-av-box__title a { color: var(--ink); text-decoration: none; }
.mt-av-box__title a:hover { text-decoration: underline; }
.mt-av-box__text { font-size: 0.98rem; color: var(--ink-2); }
.mt-av-box__text p:last-child { margin: 0; }
.mt-av-team { display: grid; grid-template-columns: 120px 1fr; gap: 20px; align-items: start; background: var(--mist); border-radius: var(--r-l); padding: 20px; }
.mt-av-team__img { width: 120px; height: 120px; object-fit: cover; border-radius: 50%; }
.mt-av-team__job { color: var(--muted); font-weight: 560; }
.mt-av-team__links { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; }
@media (max-width: 520px) { .mt-av-team { grid-template-columns: 1fr; } }
.mt-av-btnwrap { text-align: center; margin: 1em 0; display: grid; justify-items: center; gap: 6px; }
.mt-av-btnwrap .mt-btn { background: var(--red); color: #fff; }
.mt-av-btnwrap__sub { font-size: 0.9rem; color: var(--muted); }
.mt-av-btnrow { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.mt-av-list { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 14px; }
.mt-av-list li { display: flex; gap: 12px; align-items: flex-start; }
.mt-av-list__dot { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--mist); color: var(--red); flex: none; }
.mt-av-list__dot .mt-icon { width: 16px; height: 16px; }
.mt-av-gallery { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); margin: 1em 0; }
.mt-av-gallery--row { grid-auto-flow: column; grid-auto-columns: min(70%, 300px); grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.mt-av-gallery__item { display: block; border-radius: var(--r-s); overflow: hidden; aspect-ratio: 4 / 3; scroll-snap-align: start; }
.mt-av-gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.mt-av-gallery__item:hover img { transform: scale(1.05); }
.mt-av-video iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border-radius: var(--r-m); }
.mt-av-promo { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; background: var(--ink); color: #fff; border-radius: var(--r-l); padding: 28px; }
.mt-av-promo * { color: #fff; }
.mt-av-promo .mt-btn { background: #fff; color: var(--ink); }
.mt-av-countdown { font-weight: 600; }
.mt-av-timeline { list-style: none; padding: 0; margin: 0; border-inline-start: 2px solid var(--line); }
.mt-av-timeline li { position: relative; padding: 0 0 24px 24px; }
[dir="rtl"] .mt-av-timeline li { padding: 0 24px 24px 0; }
.mt-av-timeline li::before { content: ""; position: absolute; inset-inline-start: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--red); }
.mt-av-timeline__date { font-weight: 650; margin-bottom: 4px; }
.mt-av-catalogue__item { display: flex; justify-content: space-between; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.mt-av-number strong { display: block; font-size: 2.4rem; letter-spacing: -0.03em; }
.mt-av-bar { display: grid; gap: 6px; margin-bottom: 12px; }
.mt-av-bar__track { display: block; height: 8px; border-radius: 8px; background: var(--mist-2); overflow: hidden; }
.mt-av-bar__track span { display: block; height: 100%; background: var(--red); }
.mt-av-rotator ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.mt-av-rotator li { background: rgba(255, 255, 255, 0.16); padding: 6px 14px; border-radius: 999px; font-weight: 600; }
.mt-av-rotator__lead { font-size: 1.6rem; font-weight: 700; margin-bottom: 10px; }
.mt-av-map .mt-btn { white-space: normal; text-align: start; }
.mt-av-search { margin: 12px 0 24px; }
.mt-av-posts { margin: 16px 0; }
.mt-av-code { overflow-x: auto; }

/* ---------- Motion ---------- */
.js [data-mask] { overflow: hidden; padding-bottom: 0.08em; margin-bottom: calc(0.5em - 0.08em); }
.js [data-mask] > .mt-mask__inner { display: block; transform: translateY(105%); transition: transform 1.1s var(--ease-out); }
.js [data-mask].is-in > .mt-mask__inner { transform: none; }
.js [data-reveal="blur"] { opacity: 0; filter: blur(14px); transform: translateY(28px) scale(0.98); transition: opacity 0.8s var(--ease), filter 0.8s var(--ease), transform 0.9s var(--ease-out); transition-delay: var(--d, 0s); }
.js [data-reveal="blur"].is-in { opacity: 1; filter: none; transform: none; }
.js [data-reveal="blur"].is-out-up { opacity: 0.25; filter: blur(8px); transform: translateY(-16px) scale(0.98); }
.mt-draw path, .mt-draw circle, .mt-draw rect { stroke-dasharray: 1; stroke-dashoffset: 0; }
.js .mt-draw path, .js .mt-draw circle, .js .mt-draw rect { stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s var(--ease) 0.15s; }
.js .is-drawn .mt-draw path, .js .is-drawn .mt-draw circle, .js .is-drawn .mt-draw rect, .js .mt-draw.is-drawn path, .js .mt-draw.is-drawn circle, .js .mt-draw.is-drawn rect { stroke-dashoffset: 0; }

/* ---------- Dark mode ---------- */
:root[data-theme="dark"] {
	--paper: #06101f;
	--mist: #0e1a2e;
	--mist-2: #16243b;
	--ink: #eef2f8;
	--ink-2: #c9d3e1;
	--muted: #9aa8bc;
	--line: rgba(238, 242, 248, 0.12);
	--line-strong: rgba(238, 242, 248, 0.24);
	--red: #ff5468;
	--red-ink: #ff7a8a;
	--river: #84aaff;
	--glass: rgba(6, 16, 31, 0.72);
	--glass-line: rgba(238, 242, 248, 0.08);
	--shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px -12px rgba(0, 0, 0, 0.6);
	color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--paper: #06101f;
		--mist: #0e1a2e;
		--mist-2: #16243b;
		--ink: #eef2f8;
		--ink-2: #c9d3e1;
		--muted: #9aa8bc;
		--line: rgba(238, 242, 248, 0.12);
		--line-strong: rgba(238, 242, 248, 0.24);
		--red: #ff5468;
		--red-ink: #ff7a8a;
		--river: #84aaff;
		--glass: rgba(6, 16, 31, 0.72);
		--glass-line: rgba(238, 242, 248, 0.08);
		--shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px -12px rgba(0, 0, 0, 0.6);
		color-scheme: dark;
	}
	:root:not([data-theme="light"]) .mt-when-dark { display: inline; }
	:root:not([data-theme="light"]) .mt-when-light { display: none; }
	:root:not([data-theme="light"]) .mt-mark { --mark-bg: #eef2f8; --mark-m: #06101f; --mark-river: #1d56cf; }
	:root:not([data-theme="light"]) .mt-btn--primary, :root:not([data-theme="light"]) .mt-av-btnwrap .mt-btn { color: #1a0206; }
	:root:not([data-theme="light"]) .mt-header .mt-btn--small, :root:not([data-theme="light"]) .mt-search-form__go { background: #eef2f8; color: #06101f; }
	:root:not([data-theme="light"]) .mt-header.is-dark .mt-mega { background: rgba(6, 16, 31, 0.94); }
	:root:not([data-theme="light"]) .mt-giving { background: #0e1a2e; }
	:root:not([data-theme="light"]) .mt-prose [style*="color"]:not([style*="background"] *):not([style*="background"]) { color: inherit !important; }
	:root:not([data-theme="light"]) .mt-notice { background: #2a2110; color: #f5deb0; border-color: #4d3b16; }
	:root:not([data-theme="light"]) .mt-form__error { background: #3a0f17; color: #ffc2ca; }
}
:root[data-theme="dark"] .mt-when-dark { display: inline; }
:root[data-theme="dark"] .mt-when-light { display: none; }
:root[data-theme="dark"] .mt-mark { --mark-bg: #eef2f8; --mark-m: #06101f; --mark-river: #1d56cf; }
:root[data-theme="dark"] .mt-btn--primary, :root[data-theme="dark"] .mt-av-btnwrap .mt-btn { color: #1a0206; }
:root[data-theme="dark"] .mt-header .mt-btn--small, :root[data-theme="dark"] .mt-search-form__go { background: #eef2f8; color: #06101f; }
:root[data-theme="dark"] .mt-header.is-dark .mt-mega { background: rgba(6, 16, 31, 0.94); }
:root[data-theme="dark"] .mt-giving { background: #0e1a2e; }
:root[data-theme="dark"] .mt-prose [style*="color"]:not([style*="background"] *):not([style*="background"]) { color: inherit !important; }
:root[data-theme="dark"] .mt-notice { background: #2a2110; color: #f5deb0; border-color: #4d3b16; }
:root[data-theme="dark"] .mt-form__error { background: #3a0f17; color: #ffc2ca; }
.mt-header.is-dark .mt-mark, .mt-footer .mt-mark { --mark-bg: #ffffff; --mark-m: #0b1f3a; --mark-river: #1d56cf; }

/* ---------- RTL details ---------- */
[dir="rtl"] .mt-icon.mt-dir { transform: scaleX(-1); }
[dir="rtl"] .mt-hero__title, [dir="rtl"] .mt-pagehead__title { letter-spacing: 0; }
[dir="rtl"] .mt-numbers__item dd, [dir="rtl"] .mt-hscroll__count { direction: ltr; text-align: end; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
	.mt-hero { height: auto; }
	.mt-hero__sticky { position: relative; min-height: 88vh; }
	.mt-hero__media { clip-path: none !important; }
	.mt-hero__media img, .mt-card__media img, .mt-tile__media img, .mt-tallcard__media img, .mt-arthero__media img, .mt-hubhero__media img { transform: none !important; }
	.mt-hero__content { opacity: 1 !important; transform: none !important; }
	.mt-tile { transform: none !important; opacity: 1 !important; border-radius: var(--r-l) !important; }
	.js [data-mask] > .mt-mask__inner, .js [data-reveal="blur"] { opacity: 1 !important; filter: none !important; transform: none !important; }
	.js .mt-draw path, .js .mt-draw circle, .js .mt-draw rect { stroke-dashoffset: 0 !important; }
	[data-word]::before { transform: none !important; }
	.mt-hscroll { height: auto !important; }
	.mt-hscroll__sticky { position: relative; height: auto; padding: 96px 0; }
	.mt-hscroll__viewport { overflow-x: auto; scroll-snap-type: x mandatory; }
	.mt-hscroll__track { transform: none !important; padding-bottom: 12px; }
	.mt-hscroll__item { scroll-snap-align: start; }
	.mt-hscroll__meter { display: none; }
}

/* ---------- Print ---------- */
@media print {
	.mt-header, .mt-footer, .mt-article__share, .mt-article__side, .mt-related, .mt-prevnext, .mt-search, .mt-drawer { display: none !important; }
	.mt-arthero { min-height: 0 !important; color: #000 !important; background: none !important; padding-top: 0; }
	.mt-arthero__media, .mt-arthero::after { display: none; }
	.mt-arthero__title { color: #000 !important; }
}

/* =========================================================================
   Illustrated headers, handwritten notes, scribbles and easter eggs
   ========================================================================= */
:root { --hand: "Hand", "Segoe Print", "Bradley Hand", "Comic Sans MS", cursive; --cone: #ff6a13; }

/* Rotating greeting above the hero title */
.mt-hello { font-family: var(--hand); font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.6rem); color: #ffd36b; margin: 0 0 0.1em; line-height: 1; display: inline-flex; align-items: center; transform: rotate(-3deg); transform-origin: 0 50%; min-height: 1.1em; }
.mt-hello__caret { display: inline-block; width: 2px; height: 0.9em; background: currentColor; margin-inline-start: 4px; animation: mt-caret 1s steps(1) infinite; }
@keyframes mt-caret { 50% { opacity: 0; } }

/* Handwritten notes with self-drawing arrows */
.mt-note { position: relative; display: inline-flex; align-items: flex-end; gap: 4px; font-family: var(--hand); font-weight: 600; font-size: clamp(1.15rem, 1rem + 0.5vw, 1.5rem); line-height: 1; color: #ffd36b; pointer-events: none; }
.mt-note__text { transform: rotate(-4deg); white-space: nowrap; opacity: 0; transition: opacity 0.6s var(--ease) 0.5s; }
.is-drawn .mt-note__text, .mt-note.is-drawn .mt-note__text, .no-js .mt-note__text { opacity: 1; }
.mt-note__arrow { width: 40px; height: 40px; flex: none; }
.mt-note--down { flex-direction: row; }
.mt-note--left { flex-direction: row-reverse; }
[dir="rtl"] .mt-note--left, [dir="rtl"] .mt-note--right { flex-direction: row; }
[dir="rtl"] .mt-note__arrow { transform: scaleX(-1); }
.mt-hero__search { position: relative; max-width: 600px; }
.mt-note--hero { position: absolute; inset-inline-end: -8px; bottom: calc(100% + 2px); }
@media (max-width: 700px) { .mt-note--hero { display: none; } }
.mt-note--tile { position: absolute; z-index: 2; top: 18px; inset-inline-end: 18px; flex-direction: column-reverse; align-items: center; }
.mt-note--tile .mt-note__arrow { width: 30px; height: 30px; transform: rotate(10deg); }
.mt-tile--1 .mt-note--tile, .mt-tile--2 .mt-note--tile { font-size: 1.05rem; top: 12px; inset-inline-end: 12px; }
.mt-note--head { margin-top: 10px; color: #ffd36b; }
.mt-pagehead:not(.mt-pagehead--art) .mt-note--head { color: var(--red); }
.mt-note--numbers { color: var(--red); margin-bottom: 18px; }
.mt-note--numbers .mt-note__arrow { transform: rotate(-10deg); }
.mt-note--art { position: absolute; bottom: 18px; inset-inline-start: 18px; z-index: 2; }
.mt-note--404 { color: var(--cone); margin-bottom: 8px; }
.mt-scribble { display: block; width: min(260px, 60%); height: 16px; margin: -0.2em 0 0.6em; color: #ffd36b; }
.mt-pagehead:not(.mt-pagehead--art) .mt-scribble, .mt-hubhero:not(.mt-hubhero--image) .mt-scribble { color: var(--red); }

/* Illustrated page headers */
.mt-pagehead--art { position: relative; background: #06101f; color: #fff; min-height: min(70vh, 620px); display: flex; align-items: flex-end; overflow: hidden; }
.mt-pagehead__media { position: absolute; inset: 0; margin: 0; }
.mt-pagehead__media img { width: 100%; height: 118%; object-fit: cover; transform: translateY(var(--py, 0px)); }
.mt-pagehead--art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 16, 31, 0.55), rgba(6, 16, 31, 0.25) 35%, rgba(6, 16, 31, 0.9)); }
.mt-pagehead__inner { position: relative; z-index: 2; width: 100%; }
.mt-pagehead--art .mt-pagehead__title, .mt-pagehead--art .mt-pagehead__lede { color: #fff; }
.mt-pagehead--art .mt-pagehead__lede { color: rgba(255, 255, 255, 0.9); }
.mt-pagehead--art .mt-crumbs ol { color: rgba(255, 255, 255, 0.78); }
.mt-pagehead--art .mt-az__letters a { background: rgba(255, 255, 255, 0.14); color: #fff; }
.mt-pagehead--art .mt-az__letters a:hover { background: #fff; color: #0b1f3a; }
.mt-pagehead--art .mt-filterbar__count { color: rgba(255, 255, 255, 0.8); }
.mt-pagehead--art .mt-filterbar__search { background: #fff; color: #0b1f3a; }
.mt-pagehead--art .mt-filterbar__search input { color: #0b1f3a; }

/* Art in homepage sections */
.mt-people__art { position: relative; margin: 0 0 32px; border-radius: var(--r-l); overflow: hidden; aspect-ratio: 16 / 10; }
.mt-people__art img { width: 100%; height: 115%; object-fit: cover; transform: translateY(var(--py, 0px)); }
.mt-people__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(6, 16, 31, 0.6)); }
.mt-games-strip.has-art, .mt-giving.has-art { position: relative; overflow: hidden; color: #fff; }
.mt-games-strip.has-art { background: #06101f; }
.mt-games-strip__art, .mt-giving__art { position: absolute; inset: 0; margin: 0; }
.mt-games-strip__art img, .mt-giving__art img { width: 100%; height: 120%; object-fit: cover; transform: translateY(var(--py, 0px)); }
.mt-games-strip.has-art::before, .mt-giving.has-art::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(6, 16, 31, 0.92), rgba(6, 16, 31, 0.6)); }
.mt-games-strip.has-art > .mt-wrap, .mt-giving.has-art > .mt-wrap { position: relative; z-index: 2; }
.mt-games-strip.has-art .mt-h2 { color: #fff; }
.mt-games-strip.has-art .mt-btn--ghost { color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.mt-games-strip.has-art .mt-game { background: rgba(255, 255, 255, 0.1); color: #fff; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.mt-games-strip.has-art .mt-game:hover { background: rgba(255, 255, 255, 0.2); }
.mt-games-strip.has-art .mt-game__icon { background: rgba(255, 255, 255, 0.92); }

/* 404 with the cone */
.mt-404.has-art { position: relative; overflow: hidden; background: #06101f; color: #fff; }
.mt-404__art { position: absolute; inset: 0; margin: 0; }
.mt-404__art img { width: 100%; height: 100%; object-fit: cover; }
.mt-404.has-art::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(6, 16, 31, 0.9), rgba(6, 16, 31, 0.35)); }
.mt-404.has-art .mt-404__inner { position: relative; z-index: 2; }
.mt-404.has-art .mt-pagehead__title, .mt-404.has-art .mt-404__lede { color: #fff; }
.mt-404.has-art .mt-404__code { color: var(--cone); }
.mt-404.has-art .mt-chips a { background: rgba(255, 255, 255, 0.14); color: #fff; }
.mt-404__hint { margin-top: 28px; font-family: var(--hand); font-size: 1.4rem; color: #ffd36b; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* Cone hunt */
.mt-cone { display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; opacity: 0.85; transition: transform 0.3s var(--ease), opacity 0.3s; vertical-align: middle; }
.mt-cone:hover { transform: rotate(-12deg) scale(1.15); opacity: 1; }
.mt-cone.is-found { opacity: 0.35; }
.mt-pagehead__inner > .mt-cone { position: absolute; inset-inline-end: var(--gutter); bottom: 6px; }
.mt-badge { display: inline-flex; align-items: center; gap: 6px; margin-inline-start: 12px; padding: 2px 10px; border-radius: 999px; background: var(--cone); color: #1a0800; font-weight: 700; font-size: 0.8rem; }
.mt-badge[hidden] { display: none; }

/* Toasts */
.mt-toast { position: fixed; z-index: 300; inset-inline: 0; bottom: max(20px, env(safe-area-inset-bottom, 0px)); margin: 0 auto; width: max-content; max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: 999px; background: #0b1f3a; color: #fff; font-weight: 600; box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.45); display: flex; align-items: center; gap: 10px; animation: mt-toast-in 0.4s var(--ease-out); }
.mt-toast .mt-hand { font-family: var(--hand); font-size: 1.35rem; color: #ffd36b; }
@keyframes mt-toast-in { from { opacity: 0; transform: translateY(16px); } }

/* Snow, plow, cone shower */
.mt-snow { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.mt-fx { position: fixed; inset: 0; z-index: 250; pointer-events: none; width: 100vw; height: 100vh; }
.mt-plow { position: fixed; z-index: 260; bottom: 10px; inset-inline-start: -260px; width: 240px; pointer-events: none; animation: mt-plow 7s linear forwards; }
@keyframes mt-plow { to { transform: translateX(calc(100vw + 300px)); } }
[dir="rtl"] .mt-plow { animation-name: mt-plow-rtl; transform: scaleX(-1); }
@keyframes mt-plow-rtl { to { transform: scaleX(-1) translateX(calc(100vw + 300px)); } }

/* Moving day banner */
.mt-moving { position: relative; z-index: 101; margin-top: var(--header-h); background: var(--cone); color: #1a0800; padding: 10px var(--gutter); display: flex; justify-content: center; align-items: center; gap: 12px; font-weight: 650; text-align: center; }
.mt-moving button { border: 0; background: rgba(0, 0, 0, 0.12); border-radius: 999px; width: 30px; height: 30px; cursor: pointer; color: inherit; }
body:has(.mt-moving) .mt-main > :first-child { margin-top: 0; }

/* Logo light easter egg */
.mt-light-on .mt-mark circle { filter: drop-shadow(0 0 6px #ff3b4e) drop-shadow(0 0 14px #ff3b4e); animation: mt-glow 2.4s ease-in-out infinite; }
@keyframes mt-glow { 50% { opacity: 0.6; } }
.mt-footer__ai { opacity: 0.6; font-size: 0.82rem; flex-basis: 100%; order: 3; }

@media (prefers-reduced-motion: reduce) {
	.mt-hello__caret, .mt-light-on .mt-mark circle { animation: none !important; }
	.mt-note__text { opacity: 1 !important; }
	.mt-snow, .mt-plow { display: none !important; }
	.mt-pagehead__media img, .mt-people__art img, .mt-games-strip__art img, .mt-giving__art img { transform: none !important; }
}
