/*
 * Jordan Festival — global styles (all pages).
 * Values follow Sources and Docs/homepage-design-v3.html.
 */

/* Fonts (self-hosted, latin + latin-ext + arabic subsets) ---------------- */
@font-face { font-family: "Titillium Web"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/titillium-web-400-0100.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Titillium Web"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/titillium-web-400-0000.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Titillium Web"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/titillium-web-600-0100.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Titillium Web"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/titillium-web-600-0000.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Titillium Web"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/titillium-web-700-0100.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Titillium Web"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/titillium-web-700-0000.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-condensed-600-0000.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/barlow-condensed-700-0000.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Tajawal"; font-style: normal; font-weight: 400 500; font-display: swap; src: url("../fonts/tajawal-400.woff2") format("woff2"); }
@font-face { font-family: "Tajawal"; font-style: normal; font-weight: 600 800; font-display: swap; src: url("../fonts/tajawal-700.woff2") format("woff2"); }

/* Tokens -------------------------------------------------------------- */
:root {
	--jf-navy: #0D1E41;
	--jf-red: #DA1F26;
	--jf-red-dark: #B5161C;
	--jf-ink-2: #3D4760;
	--jf-muted: #6B7385;
	--jf-line: #DCD4C7;
	--jf-sand: #F6F2EB;
	--jf-stone: #CFC6B8;
	--jf-white: #fff;
	--jf-font: "Titillium Web", system-ui, sans-serif;
	--jf-display: "Barlow Condensed", "Titillium Web", sans-serif;
	--jf-serif: "Playfair Display", Georgia, "Times New Roman", serif;
	--jf-arabic: "Tajawal", "Segoe UI", Tahoma, sans-serif;
	--jf-gutter: 56px;
	--jf-header-h: 76px;
}

/* Reset --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--jf-header-h) + 16px); }
html, body { margin: 0; padding: 0; background: #fff; }
body {
	font-family: var(--jf-font);
	font-size: 16px;
	line-height: 1.5;
	color: var(--jf-navy);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: clip;
}
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; }
ul[class], ol[class] { list-style: none; }
button { font-family: inherit; font-size: inherit; }
a { color: var(--jf-navy); text-decoration: none; transition: color .2s; white-space: nowrap; }
a:hover { color: var(--jf-red); }
a h2, a h3, a p, a div, a span:not(.jf-arrow) { white-space: normal; }
:focus-visible { outline: 2px solid var(--jf-red); outline-offset: 3px; }
/* The skip link moves focus to <main tabindex="-1">; the whole page needs no ring. */
#main:focus, #main:focus-visible { outline: none; }
::selection { background: var(--jf-red); color: #fff; }

/* Arabic / RTL: Tajawal, no uppercase or tracking, mirrored arrows ----- */
:lang(ar), [dir="rtl"] body { font-family: var(--jf-arabic); }
[dir="rtl"] * { letter-spacing: 0 !important; text-transform: none !important; }
[dir="rtl"] .jf-arrow { display: inline-block; transform: scaleX(-1); }

/* Utilities ------------------------------------------------------------ */
.container { max-width: 1280px; margin: 0 auto; padding: 0 var(--jf-gutter); }
.container--narrow { max-width: calc(800px + 2 * var(--jf-gutter)); }
.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto; margin: 0;
	inset-inline-start: 12px; top: 12px;
	z-index: 100;
	padding: 12px 18px;
	background: var(--jf-navy); color: #fff;
	font-weight: 700;
}
.diamond {
	display: inline-block;
	flex-shrink: 0;
	width: 8px; height: 8px;
	background: var(--jf-red);
	transform: rotate(45deg);
}
.jf-arrow { display: inline-block; }

