/*
 * WazayefToday: the Sadu weave world (السدو). Layout, components and states.
 * No colour values here: everything is drawn from the variables in brand.css (FR-031).
 * Logical properties only (RTL first); mobile-first, one enhancement step at 48rem and one at 64rem.
 */

/* ---------------------------------------------------------------------------
 * Ground, type, browser surfaces
 * ------------------------------------------------------------------------ */
html {
	-webkit-text-size-adjust: 100%;
	scrollbar-color: var(--wz-camel) var(--wz-wool);
}
body {
	background: var(--wz-wool);
	color: var(--wz-ink);
	font-family: var(--wz-font);
	font-size: 1.0625rem;
	line-height: 1.75;
	caret-color: var(--wz-madder);
	-webkit-font-smoothing: antialiased;
	/* Short pages: the footer still sits at the bottom of the screen. */
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	min-height: 100dvh;
}
body > #page {
	flex: 1 0 auto;
}
body > .site-header,
body > .site-footer {
	flex: none;
}
body,
button,
input,
select,
textarea {
	font-family: var(--wz-font);
}
h1,
h2,
h3,
h4 {
	font-family: var(--wz-font);
	font-weight: 700;
	color: inherit;
	text-wrap: balance;
	letter-spacing: 0;
}
a {
	color: var(--wz-madder);
	text-underline-offset: 0.22em;
	text-decoration-thickness: 1px;
}
a:hover {
	color: var(--wz-madder-deep);
}
::selection {
	background: var(--wz-saffron);
	color: var(--wz-ink);
}
:focus-visible {
	outline: 3px solid var(--wz-saffron);
	outline-offset: 2px;
	border-radius: 3px;
}
time,
.wz-card__left,
.wz-ledger__num,
.wz-rail__count,
.wz-dateline,
.wz-details dd {
	font-variant-numeric: tabular-nums;
}
.skip-link.screen-reader-text:focus {
	background: var(--wz-saffron);
	color: var(--wz-ink);
	font-weight: 700;
}

/* GeneratePress shell: no boxed container, no sidebar; templates own the width. */
.site.grid-container,
.separate-containers .site-main,
.site-content,
.content-area {
	max-width: none;
	width: 100%;
	margin: 0;
	padding: 0;
	background: none;
}
.site-content {
	display: block;
}
.separate-containers .inside-article,
.one-container .site-content {
	padding: 0;
	background: none;
}

.wz-wrap {
	max-width: 72rem;
	margin-inline: auto;
	padding-inline: 16px;
}

/* GeneratePress templates we do not override (plain search, blog archive): keep them in the wrap. */
.site-main > article:not(.wz-job):not(.wz-page),
.site-main > .page-header,
.site-main > .paging-navigation,
.site-main > .no-results {
	max-width: 72rem;
	margin: 24px auto;
	padding: 24px 16px;
}

/* ---------------------------------------------------------------------------
 * The weave: a Sadu band in three registers, drawn from the brand wool colours.
 *   saffron rule, white rule / stepped madder triangles (ضروس) / white «eyes» row / white rule, saffron rule
 * The stepped shape is a mask (shape only, no colour), so every colour still comes from brand.css.
 * ------------------------------------------------------------------------ */
:root {
	--wz-step: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='10'%3E%3Cpath d='M10 0h4v2h2v2h2v2h2v2h2v2H2V8h2V6h2V4h2V2h2z'/%3E%3C/svg%3E");
}
.wz-weave {
	position: relative;
	display: block;
	height: 30px;
	background-color: var(--wz-ink);
	background-image:
		linear-gradient(var(--wz-saffron) 0 0),
		linear-gradient(var(--wz-wool) 0 0),
		linear-gradient(var(--wz-wool) 0 0),
		linear-gradient(var(--wz-saffron) 0 0);
	background-size: 100% 3px, 100% 2px, 100% 2px, 100% 3px;
	background-position: 0 0, 0 4px, 0 calc(100% - 4px), 0 100%;
	background-repeat: no-repeat;
}
.wz-weave::before,
.wz-weave::after {
	content: "";
	position: absolute;
	inset-inline: 0;
}
.wz-weave::before {
	top: 8px;
	height: 10px;
	background-color: var(--wz-madder);
	-webkit-mask: var(--wz-step) 0 0 / 24px 10px repeat-x;
	mask: var(--wz-step) 0 0 / 24px 10px repeat-x;
}
.wz-weave::after {
	top: 20px;
	height: 2px;
	background-image: linear-gradient(90deg, transparent 11px, var(--wz-wool) 11px 13px, transparent 13px);
	background-size: 24px 2px;
}
.wz-weave--thin {
	height: 10px;
	background-image: linear-gradient(var(--wz-saffron) 0 0);
	background-size: 100% 2px;
	background-position: 0 0;
	border-radius: 2px;
}
.wz-weave--thin::before {
	top: 3px;
	height: 6px;
	-webkit-mask-size: auto 6px;
	mask-size: auto 6px;
}
.wz-weave--thin::after {
	content: none;
}
.wz-weave--faded {
	filter: grayscale(1);
	opacity: 0.45;
}

