/*
 * Sabahkm — design tokens and base styles.
 *
 * Burgundy, beige and white. The colours are Elementor global colours
 * (Site Settings → Global Colors, written by `wp sabah kit`), so a change
 * there recolours the whole site; the hex values below are the fallbacks.
 *
 * The layouts are Elementor's own elements carrying sb-* classes (see
 * inc/templates-layouts.php): Elementor holds the structure, this file the look.
 */

:root {
	/* Brand */
	--sabah-primary: #6e1a2d;
	--sabah-primary-deep: #4a0e1c;
	--sabah-accent: #b89466;
	--sabah-beige: #f1e7d7;
	--sabah-beige-deep: #dcc9ab;
	--sabah-bg: #f8f3ea;
	--sabah-surface: #ffffff;
	--sabah-ink: #2a151b;
	--sabah-text: #45353a;

	/* News signals */
	--sabah-breaking: #b3261e;

	/* Type */
	--sabah-font: "IBM Plex Sans Arabic", "Sabah Fallback", "Geeza Pro", "Noto Sans Arabic", system-ui, sans-serif;
	--sabah-fs-xs: 0.8125rem;   /* 13px meta, dates */
	--sabah-fs-sm: 0.9375rem;   /* 15px cards */
	--sabah-fs-base: 1.0625rem; /* 17px article body */
	--sabah-fs-md: 1.25rem;     /* 20px card titles */
	--sabah-fs-lg: clamp(1.5rem, 1.15rem + 1.3vw, 2.125rem);  /* section heads */
	--sabah-fs-xl: clamp(1.75rem, 1.2rem + 2.4vw, 3rem);      /* article h1, page titles */
	--sabah-lh-tight: 1.4;
	--sabah-lh-body: 1.85;      /* Arabic needs generous leading */

	/* Space, shape, motion */
	--sabah-gap: 1.5rem;
	--sabah-gutter: clamp(1rem, 3vw, 2rem);
	--sabah-container: 1280px;
	--sabah-measure: 46rem;
	--sabah-radius: 14px;
	--sabah-radius-lg: 24px;
	--sabah-radius-xl: 36px;
	--sabah-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
	--sabah-dur: 280ms;
}