/* Buttons & links ------------------------------------------------------ */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 50px;
	padding: 0 26px;
	border: 0;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: .03em;
	cursor: pointer;
	transition: background-color .2s, color .2s;
}
.btn--red { background: var(--jf-red); color: #fff; }
.btn--red:hover { background: var(--jf-red-dark); color: #fff; }
.btn--white { background: #fff; color: var(--jf-navy); padding: 0 24px; letter-spacing: 0; }
.btn--white:hover { background: var(--jf-sand); color: var(--jf-navy); }
.btn--block { display: flex; width: 100%; }

.link-underline {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
	font-size: 15px;
	font-weight: 700;
	border-bottom: 2px solid var(--jf-red);
	padding-bottom: 4px;
}
.link-red {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 15px;
	font-weight: 700;
	color: var(--jf-red);
}
.link-red:hover { color: var(--jf-navy); }

.kicker {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
}
.kicker--red { color: var(--jf-red); }
.kicker a { color: inherit; }
.kicker a:hover { color: var(--jf-navy); }

/* Section scaffolding -------------------------------------------------- */
.section { padding: 88px 0; }
.section--tight { padding: 64px 0 88px; }
.section--sand { background: var(--jf-sand); }
.section-title {
	font-size: clamp(30px, 2.7vw, 38px);
	font-weight: 700;
	line-height: 1.12;
	color: var(--jf-navy);
	text-wrap: pretty;
}
.section-title--sm { font-size: clamp(24px, 2.2vw, 30px); margin-bottom: 28px; }
.section-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 32px;
	margin-bottom: 36px;
}
.section-head__sub { margin-top: 12px; font-size: 17px; color: var(--jf-ink-2); }
.empty-state {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 16px;
	padding: 32px;
	background: var(--jf-sand);
	color: var(--jf-ink-2);
	font-size: 17px;
}

/* Header --------------------------------------------------------------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: #fff;
	border-top: 3px solid var(--jf-red);
	box-shadow: 0 1px 0 #ECE7DF;
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }
.site-header__inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 var(--jf-gutter);
	height: var(--jf-header-h);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
}
.site-header__brand { display: flex; align-items: center; flex-shrink: 0; }
/* The official lockup (emblem + wordmark), one SVG, never cropped. */
.site-header__logo { display: block; height: 56px; width: auto; max-width: none; }

.site-nav__list {
	display: flex;
	align-items: center;
	gap: clamp(20px, 2.3vw, 36px);
	white-space: nowrap;
	font-size: 16px;
	font-weight: 600;
	letter-spacing: .01em;
	line-height: 1;
}
.site-nav__list a { display: inline-flex; align-items: center; min-height: 44px; }
[dir="rtl"] .site-nav__list { font-size: 17px; font-weight: 700; }
.site-nav__list .current-menu-item > a,
.site-nav__list a[aria-current="page"] { color: var(--jf-red); }

.site-header__actions { display: flex; align-items: center; gap: 18px; flex-shrink: 0; white-space: nowrap; }
.site-header__cta {
	display: inline-flex;
	align-items: center;
	height: 44px;
	padding: 0 22px;
	background: var(--jf-red);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .04em;
	border-radius: 9999px;
	transition: background-color .2s, color .2s;
}
.site-header__cta:hover { background: var(--jf-red-dark); color: #fff; }
[dir="rtl"] .site-header__cta { font-size: 15px; }
.site-header__toggle { display: none; }

/* Language switcher */
.jf-lang { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; }
.jf-lang__item { color: var(--jf-navy); }
a.jf-lang__item { color: #5B6475; }
a.jf-lang__item:hover { color: var(--jf-red); }
.jf-lang__item--ar { font-family: var(--jf-arabic); font-weight: 500; font-size: 16px; }
.jf-lang__sep { width: 1px; height: 14px; background: #CFC8BC; }
/* Header: compact outlined pill, current language in brand red. */
.jf-lang--header {
	gap: 0;
	height: 36px;
	padding: 0 4px;
	border: 1px solid #D9D2C6;
	border-radius: 999px;
	line-height: 1;
	transition: border-color .2s;
}
.jf-lang--header:hover,
.jf-lang--header:focus-within { border-color: #B9B0A2; }
.jf-lang--header .jf-lang__item { display: inline-flex; align-items: center; height: 34px; padding: 0 10px; border-radius: 999px; }
.jf-lang--header .jf-lang__item.is-current { color: var(--jf-red); }
.jf-lang--header a.jf-lang__item { color: var(--jf-navy); }
.jf-lang--header a.jf-lang__item:hover { color: var(--jf-red); }
.jf-lang--header a.jf-lang__item:focus-visible { outline-offset: 0; }
.jf-lang--header .jf-lang__item--ar { font-weight: 700; padding-bottom: 2px; }
.jf-lang--header .jf-lang__sep { height: 14px; background: #D9D2C6; }
.jf-lang--footer .jf-lang__item { color: #fff; }
.jf-lang--footer a.jf-lang__item { color: #C9D0DF; }
.jf-lang--footer a.jf-lang__item:hover { color: #fff; }
.jf-lang--footer .jf-lang__sep { background: rgba(255, 255, 255, .3); }

@media (max-width: 1180px) {
	.site-header__cta { display: none; }
}
@media (max-width: 980px) {
	.site-header__toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 44px;
		height: 44px;
		margin-inline-end: -10px;
		padding: 0;
		background: none;
		border: 0;
		color: var(--jf-navy);
		cursor: pointer;
	}
	.site-header__toggle-bars,
	.site-header__toggle-bars::before,
	.site-header__toggle-bars::after {
		display: block;
		width: 22px;
		height: 2px;
		background: currentColor;
		transition: transform .25s, background-color .25s;
	}
	.site-header__toggle-bars { position: relative; }
	.site-header__toggle-bars::before,
	.site-header__toggle-bars::after { content: ""; position: absolute; inset-inline-start: 0; }
	.site-header__toggle-bars::before { top: -7px; }
	.site-header__toggle-bars::after { top: 7px; }
	.site-header__toggle[aria-expanded="true"] .site-header__toggle-bars { background: transparent; }
	.site-header__toggle[aria-expanded="true"] .site-header__toggle-bars::before { transform: translateY(7px) rotate(45deg); }
	.site-header__toggle[aria-expanded="true"] .site-header__toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

	/* Without JS the nav stays visible and scrolls horizontally. */
	.site-nav { flex: 1; min-width: 0; overflow-x: auto; }
	.js .site-nav {
		position: absolute;
		top: 100%;
		inset-inline: 0;
		overflow: visible;
		background: #fff;
		box-shadow: 0 12px 24px rgba(13, 30, 65, .12);
		border-top: 1px solid #ECE7DF;
		display: none;
	}
	.js .site-nav.is-open { display: block; }
	.js .site-nav__list {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 8px var(--jf-gutter) 20px;
		font-size: 17px;
	}
	.js .site-nav__list a { display: block; padding: 12px 0; border-bottom: 1px solid #ECE7DF; }
	.js .site-nav__list li:last-child a { border-bottom: 0; }
}

/* Pattern band --------------------------------------------------------- */
.pattern-band { height: 34px; background: #fff; overflow: hidden; }

/* Page header (inner pages) -------------------------------------------- */
.page-header { padding: 72px 0 0; }
.page-header .kicker { margin-bottom: 16px; }
.page-header__title {
	font-family: var(--jf-display);
	font-weight: 700;
	font-size: clamp(44px, 5.4vw, 72px);
	line-height: .95;
	text-transform: uppercase;
	text-wrap: balance;
}
[dir="rtl"] .page-header__title { font-family: var(--jf-arabic); line-height: 1.2; }
.page-header__sub { margin-top: 18px; max-width: 620px; font-size: 18px; line-height: 1.6; color: var(--jf-ink-2); }
.page-header--story .page-header__title { font-size: clamp(36px, 4.2vw, 56px); text-transform: none; font-family: var(--jf-font); line-height: 1.1; }
.story__meta { margin-top: 16px; color: var(--jf-muted); font-size: 15px; }

/* Entry content -------------------------------------------------------- */
.entry-media { margin-bottom: 40px; }
.entry-media img { width: 100%; }
.entry-content { font-size: 18px; line-height: 1.75; color: var(--jf-ink-2); }
.entry-content > * + * { margin-top: 1.1em; }
.entry-content h2, .entry-content h3, .entry-content h4 { color: var(--jf-navy); line-height: 1.25; margin-top: 1.8em; }
.entry-content h2 { font-size: 28px; }
.entry-content h3 { font-size: 22px; }
.entry-content a { color: var(--jf-red); text-decoration: underline; text-underline-offset: 3px; white-space: normal; }
.entry-content a:hover { color: var(--jf-navy); }
.entry-content ul, .entry-content ol { padding-inline-start: 1.4em; }
.entry-content li + li { margin-top: .4em; }
.entry-content blockquote { border-inline-start: 3px solid var(--jf-red); padding-inline-start: 20px; color: var(--jf-navy); font-size: 20px; }
.entry-content img { margin: 0 auto; }
.entry-content figcaption { margin-top: 8px; font-size: 14px; color: var(--jf-muted); }
.entry-content iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; }
.entry-content .alignleft { float: left; margin: 0 24px 16px 0; }
.entry-content .alignright { float: right; margin: 0 0 16px 24px; }
.entry-content .aligncenter { margin-inline: auto; }
.contact-email { margin-top: 32px; font-size: 20px; font-weight: 700; }
.contact-email a { color: var(--jf-red); }
.story__back { margin-top: 56px; }

/* Story grid & cards --------------------------------------------------- */
.story-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 32px; }
.story-card__link { display: flex; flex-direction: column; color: var(--jf-navy); }
.story-card__media {
	position: relative;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	background: #DDD2C1;
	display: flex;
	align-items: center;
	justify-content: center;
}
.story-card__media img:not(.story-card__emblem) { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.story-card__link:hover .story-card__media img:not(.story-card__emblem) { transform: scale(1.03); }
.story-card__emblem { width: 63px; height: auto; opacity: .55; }
.story-card__cat {
	margin-top: 18px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .1em;
	color: var(--jf-red);
	text-transform: uppercase;
}
.story-card__title { margin-top: 6px; font-size: 20px; font-weight: 700; line-height: 1.3; text-wrap: pretty; }
.story-card__cat + .story-card__title { margin-top: 6px; }
.story-card__media + .story-card__title { margin-top: 18px; }
.story-card__link:hover .story-card__title { color: var(--jf-red); }

/* Festival feature card (homepage + festivals archive) ----------------- */
.festival-feature {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	background: var(--jf-navy);
	color: #fff;
}
.festival-feature__media {
	position: relative;
	min-height: 380px;
	background: #2B3140;
	overflow: hidden;
}
.festival-feature__media > img:not(.festival-feature__emblem) { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.festival-feature--no-image .festival-feature__media {
	display: flex;
	align-items: center;
	justify-content: center;
	background:
		repeating-linear-gradient(45deg, rgba(255, 255, 255, .035) 0 12px, transparent 12px 24px),
		#16284F;
}
.festival-feature__emblem { width: 76px; height: auto; opacity: .55; }
.festival-feature__body {
	padding: clamp(32px, 4.5vw, 56px) clamp(28px, 4vw, 52px);
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.festival-feature .kicker { color: #fff; }
.festival-feature__title {
	margin-top: 18px;
	font-family: var(--jf-display);
	font-weight: 700;
	font-size: 40px;
	line-height: .95;
	text-transform: uppercase;
	color: #fff;
}
[dir="rtl"] .festival-feature__title { font-family: var(--jf-arabic); font-size: 34px; line-height: 1.2; }
.festival-feature__facts {
	margin-top: 28px;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 12px 28px;
	font-size: 16px;
	border-top: 1px solid rgba(255, 255, 255, .18);
	padding-top: 24px;
}
.festival-feature__facts dt { color: #B9C2D6; }
.festival-feature__facts dd { color: #fff; }
.festival-feature__text { margin-top: 24px; font-size: 16px; line-height: 1.65; color: #fff; text-wrap: pretty; }
.festival-feature__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 36px; }
.festival-feature__contact { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-size: 15px; font-weight: 700; }
.festival-feature__contact:hover { color: #fff; text-decoration: underline; text-underline-offset: 6px; }

/* Festival cards (archive) --------------------------------------------- */
.festival-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 32px; }
.festival-feature + .festival-grid { margin-top: 48px; }
.festival-card__link { display: flex; flex-direction: column; color: var(--jf-navy); }
.festival-card__media {
	aspect-ratio: 3 / 2;
	overflow: hidden;
	background: #2B3140;
	display: flex;
	align-items: center;
	justify-content: center;
}
.festival-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.festival-card__media--empty { background: var(--jf-navy); }
.festival-card__media--empty img { width: 63px; height: auto; opacity: .5; }
.festival-card__link:hover .festival-card__media img { transform: scale(1.03); }
.festival-card__media--empty img, .festival-card__link:hover .festival-card__media--empty img { transform: none; }
.festival-card__date { margin-top: 18px; font-size: 13px; font-weight: 700; letter-spacing: .1em; color: var(--jf-red); text-transform: uppercase; }
.festival-card__title { margin-top: 6px; font-family: var(--jf-display); font-size: 30px; line-height: 1; text-transform: uppercase; }
[dir="rtl"] .festival-card__title { font-family: var(--jf-arabic); font-size: 24px; line-height: 1.3; }
.festival-card__location { margin-top: 8px; color: var(--jf-ink-2); }
.festival-card__link:hover .festival-card__title { color: var(--jf-red); }
.festival-card__tickets { margin-top: 12px; }

/* Pagination ----------------------------------------------------------- */
.pagination { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--jf-line); }
.pagination .nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; font-weight: 700; }
.pagination .page-numbers { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.pagination .current { color: var(--jf-red); }
.pagination .next { margin-inline-start: auto; }

/* Footer --------------------------------------------------------------- */
/*
 * Navy, after the keffiyeh band: brand (stacked logo, short description,
 * social icons) | Explore | newsletter, then a quiet legal row. White
 * type, warm light secondary text, red only as the accent.
 */
.site-footer {
	--ft-text: rgba(246, 242, 235, .74);
	--ft-soft: rgba(246, 242, 235, .58);
	--ft-rule: rgba(246, 242, 235, .14);
	background: var(--jf-navy);
	color: #fff;
	padding: 72px 0 28px;
}
.site-footer :focus-visible { outline-color: #fff; }
.site-footer__main {
	display: grid;
	grid-template-columns: minmax(0, 4.6fr) minmax(0, 2.4fr) minmax(0, 4.4fr);
	gap: 48px clamp(48px, 6vw, 96px);
	align-items: start;
}

/* Brand. */
.site-footer__logo { display: inline-block; }
.site-footer__logo img { display: block; width: 172px; height: auto; }
.site-footer__desc {
	margin-top: 28px;
	max-width: 27em;
	font-size: 15px;
	line-height: 1.7;
	color: var(--ft-text);
	text-wrap: pretty;
}
.site-footer__social { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.site-footer__social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border: 1px solid rgba(246, 242, 235, .3);
	border-radius: 50%;
	color: #fff;
	transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.site-footer__social-link .jf-icon { width: 19px; height: 19px; }
a.site-footer__social-link:hover { background: var(--jf-red); border-color: var(--jf-red); color: #fff; }
a.site-footer__social-link:focus-visible { outline-offset: 3px; }
.site-footer__social-link.is-unset { opacity: .45; cursor: default; }

/* Column headings. */
.site-footer__heading {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 22px;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.5;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: #fff;
}
.site-footer__heading::before {
	content: "";
	width: 7px;
	height: 7px;
	flex-shrink: 0;
	background: var(--jf-red);
	transform: rotate(45deg);
}

/* Explore. */
.site-footer__links { display: flex; flex-direction: column; gap: 14px; }
.site-footer__links a {
	display: inline-block;
	padding-block: 1px;
	font-size: 16px;
	color: var(--ft-text);
	transition: color .2s ease, transform .2s ease;
}
.site-footer__links a:hover,
.site-footer__links .current-menu-item > a { color: #fff; }
.site-footer__links a:hover { transform: translateX(3px); }
[dir="rtl"] .site-footer__links a:hover { transform: translateX(-3px); }

/* Newsletter. */
.site-footer__nl-text { max-width: 30em; font-size: 15px; line-height: 1.7; color: var(--ft-text); }
.nl-form { margin-top: 20px; max-width: 440px; }
.nl-form__field {
	display: flex;
	height: 54px;
	background: rgba(246, 242, 235, .06);
	border: 1px solid rgba(246, 242, 235, .3);
	transition: border-color .2s ease, background-color .2s ease;
}
.nl-form__field:focus-within { border-color: #fff; background: rgba(246, 242, 235, .1); }
.nl-form.is-error .nl-form__field { border-color: #FF8A8A; }
.nl-form__input {
	flex: 1;
	min-width: 0;
	padding: 0 18px;
	background: transparent;
	border: 0;
	border-radius: 0;
	font: inherit;
	font-size: 16px;
	color: #fff;
	text-align: start;
}
.nl-form__input::placeholder { color: var(--ft-soft); opacity: 1; }
.nl-form__input:focus { outline: none; } /* the field's border carries the focus */
.nl-form__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 54px;
	margin: -1px;
	margin-inline-start: 0;
	background: var(--jf-red);
	border: 0;
	color: #fff;
	cursor: pointer;
	transition: background-color .2s ease;
}
.nl-form__submit:hover { background: var(--jf-red-dark, #B5161C); }
.nl-form__submit:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.nl-form__arrow { transition: transform .2s ease; }
.nl-form__submit:hover .nl-form__arrow { transform: translateX(2px); }
[dir="rtl"] .nl-form__arrow { transform: scaleX(-1); }
[dir="rtl"] .nl-form__submit:hover .nl-form__arrow { transform: scaleX(-1) translateX(2px); }
.nl-form.is-sending .nl-form__submit { cursor: progress; opacity: .75; }
.nl-form__msg:empty { display: none; }
.nl-form__msg {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-top: 12px;
	font-size: 14px;
	line-height: 1.55;
	color: #fff;
}
.nl-form__msg::before {
	content: "";
	width: 6px;
	height: 6px;
	margin-top: .55em;
	flex-shrink: 0;
	background: var(--jf-red);
	transform: rotate(45deg);
}
.nl-form.is-error .nl-form__msg { color: #FFB3B3; }
.nl-form.is-error .nl-form__msg::before { background: #FF8A8A; }
.jf-hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.site-footer__note {
	margin-top: 14px;
	max-width: 440px;
	font-size: 13px;
	line-height: 1.6;
	color: var(--ft-soft);
}
.site-footer__note a {
	white-space: normal;
	color: var(--ft-text);
	text-decoration: underline;
	text-decoration-color: rgba(246, 242, 235, .35);
	text-underline-offset: 3px;
}
.site-footer__note a:hover { color: #fff; text-decoration-color: currentColor; }

/* Partner logos (optional; only when logos are chosen in Site Content). */
.site-footer__partners {
	display: flex;
	align-items: center;
	gap: 48px;
	margin-top: 56px;
	padding-top: 28px;
	border-top: 1px solid var(--ft-rule);
}
.site-footer__partners-heading { margin: 0; flex-shrink: 0; }
.site-footer__logos { flex: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 24px 40px; }
.site-footer__logos img { max-height: 56px; width: auto; }

/* Legal row. */
.site-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 32px;
	margin-top: 64px;
	padding-top: 24px;
	border-top: 1px solid var(--ft-rule);
	font-size: 14px;
	color: var(--ft-soft);
}
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.site-footer__legal a { color: var(--ft-soft); }
.site-footer__legal a:hover { color: #fff; }

/* Arabic: Tajawal, no tracking or capitals, a little larger. */
[dir="rtl"] .site-footer__heading { font-size: 16px; }
[dir="rtl"] .site-footer__desc,
[dir="rtl"] .site-footer__nl-text { font-size: 16px; line-height: 1.85; }
[dir="rtl"] .site-footer__links a { font-size: 17px; }
[dir="rtl"] .site-footer__note { font-size: 14px; line-height: 1.75; }
[dir="rtl"] .nl-form__msg { font-size: 15px; }
[dir="rtl"] .site-footer__bottom { font-size: 15px; }

@media (max-width: 1100px) {
	/* Tablet: the brand runs across the top (logo beside its text), Explore and the newsletter share the row beneath. */
	.site-footer { padding-top: 64px; }
	.site-footer__main { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 48px 56px; }
	.site-footer__brand {
		grid-column: 1 / -1;
		display: grid;
		grid-template-columns: auto minmax(0, 1fr);
		align-items: center;
		column-gap: 40px;
		padding-bottom: 40px;
		border-bottom: 1px solid var(--ft-rule);
	}
	.site-footer__logo { grid-row: span 2; }
	.site-footer__logo img { width: 136px; }
	.site-footer__desc { margin-top: 0; align-self: end; max-width: 34em; }
	.site-footer__social { align-self: start; margin-top: 20px; }
	.site-footer__bottom { margin-top: 56px; }
}
@media (max-width: 640px) {
	/* Mobile: brand and socials, Explore, newsletter, then the legal row. */
	.site-footer { padding: 48px 0 24px; }
	.site-footer__main { grid-template-columns: minmax(0, 1fr); gap: 40px; }
	.site-footer__brand { display: block; padding-bottom: 0; border-bottom: 0; }
	.site-footer__logo img { width: 128px; }
	.site-footer__desc { margin-top: 22px; }
	.site-footer__social { margin-top: 22px; }
	.site-footer__social-link { width: 44px; height: 44px; }
	.site-footer__heading { margin-bottom: 16px; }
	.site-footer__links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 24px; }
	.site-footer__links a { padding-block: 9px; }
	.nl-form { max-width: none; }
	.site-footer__note { max-width: none; }
	.site-footer__partners { flex-direction: column; align-items: flex-start; gap: 16px; margin-top: 40px; }
	.site-footer__bottom { flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 40px; padding-top: 20px; }
	.site-footer__legal a { display: inline-block; padding-block: 4px; }
}
@media (prefers-reduced-motion: reduce) {
	.site-footer__links a,
	.nl-form__arrow { transition: none; }
	.site-footer__links a:hover,
	[dir="rtl"] .site-footer__links a:hover,
	.nl-form__submit:hover .nl-form__arrow { transform: none; }
	[dir="rtl"] .nl-form__submit:hover .nl-form__arrow { transform: scaleX(-1); }
}

/* Responsive ----------------------------------------------------------- */
@media (max-width: 980px) {
	:root { --jf-gutter: 32px; }
	.festival-feature { grid-template-columns: minmax(0, 1fr); }
	.festival-feature__media { min-height: 0; aspect-ratio: 16 / 9; }
	.festival-feature--no-image .festival-feature__media { aspect-ratio: auto; min-height: 180px; }
	.story-grid, .festival-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.section { padding: 72px 0; }
}
@media (max-width: 640px) {
	:root { --jf-gutter: 20px; --jf-header-h: 64px; }
	.festival-feature__title { font-size: 34px; }
	.festival-feature__actions .btn { flex: 1 1 100%; }
	.site-header__inner { gap: 16px; }
	.site-header__logo { height: 46px; }
	.site-header__actions { gap: 12px; }
	.section { padding: 56px 0; }
	.section--tight { padding: 40px 0 56px; }
	.section-head { flex-direction: column; align-items: flex-start; gap: 16px; }
	.story-grid, .festival-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
	.page-header { padding-top: 48px; }
	.entry-content { font-size: 17px; }
}
@media (max-width: 360px) {
	.site-header__logo { height: 40px; }
}

/* Motion --------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
		scroll-behavior: auto !important;
	}
}