/* The one authored moment: the home band is woven in from the start edge. */
@media (prefers-reduced-motion: no-preference) {
	.wz-hero + .wz-weave {
		animation: wz-weave-in 900ms cubic-bezier(0.16, 1, 0.3, 1) both;
	}
}
@keyframes wz-weave-in {
	from {
		clip-path: inset(0 0 0 100%);
	}
	to {
		clip-path: inset(0);
	}
}

/* Woven mark before the text logo. */
.main-title a::before {
	content: "";
	flex: none;
	width: 26px;
	height: 26px;
	border-radius: 3px;
	background-color: var(--wz-madder);
	background-image:
		conic-gradient(from 135deg at 50% 0, var(--wz-ink) 90deg, transparent 0),
		conic-gradient(from -45deg at 50% 100%, var(--wz-saffron) 90deg, transparent 0);
	background-size: 13px 13px;
	background-position: 0 0, 6.5px 13px;
	box-shadow: inset 0 0 0 2px var(--wz-wool);
}

/* ---------------------------------------------------------------------------
 * Header and navigation (GeneratePress markup)
 * ------------------------------------------------------------------------ */
.site-header {
	background: var(--wz-ink);
	color: var(--wz-wool-on-ink);
	border-block-end: 1px solid var(--wz-thread-dark);
}
.site-header .inside-header {
	max-width: 72rem;
	margin-inline: auto;
	padding: 10px 16px;
	min-height: 64px;
	align-items: center;
}
/* Logo at the start (right in Arabic), menu and mobile toggle at the end (left).
   GeneratePress's RTL sheet reorders nav-float-right so the menu comes first; undo that. */
.nav-float-right #site-navigation:not(.toggled) {
	order: 0;
	margin-left: 0;
	margin-right: 0;
	margin-inline-start: auto;
}
.site-header .site-branding,
.site-header .site-logo {
	order: -10;
}
@media (min-width: 769px) {
	.main-navigation .inside-navigation,
	.main-navigation .main-nav > ul {
		justify-content: flex-end;
	}
}
.mobile-menu-control-wrapper {
	margin-left: 0;
	margin-right: 0;
	margin-inline-start: auto;
}
.main-title {
	margin: 0;
	font-size: 1.375rem;
	line-height: 1.2;
	font-weight: 700;
}
.main-title a,
.main-title a:hover {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--wz-white);
	text-decoration: none;
}
.site-description {
	display: none;
}
.main-navigation,
.main-navigation ul ul,
.main-navigation .inside-navigation {
	background: transparent;
}
.main-navigation .main-nav ul li a {
	color: var(--wz-wool-on-ink);
	font-size: 0.9375rem;
	padding-inline: 12px;
	line-height: 64px;
	transition: color 150ms ease-out, box-shadow 150ms ease-out;
}
.main-navigation .main-nav ul li:not([class*="current-menu-"]):hover > a,
.main-navigation .main-nav ul li:not([class*="current-menu-"]):focus-within > a {
	color: var(--wz-white);
	background: transparent;
	box-shadow: inset 0 -3px 0 var(--wz-thread-dark);
}
.main-navigation .main-nav ul li[class*="current-menu-"] > a {
	color: var(--wz-white);
	background: transparent;
	box-shadow: inset 0 -3px 0 var(--wz-saffron);
}
.main-navigation .menu-toggle,
.mobile-menu-control-wrapper .menu-toggle {
	color: var(--wz-white);
	background: var(--wz-ink-2);
	border: 1px solid var(--wz-thread-dark);
	border-radius: 6px;
	min-height: 44px;
	padding-inline: 14px;
	font-size: 0.9375rem;
}
.main-navigation .menu-toggle:hover,
.mobile-menu-control-wrapper .menu-toggle:hover {
	background: var(--wz-ink-2);
	color: var(--wz-white);
}
.mobile-menu-control-wrapper .menu-toggle .screen-reader-text {
	position: static;
	width: auto;
	height: auto;
	clip: auto;
	clip-path: none;
	margin: 0;
	margin-inline-start: 6px;
	overflow: visible;
}
@media (max-width: 768px) {
	.main-navigation.toggled .main-nav > ul,
	.has-inline-mobile-toggle #site-navigation.toggled {
		background: var(--wz-ink-2);
	}
	.main-navigation.toggled .main-nav ul li a {
		line-height: 52px;
		padding-inline: 16px;
		border-block-start: 1px solid var(--wz-thread-dark);
	}
	.main-navigation .main-nav ul li[class*="current-menu-"] > a {
		box-shadow: none;
		color: var(--wz-saffron);
	}
}