/* Elementor prints its global colours on the body; the tokens follow them. */
body {
	--sabah-primary: var(--e-global-color-primary, #6e1a2d);
	--sabah-primary-deep: var(--e-global-color-secondary, #4a0e1c);
	--sabah-text: var(--e-global-color-text, #45353a);
	--sabah-accent: var(--e-global-color-accent, #b89466);
	--sabah-beige: var(--e-global-color-sbbeige, #f1e7d7);
	--sabah-beige-deep: var(--e-global-color-sbbeiged, #dcc9ab);
	--sabah-bg: var(--e-global-color-sbpage, #f8f3ea);
	--sabah-surface: var(--e-global-color-sbwhite, #ffffff);
	--sabah-ink: var(--e-global-color-sbink, #2a151b);

	/* Derived */
	--sabah-primary-soft: color-mix(in srgb, var(--sabah-primary) 82%, #fff);
	--sabah-tint: color-mix(in srgb, var(--sabah-primary) 7%, #fff);
	--sabah-muted: color-mix(in srgb, var(--sabah-text) 78%, var(--sabah-bg));
	--sabah-accent-ink: color-mix(in srgb, var(--sabah-accent) 62%, var(--sabah-ink));
	--sabah-line: color-mix(in srgb, var(--sabah-beige-deep) 55%, var(--sabah-bg));
	--sabah-on-dark: color-mix(in srgb, var(--sabah-beige) 92%, #fff);
	--sabah-on-dark-muted: color-mix(in srgb, var(--sabah-beige-deep) 88%, #fff);
	--sabah-shadow: 0 1px 0 rgba(74, 14, 28, 0.04), 0 22px 44px -30px rgba(74, 14, 28, 0.28);
	--sabah-shadow-lift: 0 2px 0 rgba(74, 14, 28, 0.04), 0 30px 54px -28px rgba(74, 14, 28, 0.42);
}

/* ---------- Base (replaces Hello Elementor's reset) ---------- */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: 110px;
}

body {
	margin: 0;
	background: var(--sabah-bg);
	color: var(--sabah-text);
	font-family: var(--sabah-font);
	font-size: var(--sabah-fs-base);
	line-height: var(--sabah-lh-body);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 0.5em;
	color: var(--sabah-ink);
	font-family: var(--sabah-font);
	font-weight: 700;
	line-height: var(--sabah-lh-tight);
	text-wrap: balance;
}

p {
	margin: 0 0 1em;
}

a {
	color: var(--sabah-primary);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
	transition: color var(--sabah-dur) var(--sabah-ease);
}

a:hover {
	color: var(--sabah-primary-deep);
}

img, svg, video, iframe {
	max-width: 100%;
	height: auto;
}

img {
	display: block;
	border: 0;
}

figure {
	margin: 0;
}

button, input, select, textarea {
	font: inherit;
	color: inherit;
}

table {
	border-collapse: collapse;
	width: 100%;
}

hr {
	border: 0;
	border-top: 1px solid var(--sabah-line);
	margin: 2rem 0;
}

::selection {
	background: var(--sabah-primary);
	color: #fff;
}

:focus-visible {
	outline: 3px solid var(--sabah-accent);
	outline-offset: 2px;
	border-radius: 4px;
}

/* ---------- Accessibility helpers ---------- */

.screen-reader-text,
.sabah-sr-only {
	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.screen-reader-text:focus {
	position: fixed !important;
	inset-inline-start: 1rem;
	top: 1rem;
	z-index: 100000;
	width: auto;
	height: auto;
	clip: auto;
	padding: 0.75rem 1.25rem;
	background: var(--sabah-ink);
	color: #fff;
	border-radius: var(--sabah-radius);
}

/* ---------- Elementor defaults the design replaces ---------- */

/* Headings and texts take the theme's type, not Elementor's line-height: 1. */
.elementor-widget-heading .elementor-heading-title,
.elementor-widget-theme-post-title .elementor-heading-title,
.elementor-widget-theme-archive-title .elementor-heading-title {
	margin: 0;
	font-family: var(--sabah-font);
	line-height: var(--sabah-lh-tight);
}

.elementor-widget-heading .elementor-heading-title a,
.elementor-widget-theme-post-title .elementor-heading-title a {
	color: inherit;
	text-decoration: none;
}

.elementor-widget-text-editor p:last-child {
	margin-bottom: 0;
}

.elementor-widget-button .elementor-button {
	font-family: var(--sabah-font);
	line-height: 1.4;
	text-decoration: none;
}

/* Small shared pieces used by the story and page widgets. */
.sabah-icon {
	width: 1.1em;
	height: 1.1em;
	flex: none;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.sabah-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem 0.9rem;
	color: var(--sabah-muted);
	font-size: var(--sabah-fs-xs);
}

.sabah-meta > span {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
}

.sabah-wrap {
	width: 100%;
	max-width: calc(var(--sabah-container) + 2 * var(--sabah-gutter));
	margin-inline: auto;
	padding-inline: var(--sabah-gutter);
}

/* English section reads left to right in Latin script. */
[lang="en"] .sabah-prose,
.sabah-ltr {
	direction: ltr;
	text-align: left;
	line-height: 1.7;
}

/* =====================================================================
   Floating header (Theme Builder header: containers, Image, Heading,
   Nav Menu, Search Form, Button)
   ===================================================================== */

/* The header stays at the top while scrolling; only the bar itself takes clicks. */
.elementor-location-header {
	position: sticky;
	top: 0;
	z-index: 90;
	pointer-events: none;
}

/* One line at every width: the bar never wraps. */
.sb-header .e-con.sb-header__bar,
.sb-header .e-con.sb-brand,
.sb-header .e-con.sb-tools {
	--flex-wrap: nowrap;
	--flex-wrap-mobile: nowrap;
	flex-wrap: nowrap;
}

.sb-header .sb-header__bar {
	position: relative;
	min-height: 68px;
	border: 1px solid color-mix(in srgb, var(--sabah-beige-deep) 60%, transparent);
	border-radius: 999px;
	box-shadow: 0 1px 0 rgba(74, 14, 28, 0.05), 0 20px 40px -22px rgba(74, 14, 28, 0.4);
	pointer-events: auto;
}

/* The frosted white sits on a layer of its own, so the search overlay can still cover the screen. */
.sb-header .sb-header__bar::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	border-radius: inherit;
	background: color-mix(in srgb, var(--sabah-surface) 90%, transparent);
	-webkit-backdrop-filter: blur(16px) saturate(1.5);
	backdrop-filter: blur(16px) saturate(1.5);
}

/* Brand: the oval emblem stands taller than the bar; the name keeps its distance from it. */
.sb-header .sb-brand {
	flex: none;
	width: auto;
}

.sb-header .sb-brand__emblem {
	flex: none;
	margin-block: -18px;
}

.sb-header .sb-brand__emblem img {
	width: auto;
	height: 88px;
	filter: drop-shadow(0 8px 12px rgba(74, 14, 28, 0.28));
	transition: transform var(--sabah-dur) var(--sabah-ease);
}

.sb-header .sb-brand__emblem a:hover img {
	transform: translateY(-2px) scale(1.03);
}

.sb-header .sb-brand__text {
	width: auto;
}

.sb-brand__name .elementor-heading-title {
	color: var(--sabah-primary-deep);
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.3;
	white-space: nowrap;
}

.sb-brand__sub .elementor-heading-title {
	color: var(--sabah-accent-ink);
	font-size: 0.75rem;
	font-weight: 400;
	line-height: 1.3;
	white-space: nowrap;
}

[lang="en-US"] .sb-brand__sub .elementor-heading-title {
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

/* Sections menu */
.sb-header .sb-nav {
	position: static;
	min-width: 0;
}

.sb-nav .elementor-nav-menu--main .elementor-nav-menu {
	flex-wrap: nowrap;
	gap: 2px;
}

.sb-nav .elementor-nav-menu--main .elementor-nav-menu a.elementor-item {
	padding: 8px 12px;
	border-radius: 999px;
	color: var(--sabah-ink);
	font-size: 0.9375rem;
	font-weight: 500;
	line-height: 1.5;
	white-space: nowrap;
	transition: background-color var(--sabah-dur) var(--sabah-ease), color var(--sabah-dur) var(--sabah-ease);
}

.sb-nav .elementor-nav-menu--main .elementor-nav-menu a.elementor-item:hover,
.sb-nav .elementor-nav-menu--main .elementor-nav-menu a.elementor-item:focus-visible,
.sb-nav .elementor-nav-menu--main .elementor-nav-menu a.elementor-item.elementor-item-active {
	background: var(--sabah-tint);
	color: var(--sabah-primary);
}

/* Menu button and its panel (tablets and phones) */
.sb-nav .elementor-menu-toggle {
	width: 46px;
	height: 46px;
	margin: 0;
	padding: 0;
	border-radius: 50%;
	background: var(--sabah-primary);
	color: #fff;
	cursor: pointer;
}

.sb-nav .elementor-menu-toggle svg {
	width: 20px;
	height: 20px;
	fill: currentColor;
}

.sb-nav .elementor-nav-menu--dropdown.elementor-nav-menu__container {
	position: absolute;
	top: calc(100% + 10px);
	inset-inline: 0;
	margin: 0;
	border-radius: var(--sabah-radius-lg);
	background: var(--sabah-surface);
	box-shadow: var(--sabah-shadow-lift);
	transform-origin: top;
}

.sb-nav .elementor-nav-menu--dropdown .elementor-nav-menu {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 4px;
	padding: 14px;
}

.sb-nav .elementor-nav-menu--dropdown .elementor-nav-menu a.elementor-item {
	padding: 12px 16px;
	border-radius: var(--sabah-radius);
	background: none;
	color: var(--sabah-ink);
	font-size: 1rem;
	font-weight: 500;
}

.sb-nav .elementor-nav-menu--dropdown .elementor-nav-menu a.elementor-item:hover,
.sb-nav .elementor-nav-menu--dropdown .elementor-nav-menu a.elementor-item.elementor-item-active {
	background: var(--sabah-tint);
	color: var(--sabah-primary);
}

/* Search button, the full-screen search it opens, and the language button */
.sb-header .sb-tools {
	flex: none;
	width: auto;
}

.sb-search .elementor-search-form__toggle {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	color: var(--sabah-primary-deep);
	cursor: pointer;
	transition: background-color var(--sabah-dur) var(--sabah-ease);
}

.sb-search .elementor-search-form__toggle:hover {
	background: var(--sabah-tint);
}

.sb-search .elementor-search-form .elementor-search-form__toggle .e-font-icon-svg-container {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: none;
}

.sb-search .elementor-search-form .elementor-search-form__toggle .e-font-icon-svg-container svg {
	width: 19px;
	height: 19px;
	fill: currentColor;
}

.sb-search.elementor-search-form--skin-full_screen .elementor-search-form .elementor-search-form__container {
	background: color-mix(in srgb, var(--sabah-primary-deep) 96%, transparent);
	padding: 0 8vw;
}

.sb-search.elementor-search-form--skin-full_screen .elementor-search-form input[type="search"].elementor-search-form__input {
	border: 0;
	border-bottom: 2px solid color-mix(in srgb, var(--sabah-beige) 45%, transparent);
	border-radius: 0;
	background: none;
	color: #fff;
	font-size: clamp(1.25rem, 0.9rem + 2.2vw, 2.6rem);
	font-weight: 700;
	line-height: 1.6;
	text-align: center;
	padding: 0.4em 0;
}

.sb-search .elementor-search-form__input::placeholder {
	color: var(--sabah-on-dark-muted);
	opacity: 0.75;
}

.sb-search .elementor-search-form .dialog-lightbox-close-button {
	color: var(--sabah-on-dark);
	cursor: pointer;
}

.sb-search .dialog-lightbox-close-button svg {
	fill: currentColor;
}

.sb-lang .elementor-button {
	padding: 11px 20px;
	border-radius: 999px;
	background: var(--sabah-primary);
	color: #fff;
	font-size: 0.875rem;
	font-weight: 700;
	transition: background-color var(--sabah-dur) var(--sabah-ease), transform var(--sabah-dur) var(--sabah-ease);
}

.sb-lang .elementor-button:hover,
.sb-lang .elementor-button:focus-visible {
	background: var(--sabah-primary-deep);
	color: #fff;
	transform: translateY(-1px);
}

@media (max-width: 1240px) and (min-width: 1025px) {
	.sb-header .sb-brand__text {
		display: none;
	}
}

@media (max-width: 1024px) {
	.sb-header .sb-nav {
		order: 3;
	}

	.sb-header .sb-tools {
		margin-inline-start: auto;
	}
}

@media (max-width: 767px) {
	.sb-header .sb-header__bar {
		min-height: 58px;
	}

	.sb-header .sb-brand__emblem {
		margin-block: -12px;
	}

	.sb-header .sb-brand__emblem img {
		height: 70px;
	}

	.sb-brand__name .elementor-heading-title {
		font-size: 0.9375rem;
	}

	.sb-brand__sub .elementor-heading-title {
		font-size: 0.6875rem;
	}

	.sb-nav .elementor-menu-toggle,
	.sb-search .elementor-search-form__toggle {
		width: 42px;
		height: 42px;
	}

	.sb-lang .elementor-button {
		padding: 9px 14px;
		font-size: 0.8125rem;
	}

	.sb-nav .elementor-nav-menu--dropdown .elementor-nav-menu a.elementor-item {
		padding: 11px 12px;
	}
}

@media (max-width: 480px) {
	.sb-header .sb-brand__sub {
		display: none;
	}

	.sb-header .e-con.sb-header__bar {
		gap: 8px;
	}

	.sb-header .e-con.sb-tools {
		gap: 2px;
	}

	.sb-header .sb-brand__emblem img {
		height: 64px;
	}

	.sb-lang .elementor-button {
		padding: 8px 12px;
		font-size: 0.78rem;
	}

	.sb-nav .elementor-menu-toggle,
	.sb-search .elementor-search-form__toggle,
	.sb-search .elementor-search-form .elementor-search-form__toggle .e-font-icon-svg-container {
		width: 40px;
		height: 40px;
	}
}

/* Very narrow phones: the emblem alone carries the name. */
@media (max-width: 379px) {
	.sb-header .sb-brand__text {
		display: none;
	}
}

/* =====================================================================
   Page rhythm, section heads, panels
   ===================================================================== */

.sb-page {
	overflow-x: clip;
}

/* Section title, led by a small oval — the shape of the emblem. */
.sb-head .sb-head__title {
	min-width: 0;
}

.sb-head__title .elementor-heading-title {
	display: flex;
	align-items: center;
	gap: 0.55em;
	color: var(--sabah-ink);
	font-size: var(--sabah-fs-lg);
	font-weight: 700;
}

.sb-head__title .elementor-heading-title::before {
	content: "";
	flex: none;
	width: 0.42em;
	height: 0.62em;
	border-radius: 50%;
	background: var(--sabah-primary);
}

/* "More" link */
.sb-more .elementor-button {
	padding: 9px 18px;
	border: 1px solid color-mix(in srgb, var(--sabah-primary) 28%, transparent);
	border-radius: 999px;
	background: none;
	color: var(--sabah-primary);
	font-size: 0.875rem;
	font-weight: 700;
	white-space: nowrap;
	transition: background-color var(--sabah-dur) var(--sabah-ease), color var(--sabah-dur) var(--sabah-ease), border-color var(--sabah-dur) var(--sabah-ease);
}

.sb-more .elementor-button-text::after {
	content: "\2190";
	display: inline-block;
	margin-inline-start: 0.5em;
	transition: transform var(--sabah-dur) var(--sabah-ease);
}

[dir="ltr"] .sb-more .elementor-button-text::after,
.sb-english .sb-more .elementor-button-text::after {
	content: "\2192";
}

.sb-more .elementor-button:hover,
.sb-more .elementor-button:focus-visible {
	border-color: var(--sabah-primary);
	background: var(--sabah-primary);
	color: #fff;
}

.sb-more .elementor-button:hover .elementor-button-text::after {
	transform: translateX(-4px);
}

[dir="ltr"] .sb-more .elementor-button:hover .elementor-button-text::after,
.sb-english .sb-more .elementor-button:hover .elementor-button-text::after {
	transform: translateX(4px);
}

/* Panels: rounded surfaces that sit inside the page, never edge to edge. */
.sb-panel {
	position: relative;
	overflow: hidden;
	border-radius: var(--sabah-radius-xl);
}

.sb-panel--white {
	background: var(--sabah-surface);
	box-shadow: var(--sabah-shadow);
}

.sb-panel--beige {
	background: var(--sabah-beige);
}

.sb-panel--burgundy {
	background:
		radial-gradient(120% 150% at 100% 0%, var(--sabah-primary-soft) 0%, var(--sabah-primary) 42%, var(--sabah-primary-deep) 100%);
	color: var(--sabah-on-dark);
}

/* Two fine ovals in the corner of burgundy panels, echoing the emblem. */
.sb-panel--burgundy::before,
.sb-panel--burgundy::after {
	content: "";
	position: absolute;
	inset-inline-end: -90px;
	top: -150px;
	width: 300px;
	height: 410px;
	border: 1px solid color-mix(in srgb, var(--sabah-beige) 26%, transparent);
	border-radius: 50%;
	pointer-events: none;
}

.sb-panel--burgundy::after {
	inset-inline-end: -40px;
	top: -190px;
	border-color: color-mix(in srgb, var(--sabah-beige) 14%, transparent);
}

.sb-panel--burgundy > * {
	position: relative;
	z-index: 1;
}

.sb-panel--burgundy .sb-head__title .elementor-heading-title {
	color: #fff;
}

.sb-panel--burgundy .sb-head__title .elementor-heading-title::before {
	background: var(--sabah-beige-deep);
}

.sb-panel--burgundy .sb-more .elementor-button {
	border-color: color-mix(in srgb, var(--sabah-beige) 45%, transparent);
	color: var(--sabah-on-dark);
}

.sb-panel--burgundy .sb-more .elementor-button:hover,
.sb-panel--burgundy .sb-more .elementor-button:focus-visible {
	border-color: var(--sabah-beige);
	background: var(--sabah-beige);
	color: var(--sabah-primary-deep);
}

/* =====================================================================
   Story cards (loop item templates) and the Loop Grids that repeat them
   ===================================================================== */

.sb-loop .elementor-loop-container {
	--grid-column-gap: 24px;
	--grid-row-gap: 24px;
}

.sb-loop .e-loop-item {
	display: flex;
	min-width: 0;
}

/* Section label on a card */
.sb-chip .elementor-heading-title {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 1.4;
}

.sb-chip .elementor-heading-title a {
	position: relative;
	z-index: 2;
	padding: 3px 11px;
	border-radius: 999px;
	background: var(--sabah-tint);
	color: var(--sabah-primary);
	transition: background-color var(--sabah-dur) var(--sabah-ease), color var(--sabah-dur) var(--sabah-ease);
}

.sb-chip .elementor-heading-title a:hover {
	background: var(--sabah-primary);
	color: #fff;
}

.sb-date .elementor-heading-title {
	color: var(--sabah-muted);
	font-size: var(--sabah-fs-xs);
	font-weight: 400;
	line-height: 1.5;
}

/* Cover: the picture fills the card and the text sits over it. */
.sb-cover {
	isolation: isolate;
	overflow: hidden;
	min-height: var(--cover-h, 300px);
	border-radius: var(--sabah-radius-lg);
	background: var(--sabah-primary-deep);
}

.sb-cover::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(to top, rgba(38, 6, 14, 0.94) 0%, rgba(38, 6, 14, 0.62) 34%, rgba(38, 6, 14, 0) 72%);
	pointer-events: none;
}

.sb-cover .sb-cover__img {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: auto;
	max-width: none;
}

.sb-cover .sb-cover__img img {
	display: block;
	width: 100%;
	max-width: none;
	height: 100%;
	object-fit: cover;
	transition: transform 900ms var(--sabah-ease);
}

.sb-cover:hover .sb-cover__img img {
	transform: scale(1.05);
}

/* The title link covers the whole card. */
.sb-cover .sb-cover__body,
.sb-cover .sb-cover__body > .elementor-element {
	position: static;
}

.sb-cover .sb-cover__body {
	padding: 22px;
}

.sb-cover__title .elementor-heading-title {
	color: #fff;
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.5;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
}

.sb-cover__title .elementor-heading-title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.sb-cover .sb-chip .elementor-heading-title a {
	background: color-mix(in srgb, var(--sabah-beige) 92%, transparent);
	color: var(--sabah-primary-deep);
}

.sb-cover .sb-chip .elementor-heading-title a:hover {
	background: #fff;
	color: var(--sabah-primary);
}

.sb-cover .sb-date .elementor-heading-title {
	color: var(--sabah-on-dark-muted);
}

/* Card: a white frame around the picture, text below. */
.sb-card {
	overflow: hidden;
	padding: 10px;
	border-radius: var(--sabah-radius-lg);
	background: var(--sabah-surface);
	box-shadow: var(--sabah-shadow);
	transition: transform var(--sabah-dur) var(--sabah-ease), box-shadow var(--sabah-dur) var(--sabah-ease);
}

.sb-card:hover {
	box-shadow: var(--sabah-shadow-lift);
	transform: translateY(-4px);
}

.sb-card .sb-card__img {
	overflow: hidden;
	border-radius: calc(var(--sabah-radius-lg) - 8px);
	background: var(--sabah-beige);
}

.sb-card .sb-card__img img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	transition: transform 900ms var(--sabah-ease);
}

.sb-card:hover .sb-card__img img {
	transform: scale(1.05);
}

.sb-card .sb-card__body,
.sb-card .sb-card__body > .elementor-element {
	position: static;
}

.sb-card .sb-card__body {
	flex: 1;
	padding: 16px 12px 12px;
}

.sb-card__title .elementor-heading-title {
	color: var(--sabah-ink);
	font-size: 1.0625rem;
	font-weight: 700;
	line-height: 1.55;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
}

.sb-card__title .elementor-heading-title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.sb-card:hover .sb-card__title .elementor-heading-title {
	color: var(--sabah-primary);
}

.sb-card .sb-date {
	margin-top: auto;
}

/* Row: a small rounded picture beside the title. */
.sb-loop--row .elementor-loop-container {
	--grid-row-gap: 18px;
}

.sb-row .sb-row__img {
	flex: none;
	width: var(--thumb, 112px);
	overflow: hidden;
	border-radius: var(--sabah-radius);
	background: var(--sabah-beige);
}

.sb-row .sb-row__img img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	transition: transform 900ms var(--sabah-ease);
}

.sb-row:hover .sb-row__img img {
	transform: scale(1.07);
}

.sb-row .sb-row__body,
.sb-row .sb-row__body > .elementor-element {
	position: static;
}

.sb-row .sb-row__body {
	flex: 1;
	min-width: 0;
}

.sb-row__title .elementor-heading-title {
	color: var(--sabah-ink);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.55;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
	transition: color var(--sabah-dur) var(--sabah-ease);
}

.sb-row__title .elementor-heading-title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.sb-row:hover .sb-row__title .elementor-heading-title {
	color: var(--sabah-primary);
}

.sb-panel--burgundy .sb-row__title .elementor-heading-title {
	color: #fff;
}

.sb-panel--burgundy .sb-row:hover .sb-row__title .elementor-heading-title {
	color: var(--sabah-beige-deep);
}

.sb-panel--burgundy .sb-row .sb-date .elementor-heading-title {
	color: var(--sabah-on-dark-muted);
}

/* =====================================================================
   Home sections
   ===================================================================== */

/* Opening: the newest story large, two more stacked beside it. */
.sb-hero {
	--hero-h: clamp(420px, 43vw, 600px);
}

.sb-hero__main .sb-cover {
	--cover-h: var(--hero-h);
	border-radius: var(--sabah-radius-xl);
}

.sb-hero__main .sb-cover .sb-cover__body {
	padding: clamp(22px, 3vw, 44px);
	gap: 14px;
}

.sb-hero__main .sb-cover__title .elementor-heading-title {
	max-width: 22em;
	font-size: clamp(1.5rem, 1rem + 2vw, 2.5rem);
	line-height: 1.4;
}

.sb-hero__side .sb-cover {
	--cover-h: calc((var(--hero-h) - 24px) / 2);
}

/* In focus: one large cover and a list, on burgundy. */
.sb-focus__main .sb-cover {
	--cover-h: 100%;
	min-height: 420px;
	box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.55);
}

.sb-focus__main,
.sb-focus__main .elementor-loop-container,
.sb-focus__main .e-loop-item {
	height: 100%;
}

.sb-focus__main .sb-cover__title .elementor-heading-title {
	font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem);
}

.sb-focus .sb-loop--row {
	align-self: center;
}

.sb-focus .sb-loop--row .elementor-loop-container {
	--grid-row-gap: 22px;
}

.sb-focus .sb-row {
	--thumb: 136px;
}

.sb-focus .sb-row__title .elementor-heading-title {
	font-size: 1.0625rem;
}

/* Section columns */
.sb-columns .sb-head__title .elementor-heading-title {
	font-size: 1.375rem;
}

/* Most read: numbered covers */
.sb-ranked .elementor-loop-container {
	--grid-column-gap: 18px;
	counter-reset: sb-rank;
}

.sb-ranked .e-loop-item {
	counter-increment: sb-rank;
}

.sb-ranked .sb-cover {
	--cover-h: 340px;
}

.sb-ranked .sb-cover::before {
	content: counter(sb-rank);
	position: absolute;
	top: 14px;
	inset-inline-start: 14px;
	display: grid;
	place-items: center;
	width: 44px;
	height: 58px;
	border-radius: 50%;
	background: var(--sabah-beige);
	box-shadow: 0 10px 22px rgba(38, 6, 14, 0.35);
	color: var(--sabah-primary-deep);
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1;
	pointer-events: none;
}

.sb-ranked .sb-cover .sb-cover__body {
	padding: 18px;
}

.sb-ranked .sb-cover__title .elementor-heading-title {
	font-size: 1rem;
}

.sb-ranked .sb-chip {
	display: none;
}

/* Video: covers with a play mark */
.sb-videos .sb-cover {
	--cover-h: 270px;
}

.sb-videos .sb-cover::before {
	content: "";
	position: absolute;
	top: 16px;
	inset-inline-start: 16px;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: color-mix(in srgb, #fff 94%, transparent);
	box-shadow: 0 8px 20px rgba(38, 6, 14, 0.35);
	pointer-events: none;
	transition: transform var(--sabah-dur) var(--sabah-ease);
}

/* The triangle of the play mark; it always points right. */
.sb-videos .sb-cover .sb-cover__body::before {
	content: "";
	position: absolute;
	top: 30px;
	inset-inline-start: 33px;
	border-style: solid;
	border-width: 9px 0 9px 15px;
	border-color: transparent transparent transparent var(--sabah-primary);
	pointer-events: none;
}

.sb-videos .sb-cover:hover::before {
	transform: scale(1.1);
}

.sb-videos .sb-chip {
	display: none;
}

/* English stories inside Arabic pages read left to right. */
.sb-english {
	direction: ltr;
}

.sb-english .elementor-heading-title {
	text-align: left;
}

@media (max-width: 1024px) {
	.sb-hero {
		--hero-h: 440px;
	}

	.sb-hero__side .sb-cover {
		--cover-h: 250px;
	}

	.sb-focus__main .sb-cover {
		min-height: 360px;
	}

	.sb-ranked .sb-cover {
		--cover-h: 300px;
	}
}

@media (max-width: 767px) {
	.sb-loop .elementor-loop-container {
		--grid-column-gap: 16px;
		--grid-row-gap: 16px;
	}

	.sb-hero {
		--hero-h: 400px;
	}

	.sb-hero__main .sb-cover {
		border-radius: var(--sabah-radius-lg);
	}

	.sb-hero__side .sb-cover {
		--cover-h: 220px;
	}

	.sb-panel {
		border-radius: var(--sabah-radius-lg);
	}

	.sb-focus__main .sb-cover {
		min-height: 300px;
	}

	.sb-focus .sb-row,
	.sb-row {
		--thumb: 100px;
	}

	/* Most read and video become a strip to swipe through. */
	.sb-ranked .elementor-loop-container,
	.sb-videos .elementor-loop-container {
		grid-template-columns: none;
		grid-auto-flow: column;
		grid-auto-columns: 74%;
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
		margin-inline: -16px;
		padding-inline: 16px;
		scroll-padding-inline: 16px;
	}

	.sb-videos .sb-panel .elementor-loop-container {
		margin-inline: -20px;
		padding-inline: 20px;
		scroll-padding-inline: 20px;
	}

	.sb-ranked .elementor-loop-container::-webkit-scrollbar,
	.sb-videos .elementor-loop-container::-webkit-scrollbar {
		display: none;
	}

	.sb-ranked .e-loop-item,
	.sb-videos .e-loop-item {
		scroll-snap-align: start;
	}

	.sb-ranked .sb-cover {
		--cover-h: 280px;
	}

	.sb-videos .sb-cover {
		--cover-h: 230px;
	}
}

/* =====================================================================
   Section, search and 404 pages
   ===================================================================== */

.sb-archive__title .elementor-heading-title {
	color: #fff;
	font-size: var(--sabah-fs-xl);
	font-weight: 700;
	line-height: 1.3;
}

.sb-archive__lead {
	max-width: 44rem;
	color: var(--sabah-on-dark-muted);
	font-size: 1.0625rem;
}

.sb-archive__lead:empty {
	display: none;
}

/* Search box (Search Form widget, classic skin) */
.sb-searchbox {
	width: min(100%, 36rem);
}

.sb-searchbox .elementor-search-form .elementor-search-form__container {
	min-height: 56px;
	overflow: hidden;
	border: 0;
	border-radius: 999px;
	background: var(--sabah-surface);
}

.sb-searchbox input[type="search"].elementor-search-form__input {
	padding-inline: 24px 12px;
	border: 0;
	background: none;
	color: var(--sabah-ink);
	font-size: 1rem;
}

.sb-searchbox .elementor-search-form__submit {
	min-width: 96px;
	margin: 6px;
	padding: 0 22px;
	border: 0;
	border-radius: 999px;
	background: var(--sabah-primary);
	color: #fff;
	font-size: 0.9375rem;
	font-weight: 700;
	cursor: pointer;
	transition: background-color var(--sabah-dur) var(--sabah-ease);
}

.sb-searchbox .elementor-search-form__submit:hover {
	background: var(--sabah-primary-deep);
}

/* Page numbers (Loop Grid pagination) */
.sb-loop .elementor-pagination {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-top: 44px;
}

.sb-loop .elementor-pagination .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 46px;
	height: 46px;
	margin: 0;
	padding: 0 16px;
	border-radius: 999px;
	background: var(--sabah-surface);
	box-shadow: var(--sabah-shadow);
	color: var(--sabah-ink);
	font-size: 0.9375rem;
	font-weight: 700;
	text-decoration: none;
	transition: background-color var(--sabah-dur) var(--sabah-ease), color var(--sabah-dur) var(--sabah-ease);
}

.sb-loop .elementor-pagination .page-numbers.current,
.sb-loop .elementor-pagination a.page-numbers:hover {
	background: var(--sabah-primary);
	color: #fff;
}

.sb-loop .elementor-pagination span.page-numbers.prev,
.sb-loop .elementor-pagination span.page-numbers.next,
.sb-loop .elementor-pagination .page-numbers.dots {
	background: none;
	box-shadow: none;
	color: var(--sabah-muted);
}

.sb-loop .e-loop-nothing-found-message {
	padding: 48px 0;
	color: var(--sabah-muted);
	text-align: center;
}

/* 404 */
.sb-notfound .sb-panel {
	text-align: center;
}

.sb-notfound__code .elementor-heading-title {
	color: transparent;
	font-size: clamp(5rem, 16vw, 10rem);
	font-weight: 700;
	line-height: 1;
	-webkit-text-stroke: 2px var(--sabah-beige-deep);
}

.sb-btn .elementor-button {
	padding: 13px 28px;
	border-radius: 999px;
	background: var(--sabah-primary);
	color: #fff;
	font-size: 0.9375rem;
	font-weight: 700;
	transition: background-color var(--sabah-dur) var(--sabah-ease), color var(--sabah-dur) var(--sabah-ease);
}

.sb-btn .elementor-button:hover {
	background: var(--sabah-primary-deep);
	color: #fff;
}

.sb-btn--light .elementor-button {
	background: var(--sabah-beige);
	color: var(--sabah-primary-deep);
}

.sb-btn--light .elementor-button:hover {
	background: #fff;
	color: var(--sabah-primary);
}

/* =====================================================================
   Footer (Theme Builder footer: containers, Image, Heading, Text Editor,
   Nav Menu, Icon List, Social Icons)
   ===================================================================== */

.sb-footer .sb-footer__card {
	position: relative;
	overflow: hidden;
	border-radius: var(--sabah-radius-xl);
	background:
		radial-gradient(90% 120% at 0% 100%, color-mix(in srgb, var(--sabah-primary) 70%, var(--sabah-primary-deep)) 0%, var(--sabah-primary-deep) 60%);
	color: var(--sabah-on-dark);
}

.sb-footer .sb-footer__card::before {
	content: "";
	position: absolute;
	inset-inline-start: -110px;
	bottom: -210px;
	width: 380px;
	height: 520px;
	border: 1px solid color-mix(in srgb, var(--sabah-beige) 16%, transparent);
	border-radius: 50%;
	pointer-events: none;
}

.sb-footer .sb-footer__emblem img {
	width: auto;
	height: 128px;
}

.sb-footer__name .elementor-heading-title {
	color: #fff;
	font-size: 1.25rem;
	font-weight: 700;
}

.sb-footer__about {
	max-width: 26rem;
	color: var(--sabah-on-dark-muted);
	font-size: 0.9375rem;
	line-height: 1.9;
}

.sb-footer__title .elementor-heading-title {
	color: var(--sabah-beige-deep);
	font-size: 0.9375rem;
	font-weight: 700;
}

.sb-social .elementor-social-icons-wrapper {
	display: flex;
	gap: 10px;
}

.sb-social .elementor-social-icon {
	width: 44px;
	height: 44px;
	border: 1px solid color-mix(in srgb, var(--sabah-beige) 35%, transparent);
	border-radius: 50%;
	background: none;
	color: var(--sabah-on-dark);
	font-size: 18px;
	transition: background-color var(--sabah-dur) var(--sabah-ease), color var(--sabah-dur) var(--sabah-ease), transform var(--sabah-dur) var(--sabah-ease);
}

.sb-social .elementor-social-icon svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
}

.sb-social .elementor-social-icon:hover {
	background: var(--sabah-beige);
	color: var(--sabah-primary-deep);
	opacity: 1;
	transform: translateY(-2px);
}

.sb-footer__menu .elementor-nav-menu {
	display: block;
	columns: 2;
	column-gap: 28px;
}

.sb-footer__menu .elementor-nav-menu > li {
	break-inside: avoid;
}

/* Arabic footer: twelve links in three columns beside the brand block. */
.sb-footer__menu--wide .elementor-nav-menu {
	columns: 3;
	column-gap: 36px;
}

.sb-footer__menu .elementor-nav-menu a.elementor-item {
	padding: 6px 0;
	color: var(--sabah-on-dark);
	font-size: 0.9375rem;
	font-weight: 400;
	line-height: 1.6;
	transition: color var(--sabah-dur) var(--sabah-ease), padding var(--sabah-dur) var(--sabah-ease);
}

.sb-footer__menu .elementor-nav-menu a.elementor-item:hover,
.sb-footer__menu .elementor-nav-menu a.elementor-item:focus-visible {
	background: none;
	color: #fff;
	padding-inline-start: 6px;
}

.sb-footer__contact .elementor-icon-list-items {
	display: grid;
	gap: 12px;
}

.sb-footer__contact .elementor-icon-list-item,
.sb-footer__contact .elementor-icon-list-item > a {
	align-items: flex-start;
	gap: 12px;
	color: var(--sabah-on-dark);
	font-size: 0.9375rem;
	line-height: 1.7;
	text-decoration: none;
}

.sb-footer__contact .elementor-icon-list-item > a:hover {
	color: #fff;
}

.sb-footer__contact .elementor-icon-list-icon {
	flex: none;
	margin-top: 0.3em;
}

.sb-footer__contact .elementor-icon-list-icon svg {
	width: 16px;
	height: 16px;
	fill: var(--sabah-beige-deep);
}

.sb-footer__contact .elementor-icon-list-text {
	padding: 0;
	color: inherit;
	overflow-wrap: anywhere;
}

.sb-footer .sb-footer__bottom {
	padding-top: 22px;
	border-top: 1px solid color-mix(in srgb, var(--sabah-beige) 16%, transparent);
}

.sb-footer__copy .elementor-heading-title {
	color: var(--sabah-on-dark-muted);
	font-size: var(--sabah-fs-xs);
	font-weight: 400;
}

.sb-footer__credit {
	color: var(--sabah-on-dark-muted);
	font-size: var(--sabah-fs-xs);
	line-height: 1.8;
}

.sb-footer__credit p {
	margin: 0;
}

.sb-footer__credit a {
	color: var(--sabah-beige-deep);
	font-weight: 700;
	text-decoration: none;
	transition: color var(--sabah-dur) var(--sabah-ease);
}

.sb-footer__credit a:hover {
	color: #fff;
}

@media (max-width: 767px) {
	.sb-footer .sb-footer__card {
		border-radius: var(--sabah-radius-lg);
	}

	.sb-footer__menu--wide .elementor-nav-menu {
		columns: 2;
		column-gap: 28px;
	}

	.sb-footer .sb-footer__emblem img {
		height: 104px;
	}
}

/* =====================================================================
   Story page (story widgets in inc/widgets/article.php + Post Content)
   ===================================================================== */

.sabah-crumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
	color: var(--sabah-muted);
	font-size: var(--sabah-fs-xs);
}

.sabah-crumbs li + li::before {
	content: "/";
	margin-inline-end: 0.5rem;
	color: var(--sabah-beige-deep);
}

.sabah-crumbs a {
	color: inherit;
	text-decoration: none;
}

.sabah-crumbs a:hover {
	color: var(--sabah-primary);
}

.sabah-article-head {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
	padding-top: clamp(0.5rem, 2vw, 1.5rem);
	text-align: center;
}

/* Section label above the headline */
.sabah-card__cat {
	display: inline-block;
	padding: 4px 14px;
	border-radius: 999px;
	background: var(--sabah-primary);
	color: #fff;
	font-size: var(--sabah-fs-xs);
	font-weight: 700;
	text-decoration: none;
	transition: background-color var(--sabah-dur) var(--sabah-ease);
}

.sabah-card__cat:hover {
	background: var(--sabah-primary-deep);
	color: #fff;
}

.sabah-article-head__title {
	margin: 0;
	font-size: var(--sabah-fs-xl);
	line-height: 1.4;
}

.sabah-article-head__standfirst {
	max-width: 40rem;
	margin: 0;
	color: var(--sabah-muted);
	font-size: 1.15rem;
	line-height: 1.8;
}

.sabah-article-head__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 1.25rem;
	width: 100%;
	margin-top: 0.5rem;
	padding: 0.6rem 0.6rem 0.6rem 1.4rem;
	border-radius: 999px;
	background: var(--sabah-beige);
}

[dir="rtl"] .sabah-article-head__bar {
	padding: 0.6rem 1.4rem 0.6rem 0.6rem;
}

.sabah-share {
	display: flex;
	gap: 0.4rem;
}

.sabah-share__btn {
	position: relative;
	display: inline-grid;
	place-items: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--sabah-surface);
	color: var(--sabah-primary-deep);
	cursor: pointer;
	transition: transform var(--sabah-dur) var(--sabah-ease), background-color var(--sabah-dur) var(--sabah-ease), color var(--sabah-dur) var(--sabah-ease);
}

.sabah-share__btn .sabah-icon {
	width: 17px;
	height: 17px;
}

.sabah-share__btn:hover {
	background: var(--sabah-primary);
	color: #fff;
	transform: translateY(-2px);
}

.sabah-share__done {
	position: absolute;
	bottom: calc(100% + 6px);
	white-space: nowrap;
	font-size: var(--sabah-fs-xs);
	color: var(--sabah-primary);
}

.sabah-article-media {
	margin: 0;
}

.sabah-article-media .sabah-article-media__img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: var(--sabah-radius-xl);
	background: var(--sabah-beige);
	box-shadow: var(--sabah-shadow-lift);
}

.sabah-article-media figcaption {
	margin-top: 0.75rem;
	color: var(--sabah-muted);
	font-size: var(--sabah-fs-xs);
	text-align: center;
}

/* Article body (posts imported from the old site and new ones) */
.e-con.sabah-prose {
	display: block;
	max-width: var(--sabah-measure);
	margin-inline: auto;
	color: var(--sabah-text);
	font-size: 1.125rem;
	line-height: var(--sabah-lh-body);
}

.sabah-prose p {
	margin: 0 0 1.25em;
}

.sabah-prose h2,
.sabah-prose h3 {
	margin: 1.6em 0 0.6em;
	font-size: 1.35rem;
}

.sabah-prose a {
	text-decoration: underline;
}

.e-con.sabah-prose img,
.e-con.sabah-prose figure {
	border-radius: var(--sabah-radius-lg);
	margin-block: 1.5rem;
}

.sabah-prose figcaption,
.wp-caption-text {
	margin-top: 0.5rem;
	color: var(--sabah-muted);
	font-size: var(--sabah-fs-xs);
}

.sabah-prose iframe,
.sabah-prose video {
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	border: 0;
	border-radius: var(--sabah-radius-lg);
	background: #000;
}

.sabah-video {
	margin: 1.5rem 0;
}

.sabah-video video {
	max-height: 80vh;
	aspect-ratio: auto;
}

.sabah-prose .wp-block-pullquote,
.sabah-prose blockquote {
	margin: 1.75rem 0;
	padding: 1.25rem 1.75rem;
	border: 0;
	border-radius: var(--sabah-radius-lg);
	background: var(--sabah-beige);
	color: var(--sabah-primary-deep);
	font-size: 1.15rem;
	font-weight: 700;
}

.sabah-prose ul,
.sabah-prose ol {
	padding-inline-start: 1.5rem;
	margin: 0 0 1.25em;
}

.sabah-prose table {
	margin: 1.5rem 0;
	font-size: var(--sabah-fs-sm);
}

.sabah-prose td,
.sabah-prose th {
	padding: 0.5rem 0.75rem;
	border: 1px solid var(--sabah-line);
}

.sabah-article-foot {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.25rem;
	max-width: var(--sabah-measure);
	margin-inline: auto;
	padding: 1.5rem;
	border-radius: var(--sabah-radius-lg);
	background: var(--sabah-surface);
	box-shadow: var(--sabah-shadow);
}

.sabah-tags {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sabah-tags a {
	display: inline-block;
	padding: 0.25rem 0.9rem;
	border-radius: 99px;
	background: var(--sabah-tint);
	color: var(--sabah-primary);
	font-size: var(--sabah-fs-xs);
	font-weight: 700;
	text-decoration: none;
}

.sabah-tags a:hover {
	background: var(--sabah-primary);
	color: #fff;
}

.sabah-article-foot__share {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	font-weight: 700;
}

.sabah-article-foot .sabah-share__btn {
	background: var(--sabah-beige);
}

.sabah-article-foot .sabah-share__btn:hover {
	background: var(--sabah-primary);
}

/* Reading progress bar (single stories) */
.sabah-progress {
	position: fixed;
	inset-inline: 0;
	top: 0;
	z-index: 100;
	height: 3px;
	background: var(--sabah-primary);
	transform: scaleX(var(--p, 0));
	transform-origin: right;
}

html:not([dir="rtl"]) .sabah-progress {
	transform-origin: left;
}

@media (max-width: 767px) {
	.sabah-article-head__bar,
	[dir="rtl"] .sabah-article-head__bar {
		justify-content: center;
		padding: 0.75rem 1rem;
		border-radius: var(--sabah-radius-lg);
	}

	.sabah-article-media__img {
		border-radius: var(--sabah-radius-lg);
	}
}

/* Buttons printed by the page widgets */
.sabah-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-height: 46px;
	padding: 0 1.6rem;
	border: 2px solid var(--sabah-primary);
	border-radius: 99px;
	background: var(--sabah-primary);
	color: #fff;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	transition: background-color var(--sabah-dur) var(--sabah-ease), color var(--sabah-dur) var(--sabah-ease), border-color var(--sabah-dur) var(--sabah-ease);
}

.sabah-btn:hover {
	border-color: var(--sabah-primary-deep);
	background: var(--sabah-primary-deep);
	color: #fff;
}

.sabah-btn--ghost {
	background: transparent;
	color: var(--sabah-primary);
}

.sabah-btn--ghost:hover {
	background: var(--sabah-primary);
}

/* =====================================================================
   About and Contact pages (page widgets in inc/widgets/page-blocks.php)
   ===================================================================== */

/* Containers that only carry a theme class take no Elementor padding or width of their own. */
.e-con[class*="sabah-"] {
	--padding-top: 0;
	--padding-bottom: 0;
	--padding-left: 0;
	--padding-right: 0;
	--margin-top: 0;
	--margin-bottom: 0;
	--width: 100%;
}

.e-con.sabah-shell {
	display: block;
}

/* Plain pages (about, contact) rendered by Hello's page template */
.page-content,
.page-header {
	max-width: calc(var(--sabah-measure) + 2 * var(--sabah-gutter));
	margin-inline: auto;
	padding-inline: var(--sabah-gutter);
}

.page-header {
	padding-top: clamp(1.5rem, 4vw, 3rem);
}

.page-content {
	padding-bottom: 4rem;
	font-size: 1.075rem;
}

.page-header .entry-title {
	margin: 0 0 1.5rem;
	padding-bottom: 1rem;
	border-bottom: 3px solid var(--sabah-primary);
	font-size: var(--sabah-fs-xl);
}

.page-content h2 {
	margin: 2.25rem 0 1rem;
	font-size: var(--sabah-fs-lg);
}

.sabah-lead {
	font-size: 1.2rem;
	line-height: 1.9;
	color: var(--sabah-ink);
}

.sabah-team,
.sabah-contact {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sabah-team li,
.sabah-contact__item {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	padding: 1rem 1.25rem;
	border: 1px solid var(--sabah-line);
	border-radius: var(--sabah-radius-lg);
	background: var(--sabah-surface);
}

.sabah-team strong {
	color: var(--sabah-accent-ink);
	font-size: var(--sabah-fs-xs);
}

.sabah-team span {
	color: var(--sabah-ink);
	font-weight: 700;
	font-size: 1.1rem;
}

.sabah-contact__item {
	flex-direction: row;
	align-items: flex-start;
	gap: 0.9rem;
}

.sabah-contact__item > .sabah-icon {
	flex: none;
	width: 40px;
	height: 40px;
	padding: 9px;
	border-radius: 50%;
	background: var(--sabah-tint);
	color: var(--sabah-primary);
}

.sabah-contact__item div {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.35rem;
	min-width: 0;
	line-height: 1.7;
}

.sabah-contact__item a:not(.sabah-btn) {
	overflow-wrap: anywhere;
}

/* Phone and fax numbers never break across lines, in either direction of text. */
.sabah-contact [dir="ltr"],
.sabah-footer [dir="ltr"] {
	white-space: nowrap;
	unicode-bidi: isolate;
}

.sabah-contact .sabah-btn {
	min-height: 40px;
	font-size: var(--sabah-fs-sm);
}

/* =====================================================================
   Designed pages: About and Contact (Elementor + inc/widgets/page-blocks.php)
   ===================================================================== */

.sabah-section__intro h2,
.sabah-cta h2 {
	margin: 0 0 0.75rem;
	font-size: var(--sabah-fs-lg);
}

.sabah-hero {
	position: relative;
	overflow: hidden;
	padding-block: clamp(3rem, 8vw, 5.5rem) clamp(2.5rem, 6vw, 4.5rem);
	background: radial-gradient(110% 130% at 100% 0, var(--sabah-primary) 0, var(--sabah-primary-deep) 72%);
	color: var(--sabah-on-dark);
}

/* The logo's leaf as a soft watermark. */
.sabah-hero::after {
	content: "";
	position: absolute;
	inset-inline-end: clamp(-60px, -2vw, 0px);
	bottom: -40px;
	width: clamp(180px, 26vw, 320px);
	aspect-ratio: 1;
	background: url("../img/icon-512.png") center / contain no-repeat;
	opacity: 0.12;
	mix-blend-mode: luminosity;
	pointer-events: none;
}

.sabah-hero__eyebrow {
	display: inline-block;
	margin: 0 0 1rem;
	padding: 0.2rem 0.85rem;
	border-radius: 99px;
	background: rgba(201, 174, 146, 0.18);
	color: var(--sabah-beige-deep);
	font-size: var(--sabah-fs-sm);
	font-weight: 700;
}

.sabah-hero__title {
	max-width: 22ch;
	margin: 0 0 1rem;
	color: #fff;
	font-size: clamp(2rem, 1.2rem + 3.4vw, 3.4rem);
	line-height: 1.25;
}

.sabah-hero__lead {
	max-width: 60ch;
	margin: 0;
	font-size: 1.15rem;
	line-height: 1.9;
	opacity: 0.9;
}

.sabah-stats {
	margin-top: -2rem;
	position: relative;
	z-index: 1;
}

.sabah-stats ul {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin: 0;
	padding: 0;
	list-style: none;
	border-radius: var(--sabah-radius-lg);
	background: var(--sabah-surface);
	box-shadow: var(--sabah-shadow);
	overflow: hidden;
}

.sabah-stats li {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	padding: 1.5rem 1.25rem;
	text-align: center;
}

.sabah-stats li + li {
	border-inline-start: 1px solid var(--sabah-line);
}

.sabah-stats strong {
	color: var(--sabah-primary);
	font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.5rem);
	line-height: 1.1;
	font-variant-numeric: tabular-nums;
}

.sabah-stats span {
	color: var(--sabah-muted);
	font-size: var(--sabah-fs-sm);
}

.sabah-section {
	padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.sabah-section--tint {
	background: var(--sabah-beige);
}

.sabah-section__intro {
	max-width: 62ch;
	margin-bottom: 1.75rem;
}

.sabah-section__intro p {
	margin: 0;
	color: var(--sabah-muted);
	line-height: 1.9;
}

.sabah-tiles {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sabah-tiles a {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	padding: 1.25rem 1.25rem 1.25rem 3rem;
	border: 1px solid var(--sabah-line);
	border-radius: var(--sabah-radius-lg);
	background: var(--sabah-surface);
	color: var(--sabah-ink);
	text-decoration: none;
	transition: border-color var(--sabah-dur), transform var(--sabah-dur) var(--sabah-ease), box-shadow var(--sabah-dur);
}

html:not([dir="rtl"]) .sabah-tiles a {
	padding: 1.25rem 3rem 1.25rem 1.25rem;
}

.sabah-tiles a:hover {
	transform: translateY(-3px);
	border-color: var(--sabah-primary);
	box-shadow: var(--sabah-shadow);
}

.sabah-tiles__name {
	font-size: 1.1rem;
	font-weight: 700;
}

.sabah-tiles__count {
	color: var(--sabah-muted);
	font-size: var(--sabah-fs-sm);
}

.sabah-tiles .sabah-icon {
	position: absolute;
	inset-inline-end: 1.1rem;
	top: 50%;
	margin-top: -10px;
	color: var(--sabah-primary);
}

html:not([dir="rtl"]) .sabah-tiles .sabah-icon {
	transform: scaleX(-1);
}

/* Elementor bands on designed pages (About): full-width rows with a centred inner box. */
.e-con.sabah-band {
	display: block;
	padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.e-con.sabah-band--tint {
	background: var(--sabah-beige);
}

.e-con.sabah-bandwrap {
	display: block;
	width: 100%;
	max-width: calc(var(--sabah-container) + 2 * var(--sabah-gutter));
	margin-inline: auto;
	padding-inline: var(--sabah-gutter);
}

/* Team: four cards in one row. */
.e-con.sabah-grid-4 {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1rem;
}

.sabah-person {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.35rem;
	height: 100%;
	padding: 1.75rem 1.25rem;
	border-radius: var(--sabah-radius-lg);
	background: var(--sabah-surface);
	text-align: center;
}

.sabah-person__avatar,
.sabah-person__photo {
	display: grid;
	place-items: center;
	width: 72px;
	height: 72px;
	margin-bottom: 0.5rem;
	border-radius: 50%;
	object-fit: cover;
}

.sabah-person__avatar {
	background: linear-gradient(135deg, var(--sabah-primary), var(--sabah-accent));
	color: #fff;
	font-size: 1.75rem;
	font-weight: 700;
}

.sabah-person__name {
	color: var(--sabah-ink);
	font-size: 1.1rem;
}

.sabah-person__role {
	color: var(--sabah-accent-ink);
	font-size: var(--sabah-fs-sm);
	font-weight: 700;
}

@media (max-width: 1024px) {
	.e-con.sabah-grid-4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 480px) {
	.e-con.sabah-grid-4 {
		grid-template-columns: minmax(0, 1fr);
	}
}

.sabah-cta {
	padding-block: clamp(2.5rem, 6vw, 3.5rem);
	background: var(--sabah-primary);
	color: var(--sabah-on-dark);
}

.sabah-cta .sabah-wrap {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
}

.sabah-cta h2 {
	color: #fff;
}

.sabah-cta p {
	margin: 0;
	opacity: 0.9;
}

.sabah-cta__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.sabah-btn .sabah-icon {
	width: 18px;
	height: 18px;
}

.sabah-btn--light {
	border-color: #fff;
	background: #fff;
	color: var(--sabah-primary-deep);
}

.sabah-btn--light:hover {
	border-color: var(--sabah-beige-deep);
	background: var(--sabah-beige-deep);
	color: var(--sabah-ink);
}

.sabah-btn--outline-light {
	border-color: rgba(255, 255, 255, 0.6);
	background: transparent;
	color: #fff;
}

.sabah-btn--outline-light:hover {
	border-color: #fff;
	background: rgba(255, 255, 255, 0.12);
}

/* Contact channels */
.sabah-channels {
	margin-top: -2rem;
	position: relative;
	z-index: 1;
}

.sabah-channels ul {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sabah-channels a {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
	height: 100%;
	padding: 1.4rem;
	border-radius: var(--sabah-radius-lg);
	background: var(--sabah-surface);
	box-shadow: var(--sabah-shadow);
	color: var(--sabah-ink);
	text-decoration: none;
	transition: transform var(--sabah-dur) var(--sabah-ease);
}

.sabah-channels a:hover {
	transform: translateY(-3px);
}

.sabah-channels .sabah-icon {
	width: 40px;
	height: 40px;
	margin-bottom: 0.5rem;
	padding: 9px;
	border-radius: 50%;
	background: var(--sabah-tint);
	color: var(--sabah-primary);
}

.sabah-channels strong {
	font-size: 1.1rem;
}

.sabah-channels span {
	color: var(--sabah-muted);
	font-size: var(--sabah-fs-sm);
	overflow-wrap: anywhere;
}

.sabah-channels .is-primary a {
	background: var(--sabah-primary);
	color: #fff;
}

.sabah-channels .is-primary .sabah-icon {
	background: rgba(255, 255, 255, 0.18);
	color: #fff;
}

.sabah-channels .is-primary span {
	color: rgba(255, 255, 255, 0.9);
}

.sabah-faq {
	max-width: 52rem;
}

.sabah-faq details {
	margin-bottom: 0.75rem;
	border: 1px solid var(--sabah-line);
	border-radius: var(--sabah-radius-lg);
	background: var(--sabah-surface);
}

.sabah-faq summary {
	position: relative;
	padding: 1rem 1.25rem;
	padding-inline-end: 3rem;
	color: var(--sabah-ink);
	font-weight: 700;
	cursor: pointer;
	list-style: none;
}

.sabah-faq summary::-webkit-details-marker {
	display: none;
}

.sabah-faq summary::after {
	content: "+";
	position: absolute;
	inset-inline-end: 1.25rem;
	top: 50%;
	transform: translateY(-50%);
	color: var(--sabah-primary);
	font-size: 1.5rem;
	line-height: 1;
	transition: transform var(--sabah-dur) var(--sabah-ease);
}

.sabah-faq details[open] summary::after {
	transform: translateY(-50%) rotate(45deg);
}

.sabah-faq details p {
	margin: 0;
	padding: 0 1.25rem 1.1rem;
	color: var(--sabah-muted);
	line-height: 1.9;
}

@media (max-width: 1024px) {
	.sabah-channels ul {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 700px) {
	.sabah-stats ul {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.sabah-stats li:nth-child(3) {
		border-inline-start: 0;
	}
	.sabah-stats li:nth-child(n + 3) {
		border-top: 1px solid var(--sabah-line);
	}
	.sabah-channels ul {
		grid-template-columns: minmax(0, 1fr);
	}
}

/*
 * The same pages in the floating look: the hero, the tinted bands and the
 * call to action are rounded panels inside the page, never edge to edge.
 */
.e-con.sabah-shell {
	width: 100%;
	max-width: calc(var(--sabah-container) + 2 * var(--sabah-gutter));
	margin-inline: auto;
	padding-inline: var(--sabah-gutter);
}

.e-con.sabah-shell:first-child {
	padding-top: 28px;
}

.sabah-hero {
	border-radius: var(--sabah-radius-xl);
	background: radial-gradient(120% 150% at 100% 0%, var(--sabah-primary-soft) 0%, var(--sabah-primary) 42%, var(--sabah-primary-deep) 100%);
}

.sabah-hero .sabah-wrap,
.sabah-cta .sabah-wrap {
	padding-inline: clamp(1.5rem, 4vw, 3.5rem);
}

.sabah-hero::after {
	background-image: url("../img/emblem-beige.png");
	opacity: 0.1;
	mix-blend-mode: normal;
}

.sabah-hero__eyebrow {
	background: color-mix(in srgb, var(--sabah-beige) 18%, transparent);
	color: var(--sabah-on-dark);
}

.sabah-stats .sabah-wrap,
.sabah-channels .sabah-wrap {
	padding-inline: clamp(1rem, 3vw, 2.5rem);
}

.sabah-stats ul {
	border-radius: var(--sabah-radius-lg);
	box-shadow: var(--sabah-shadow-lift);
}

.e-con.sabah-band--tint {
	background: none;
	padding-inline: var(--sabah-gutter);
}

.e-con.sabah-band--tint > .e-con.sabah-bandwrap {
	max-width: var(--sabah-container);
	padding: clamp(1.75rem, 4vw, 3.5rem);
	border-radius: var(--sabah-radius-xl);
	background: var(--sabah-beige);
}

.sabah-tiles a,
.sabah-faq details {
	border-color: transparent;
	box-shadow: var(--sabah-shadow);
}

.sabah-person {
	box-shadow: var(--sabah-shadow);
}

.sabah-person__avatar {
	width: 64px;
	height: 84px;
	background: var(--sabah-primary);
	color: var(--sabah-beige);
}

.sabah-cta {
	margin-bottom: 72px;
	border-radius: var(--sabah-radius-xl);
	background: radial-gradient(120% 150% at 0% 100%, var(--sabah-primary-soft) 0%, var(--sabah-primary) 45%, var(--sabah-primary-deep) 100%);
}

.e-con.sabah-band--tint:last-child {
	padding-bottom: 72px;
}

@media (max-width: 767px) {
	.sabah-hero,
	.sabah-cta,
	.e-con.sabah-band--tint > .e-con.sabah-bandwrap {
		border-radius: var(--sabah-radius-lg);
	}
}

/* =====================================================================
   Reveal on scroll (only for blocks below the fold; see main.js)
   ===================================================================== */

.sabah-pre {
	opacity: 0;
	transform: translateY(22px);
}

.sabah-in {
	opacity: 1;
	transform: none;
	transition: opacity 800ms var(--sabah-ease), transform 800ms var(--sabah-ease);
}

/* ---------- Motion preference ---------- */

@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;
	}
}