/* ---------------------------------------------------------------------------
 * Black wool fields (home hero, page heads, job head)
 * ------------------------------------------------------------------------ */
.wz-field {
	background: var(--wz-ink);
	color: var(--wz-wool-on-ink);
	padding-block: 28px 32px;
}
.wz-field h1,
.wz-field h2 {
	color: var(--wz-white);
}
.wz-field a {
	color: var(--wz-white);
}
.wz-field a:hover {
	color: var(--wz-saffron);
}
.wz-dateline {
	margin: 0 0 12px;
	color: var(--wz-saffron);
	font-size: 0.9375rem;
	font-weight: 700;
}

/* Breadcrumbs (Rank Math markup) */
.rank-math-breadcrumb {
	margin: 0 0 14px;
	font-size: 0.875rem;
	line-height: 1.6;
	color: var(--wz-camel-soft);
}
.rank-math-breadcrumb p {
	margin: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.wz-field .rank-math-breadcrumb a {
	color: var(--wz-wool-on-ink);
	text-decoration: none;
}
.wz-field .rank-math-breadcrumb a:hover {
	color: var(--wz-saffron);
	text-decoration: underline;
}
.rank-math-breadcrumb .separator {
	margin-inline: 6px;
	color: var(--wz-camel-soft);
}

/* Home */
.wz-hero__title {
	margin: 0 0 10px;
	font-size: clamp(2.125rem, 8vw, 3.75rem);
	line-height: 1.12;
}
.wz-hero__lead {
	margin: 0 0 22px;
	max-width: 44ch;
	font-size: 1.0625rem;
	line-height: 1.7;
}
.wz-hero__lead strong {
	color: var(--wz-saffron);
	font-size: 1.25em;
}
.wz-hero__grid {
	display: grid;
	gap: 28px;
}
@media (min-width: 64rem) {
	.wz-field.wz-hero {
		padding-block: 48px 56px;
	}
	.wz-hero__grid {
		grid-template-columns: minmax(0, 1.65fr) minmax(17rem, 1fr);
		gap: 56px;
		align-items: end;
	}
}

/* Section rail: band widths follow live counts (--share = count / largest count). */
.wz-rail__title {
	margin: 0 0 8px;
	font-size: 1rem;
	color: var(--wz-white);
}
.wz-rail__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 4px;
}
.wz-rail__link {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: baseline;
	gap: 2px 12px;
	padding-block: 8px 10px;
	text-decoration: none;
	color: var(--wz-wool-on-ink);
	border-block-end: 1px solid var(--wz-thread-dark);
}
.wz-field .wz-rail__link {
	color: var(--wz-wool-on-ink);
}
.wz-rail__name {
	font-weight: 700;
	font-size: 1rem;
}
.wz-rail__count {
	color: var(--wz-saffron);
	font-weight: 700;
}
.wz-rail__band {
	grid-column: 1 / -1;
	display: block;
	height: 8px;
	width: max(14%, calc(var(--share, 1) * 100%));
	background-color: var(--wz-madder);
	-webkit-mask: var(--wz-step) 0 0 / auto 100% repeat-x;
	mask: var(--wz-step) 0 0 / auto 100% repeat-x;
	transition: background-color 150ms ease-out;
}
@media (max-width: 63.99rem) {
	/* Phones go straight from the search to the rows; sections stay in the menu. */
	.wz-hero .wz-rail {
		display: none;
	}
}
.wz-rail__link:hover .wz-rail__name,
.wz-rail__link:focus-visible .wz-rail__name {
	color: var(--wz-white);
	text-decoration: underline;
	text-underline-offset: 0.3em;
}
.wz-rail__link:hover .wz-rail__band {
	background-color: var(--wz-saffron);
}

/* Page heads */
.wz-page-title {
	margin: 0;
	font-size: clamp(1.75rem, 6vw, 2.75rem);
	line-height: 1.2;
}
.wz-page-head--poster .wz-page-title {
	font-size: clamp(2.75rem, 13vw, 6rem);
	line-height: 1.04;
}
.wz-page-head__intro {
	margin-block-start: 14px;
	max-width: 62ch;
	color: var(--wz-wool-on-ink);
}
.wz-page-head__intro p {
	margin: 0 0 0.6em;
}
.wz-page-head__intro p:last-child {
	margin-block-end: 0;
}
@media (min-width: 64rem) {
	.wz-field.wz-page-head {
		padding-block: 40px 44px;
	}
}

/* ---------------------------------------------------------------------------
 * Search and filters
 * ------------------------------------------------------------------------ */
.wz-filters {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px 10px;
	margin: 0;
}
.wz-filters p {
	margin: 0;
}
.wz-filters__field--s {
	grid-column: 1 / -1;
}
.wz-filters label {
	display: block;
	margin-block-end: 4px;
	font-size: 0.8125rem;
	font-weight: 700;
	color: var(--wz-camel);
}
.wz-filters--dark label {
	color: var(--wz-camel-soft);
}
.wz-filters input[type="search"],
.wz-filters select {
	width: 100%;
	height: 52px;
	padding-inline: 14px;
	border: 1px solid var(--wz-thread);
	border-radius: 6px;
	background-color: var(--wz-white);
	color: var(--wz-ink);
	font-size: 1rem;
	transition: border-color 150ms ease-out, box-shadow 150ms ease-out;
}
.wz-filters input[type="search"]::placeholder {
	color: var(--wz-camel);
	opacity: 1;
}
.wz-filters select {
	appearance: none;
	padding-inline-end: 38px;
	background-image:
		linear-gradient(45deg, transparent 50%, currentColor 50%),
		linear-gradient(135deg, currentColor 50%, transparent 50%);
	background-size: 6px 6px, 6px 6px;
	background-position: left 14px center, left 20px center;
	background-repeat: no-repeat;
	text-overflow: ellipsis;
}
.wz-filters input[type="search"]:hover,
.wz-filters select:hover {
	border-color: var(--wz-camel);
}
.wz-filters input[type="search"]:focus,
.wz-filters select:focus {
	border-color: var(--wz-ink);
	box-shadow: 0 0 0 3px var(--wz-saffron);
	outline: none;
}
.wz-filters--dark input[type="search"],
.wz-filters--dark select {
	background-color: var(--wz-ink-2);
	border-color: var(--wz-thread-dark);
	color: var(--wz-white);
}
.wz-filters--dark input[type="search"]::placeholder {
	color: var(--wz-camel-soft);
}
.wz-filters--dark input[type="search"]:hover,
.wz-filters--dark select:hover {
	border-color: var(--wz-camel-soft);
}
.wz-filters--dark input[type="search"]:focus,
.wz-filters--dark select:focus {
	border-color: var(--wz-saffron);
}
.wz-filters__submit {
	align-self: end;
}
.wz-filters__submit .wz-button {
	width: 100%;
	height: 52px;
}
.wz-filters--light {
	padding-block-end: 22px;
	margin-block-end: 22px;
	border-block-end: 1px solid var(--wz-thread);
}
@media (min-width: 48rem) {
	/* Keyword on its own row; the three selects and the button share the next, so labels fit. */
	.wz-filters {
		grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
	}
	.wz-filters__submit .wz-button {
		padding-inline: 28px;
	}
}
@media (min-width: 64rem) {
	.wz-hero .wz-filters {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
	}
	.wz-hero .wz-filters__field--s {
		grid-column: 1 / -1;
	}
	.wz-hero .wz-filters__field--s input {
		height: 58px;
		font-size: 1.125rem;
	}
	.wz-hero .wz-filters__submit {
		grid-column: 1 / -1;
	}
}

/* ---------------------------------------------------------------------------
 * Buttons and text links
 * ------------------------------------------------------------------------ */
.wz-button,
a.wz-button,
button.wz-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 48px;
	padding: 10px 22px;
	border: 0;
	border-radius: 6px;
	background: var(--wz-madder);
	color: var(--wz-white);
	font-size: 1.0625rem;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 150ms ease-out, transform 100ms ease-out;
}
.wz-button:hover,
.wz-button:focus-visible {
	background: var(--wz-madder-deep);
	color: var(--wz-white);
}
.wz-button:active {
	transform: translateY(1px);
}
.wz-button--ink,
a.wz-button--ink {
	background: var(--wz-ink);
}
.wz-button--ink:hover,
.wz-button--ink:focus-visible {
	background: var(--wz-ink-2);
}
.wz-icon {
	flex: none;
	width: 20px;
	height: 20px;
}
.wz-textlink {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 700;
	font-size: 0.9375rem;
	text-decoration: none;
	white-space: nowrap;
}
.wz-textlink .wz-icon {
	width: 18px;
	height: 18px;
	transition: transform 150ms ease-out;
}
.wz-textlink:hover .wz-icon {
	transform: translateX(-3px);
}

/* ---------------------------------------------------------------------------
 * Page body: list + aside
 * ------------------------------------------------------------------------ */
.wz-columns {
	display: grid;
	gap: 32px;
	padding-block: 28px 56px;
}
@media (min-width: 64rem) {
	.wz-columns {
		grid-template-columns: minmax(0, 1fr) 19rem;
		gap: 48px;
		padding-block: 40px 72px;
	}
	.wz-columns--list:not(:has(> .wz-aside)) {
		grid-template-columns: minmax(0, 1fr);
	}
}
.wz-section-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin-block-end: 12px;
}
.wz-section-head h2,
.wz-related h2 {
	margin: 0;
	font-size: 1.375rem;
	line-height: 1.3;
}
.wz-list-head {
	margin: 0 0 10px;
	font-size: 0.9375rem;
	color: var(--wz-camel);
}
.wz-more {
	margin: 18px 0 0;
}

/* ---------------------------------------------------------------------------
 * Job rows (the loom)
 * ------------------------------------------------------------------------ */
.wz-cards {
	/* A ledger on the ground: ink rule on top, thread rules between rows, no panel. */
	display: grid;
	border-block-start: 2px solid var(--wz-ink);
	border-block-end: 1px solid var(--wz-thread);
}
.wz-card {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 14px;
	padding: 16px 0;
	background-image: repeating-linear-gradient(90deg, var(--wz-thread) 0 7px, transparent 7px 11px);
	background-size: 100% 1px;
	background-position: 0 100%;
	background-repeat: no-repeat;
	transition: background-color 150ms ease-out;
}
.wz-card:last-child {
	background-image: none;
}
.wz-card:hover {
	background-color: var(--wz-white);
}
.wz-card__title {
	margin: 0 0 2px;
	font-size: 1.125rem;
	line-height: 1.45;
}
.wz-card__title a {
	color: var(--wz-ink);
	text-decoration: none;
}
.wz-card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
}
.wz-card__title a:visited {
	color: var(--wz-camel);
}
.wz-card:hover .wz-card__title a {
	color: var(--wz-madder);
}
.wz-card__title a:focus-visible {
	outline: none;
}
.wz-card:has(.wz-card__title a:focus-visible) {
	box-shadow: inset 0 0 0 3px var(--wz-saffron);
}
.wz-card__org {
	margin: 0 0 6px;
	font-size: 0.9375rem;
	font-weight: 700;
	color: var(--wz-madder);
}
.wz-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 2px 0;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 0.875rem;
	line-height: 1.6;
	color: var(--wz-camel);
}
.wz-card__meta li + li::before {
	content: "·";
	margin-inline: 8px;
	color: var(--wz-thread);
	font-weight: 700;
}
.wz-card__left {
	display: grid;
	justify-items: center;
	align-content: center;
	min-width: 4.75rem;
	min-height: 60px;
	margin: 0;
	padding-inline-start: 14px;
	border-inline-start: 1px solid var(--wz-thread);
	text-align: center;
	line-height: 1.2;
}
.wz-card__left-num {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--wz-ink);
}
.wz-card__left-label {
	font-size: 0.75rem;
	color: var(--wz-camel);
}
.wz-card__left--soon .wz-card__left-num {
	color: var(--wz-madder);
}
.wz-card__left--open .wz-card__left-label {
	max-width: 5.5em;
}
.wz-cards > .wz-ad-slot {
	padding-block: 16px;
	border-block-end: 1px solid var(--wz-thread);
}
@media (min-width: 48rem) {
	.wz-card {
		padding: 18px 14px;
		gap: 22px;
	}
	.wz-card__title {
		font-size: 1.1875rem;
	}
}

/* ---------------------------------------------------------------------------
 * Aside: city ledger, promise, ad
 * ------------------------------------------------------------------------ */
.wz-aside {
	display: grid;
	gap: 28px;
	align-content: start;
}
.wz-ledger h2,
.wz-promise h2 {
	margin: 0 0 8px;
	font-size: 1.125rem;
}
.wz-ledger__list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.wz-ledger__list a {
	display: flex;
	align-items: baseline;
	gap: 8px;
	padding-block: 9px;
	color: var(--wz-ink);
	text-decoration: none;
}
.wz-ledger__name {
	font-weight: 700;
}
.wz-ledger__dots {
	flex: 1;
	border-block-end: 2px dotted var(--wz-thread);
	transform: translateY(-4px);
}
.wz-ledger__num {
	font-weight: 700;
	color: var(--wz-madder);
}
.wz-ledger__list a:hover .wz-ledger__name {
	color: var(--wz-madder);
	text-decoration: underline;
}
.wz-promise {
	padding-block-start: 14px;
	border-block-start: 2px solid var(--wz-ink);
}
.wz-promise ul {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 8px;
	font-size: 0.9375rem;
	line-height: 1.6;
}
.wz-promise li {
	display: flex;
	gap: 10px;
}
.wz-promise li::before {
	content: "";
	flex: none;
	width: 12px;
	height: 8px;
	margin-block-start: 0.55em;
	background: var(--wz-madder);
	clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
@media (min-width: 64rem) {
	.wz-aside {
		position: sticky;
		top: 16px;
	}
}

/* ---------------------------------------------------------------------------
 * Pagination and empty state
 * ------------------------------------------------------------------------ */
.wz-pagination ul {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 22px 0 0;
	padding: 0;
	list-style: none;
}
.wz-pagination a,
.wz-pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding-inline: 12px;
	border: 1px solid var(--wz-thread);
	border-radius: 6px;
	background: var(--wz-white);
	color: var(--wz-ink);
	font-weight: 700;
	text-decoration: none;
	font-variant-numeric: tabular-nums;
}
.wz-pagination a:hover {
	border-color: var(--wz-ink);
}
.wz-pagination .current {
	background: var(--wz-ink);
	border-color: var(--wz-ink);
	color: var(--wz-white);
}
.wz-pagination .dots {
	border-color: transparent;
	background: none;
}
.wz-empty {
	padding: 28px 0;
	border-block: 1px solid var(--wz-thread);
	text-align: center;
}
.wz-empty .wz-weave {
	max-width: 8rem;
	margin: 0 auto 16px;
	height: 14px;
}
.wz-empty__title {
	margin: 0 0 4px;
	font-size: 1.25rem;
	font-weight: 700;
}
.wz-empty__hint {
	margin: 0 0 16px;
	color: var(--wz-camel);
}
.wz-empty p:last-child {
	margin-block-end: 0;
}

/* ---------------------------------------------------------------------------
 * Job page
 * ------------------------------------------------------------------------ */
.wz-job-head__where {
	margin: 0 0 8px;
	font-size: 1rem;
	font-weight: 700;
}
.wz-job-head__where a {
	color: var(--wz-saffron);
	text-decoration: none;
}
.wz-job-head__where a:hover {
	color: var(--wz-white);
	text-decoration: underline;
}
.wz-job-head__sep {
	margin-inline: 8px;
	color: var(--wz-camel-soft);
}
.wz-job-head__title {
	margin: 0 0 10px;
	font-size: clamp(1.875rem, 7vw, 3.25rem);
	line-height: 1.15;
	max-width: 24ch;
}
.wz-job-head__posted {
	margin: 0;
	font-size: 0.9375rem;
	color: var(--wz-camel-soft);
}
.wz-job-head__posted span {
	margin-inline: 6px;
}
.wz-job-body {
	display: grid;
	gap: 24px;
	padding-block: 24px 40px;
	grid-template-areas: "aside" "main";
}
.wz-job-aside {
	grid-area: aside;
	display: grid;
	gap: 16px;
	align-content: start;
}
.wz-job-main {
	grid-area: main;
	min-width: 0;
}
@media (min-width: 64rem) {
	.wz-job-body {
		grid-template-columns: minmax(0, 1fr) 21rem;
		grid-template-areas: "main aside";
		gap: 56px;
		padding-block: 40px 64px;
	}
	.wz-job-aside {
		position: sticky;
		top: 16px;
	}
}

/* Status: the stripe that says whether the loom is still running */
.wz-status {
	padding-block-end: 14px;
	border-block-end: 1px solid var(--wz-thread);
}
.wz-status__big,
.wz-expired {
	margin: 0;
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.4;
}
.wz-status__hint {
	margin: 4px 0 0;
	font-size: 0.9375rem;
	color: var(--wz-camel);
}
.wz-status--expired {
	/* The loom has stopped: a faded hatch stripe, not a panel. */
	padding: 14px 16px;
	background-color: var(--wz-faded-bg);
	background-image: repeating-linear-gradient(135deg, transparent 0 10px, var(--wz-wool) 10px 12px);
	border-block: 3px solid var(--wz-faded);
}
.wz-status--expired .wz-expired {
	color: var(--wz-ink);
}
.wz-status--expired .wz-status__hint {
	color: var(--wz-ink);
}

.wz-apply {
	margin: 0;
	display: grid;
	gap: 6px;
}
.wz-apply__button {
	width: 100%;
	min-height: 58px;
	font-size: 1.1875rem;
}
.wz-apply__note {
	font-size: 0.8125rem;
	color: var(--wz-camel);
	text-align: center;
}
@media (max-width: 63.99rem) {
	/* Phones and tablets: the apply action stays under the thumb. */
	.wz-apply {
		position: fixed;
		inset-inline: 0;
		bottom: 0;
		z-index: 50;
		padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
		background: var(--wz-ink);
		border-block-start: 3px solid var(--wz-saffron);
	}
	.wz-apply__note {
		display: none;
	}
	/* Room for the pinned bar, painted in the footer's colour so no light strip shows below it. */
	body:has(.wz-apply) .site-footer {
		padding-block-end: 84px;
	}
}

.wz-details {
	margin: 0;
	border-block-start: 2px solid var(--wz-ink);
}
.wz-details > div {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 16px;
	padding-block: 11px;
	background-image: repeating-linear-gradient(90deg, var(--wz-thread) 0 7px, transparent 7px 11px);
	background-size: 100% 1px;
	background-position: 0 100%;
	background-repeat: no-repeat;
}
.wz-details > div:last-child {
	background-image: none;
}
.wz-details dt {
	font-size: 0.9375rem;
	color: var(--wz-camel);
	font-weight: 400;
}
.wz-details dd {
	margin: 0;
	font-weight: 700;
	text-align: end;
}
.wz-details dd a {
	color: var(--wz-ink);
	text-decoration: underline;
	text-decoration-color: var(--wz-thread);
}
.wz-details dd a:hover {
	color: var(--wz-madder);
	text-decoration-color: currentColor;
}

.wz-provenance {
	padding-block: 12px;
	border-block: 1px solid var(--wz-thread);
	font-size: 0.9375rem;
	line-height: 1.7;
}
.wz-provenance p {
	margin: 0;
}
.wz-source {
	font-weight: 700;
}
.wz-disclaimer {
	margin-block-start: 6px !important;
	color: var(--wz-camel);
}

/* Share */
.wz-share__title {
	margin: 4px 0 8px;
	font-size: 1rem;
}
.wz-share__list {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.wz-share__link,
button.wz-share__link {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	min-height: 48px;
	padding: 8px 12px;
	border: 1px solid var(--wz-thread);
	border-radius: 6px;
	background: var(--wz-white);
	color: var(--wz-ink);
	font-size: 0.9375rem;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 150ms ease-out, color 150ms ease-out, border-color 150ms ease-out;
}
.wz-share__link:hover,
.wz-share__link:focus-visible,
button.wz-share__link:hover {
	background: var(--wz-ink);
	border-color: var(--wz-ink);
	color: var(--wz-white);
}
button.wz-share__link.is-done {
	background: var(--wz-saffron);
	border-color: var(--wz-saffron);
	color: var(--wz-ink);
}
.wz-copy-fallback {
	width: 100%;
	min-height: 48px;
	padding-inline: 12px;
	border: 1px solid var(--wz-thread);
	border-radius: 6px;
	background: var(--wz-wool);
	color: var(--wz-ink);
	font-size: 0.875rem;
	direction: ltr;
}

/* Related / similar jobs */
.wz-related {
	padding-block: 0 56px;
}
.wz-related .wz-weave {
	margin-block-end: 18px;
	max-width: 10rem;
}
.wz-related h2 {
	margin-block-end: 12px;
}

/* ---------------------------------------------------------------------------
 * Reading: job summary and static pages
 * ------------------------------------------------------------------------ */
.wz-prose {
	max-width: 68ch;
	font-size: 1.0625rem;
	line-height: 1.9;
}
.wz-prose h2 {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 1.9em 0 0.5em;
	font-size: 1.3125rem;
	line-height: 1.35;
}
.wz-prose h2::before {
	content: "";
	flex: none;
	width: 24px;
	height: 10px;
	background-color: var(--wz-madder);
	-webkit-mask: var(--wz-step) 0 0 / 24px 10px no-repeat;
	mask: var(--wz-step) 0 0 / 24px 10px no-repeat;
}
.wz-prose h3 {
	margin: 1.5em 0 0.4em;
	font-size: 1.125rem;
}
.wz-prose > :first-child,
.wz-prose .wz-summary > :first-child {
	margin-block-start: 0;
}
.wz-prose p {
	margin: 0 0 1em;
}
.wz-prose ul,
.wz-prose ol {
	margin: 0 0 1.2em;
	padding-inline-start: 1.3em;
}
.wz-prose li {
	margin-block-end: 0.35em;
	padding-inline-start: 0.2em;
}
.wz-prose li::marker {
	color: var(--wz-madder);
}
.wz-prose a {
	color: var(--wz-madder);
	text-decoration: underline;
}
.wz-prose strong {
	color: var(--wz-ink);
}
.wz-page .wz-prose {
	padding-block: 32px 8px;
}
.wz-page__updated {
	margin: 0;
	padding-block: 8px 56px;
	font-size: 0.875rem;
	color: var(--wz-camel);
}
.wz-notfound {
	padding-block: 28px 56px;
	display: grid;
	gap: 18px;
	justify-items: start;
}
.wz-notfound .wz-filters {
	width: 100%;
	margin: 0;
}

/* Ad slots (empty by default; filled from «الإعلانات» settings) */
.wz-ad-slot {
	margin-block: 16px;
}
.wz-ad-slot:empty {
	display: none;
}
.wz-ad-header {
	max-width: 72rem;
	margin-inline: auto;
	padding-inline: 16px;
	text-align: center;
}

/* ---------------------------------------------------------------------------
 * Footer
 * ------------------------------------------------------------------------ */
.site-footer {
	background: var(--wz-ink);
	color: var(--wz-wool-on-ink);
}
.site-info {
	background: transparent;
	color: var(--wz-wool-on-ink);
	padding: 0;
	text-align: start;
}
.site-info .inside-site-info {
	max-width: 72rem;
	margin-inline: auto;
	padding: 28px 16px 32px;
	display: grid;
	gap: 18px;
	justify-items: start;
}
.wz-footer-brand {
	margin: 0;
	display: grid;
	gap: 2px;
}
.wz-footer-brand__name {
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--wz-white);
}
.wz-footer-brand__line {
	font-size: 0.9375rem;
	color: var(--wz-camel-soft);
}
.wz-footer-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 22px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.wz-footer-menu a {
	display: inline-block;
	padding-block: 10px;
	color: var(--wz-wool-on-ink);
	text-decoration: none;
	font-size: 0.9375rem;
}
.wz-footer-menu a:hover,
.wz-footer-menu a:focus-visible {
	color: var(--wz-saffron);
	text-decoration: underline;
}
.site-info .copyright {
	font-size: 0.875rem;
	color: var(--wz-camel-soft);
}
.site-info a {
	color: var(--wz-wool-on-ink);
}
.copyright-bar {
	width: 100%;
	text-align: start;
}
@media (min-width: 48rem) {
	.site-info .inside-site-info {
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: end;
	}
	.wz-footer-nav {
		grid-row: 1 / span 2;
		grid-column: 2;
	}
	.wz-footer-menu {
		justify-content: flex-end;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition-duration: 0ms !important;
		animation: none !important;
	}
}
