/*
 * AdvertUp theme styles: tokens, base, header/menu panel, footer, blog/archive/article templates, 404.
 * Direction-neutral: logical properties only, so the same rules serve English (LTR) and Arabic (RTL).
 * Breakpoints (docs/design-tokens.md): 767 phone, 991 columns stack, 1270 header becomes the hamburger, 1600 side social links.
 */

/* ---------- Tokens (same names and values as docs/design-tokens.md) ---------- */
:root {
	--au-brand: #3cc0c6;
	--au-brand-hover: #00bcc6;
	--au-brand-ink: #16767b;
	--au-on-brand: #111;
	--au-ink: #111;
	--au-black: #000;
	--au-white: #fff;
	--au-charcoal: #302f2d;
	--au-text: #333;
	--au-grey-600: #636363;
	--au-muted: #a4a3a6;
	--au-surface: #fbfbfb;
	--au-line: #e6e6e6;
	--au-font-latin: Montserrat, "Helvetica Neue", Arial, sans-serif;
	--au-font-ar: Almarai, Tahoma, Arial, sans-serif;
	--au-font-display: Rubik, Montserrat, sans-serif;
	--au-wide: 1400px;
	--au-mid: 1140px;
	--au-prose: 800px;
	--au-gutter: 20px;
	--au-header-h: 141px;      /* header at the top of the page */
	--au-header-stuck: 109px;  /* compact sticky header after scrolling (wide screens only) */
}
@media (max-width: 1270px) {
	:root { --au-header-h: 76px; --au-header-stuck: 92px; }
}
@media (max-width: 1024px) {
	:root { --au-header-h: 70px; --au-header-stuck: 0px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--au-header-stuck) + 16px); }
body {
	margin: 0;
	background: var(--au-white);
	color: #1a1a1a;
	font: 400 1rem/1.8 var(--au-font-latin);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-wrap: break-word;
}
html[lang^="ar"] body, :lang(ar) { font-family: var(--au-font-ar); letter-spacing: 0; }
/* Letter-spacing pulls Arabic letters apart. The page builder carries per-widget Latin values (1-2px), which cannot
   be outranked one by one: hence the single !important. */
html[lang^="ar"] body * { letter-spacing: 0 !important; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 600; line-height: 1.4; letter-spacing: 1px; }
:lang(ar) :is(h1, h2, h3, h4, h5, h6) { letter-spacing: 0; }
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }
p { margin: 0 0 1.75em; }
ul, ol { margin: 0 0 1.75em; padding: 0; margin-inline-start: 1.25em; }
a { color: var(--au-brand-ink); text-decoration: none; transition: color .2s; }
a:hover { color: var(--au-ink); } /* dark areas (header, panel, title band, footer) set their own hover colour */
img, svg, video, iframe { max-width: 100%; vertical-align: middle; }
img { height: auto; }
figure { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; max-width: 100%; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--au-brand); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
	clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link:focus {
	position: fixed !important; inset-block-start: 8px; inset-inline-start: 8px; z-index: 100000; width: auto; height: auto; margin: 0;
	padding: 12px 20px; clip-path: none; background: var(--au-white); color: var(--au-ink); font-weight: 700;
}

/* Utility classes that the saved footer and menu widgets use (Appearance > Widgets). */
.mt-0 { margin-top: 0; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 2rem; }
.fw-300 { font-weight: 300; }
.fs-64 { font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4rem); line-height: 1.3; }
.text-muted { color: var(--au-muted); }

/* ---------- Layout ---------- */
.site-content { display: block; min-height: 40vh; }
.au-container { width: min(100% - 2 * var(--au-gutter), var(--au-wide)); margin-inline: auto; }
.au-container--mid { width: min(100% - 2 * var(--au-gutter), var(--au-mid)); }
.au-container--narrow { width: min(100% - 2 * var(--au-gutter), var(--au-prose)); }
.au-section { padding-block: clamp(56px, 8vw, 128px); }
.au-section--article { padding-block: clamp(32px, 5vw, 64px) clamp(40px, 6vw, 80px); }
.au-section--flush { padding-block: 0; }
.au-section--muted { background: var(--au-surface); }
.au-layout { display: grid; gap: 48px 62px; }
.au-layout > * { min-width: 0; }
@media (min-width: 992px) {
	.au-layout--sidebar { grid-template-columns: minmax(0, 1fr) 313px; }
}

/* ---------- Header ----------
   Same treatment as the previous theme: a black bar above the content ("flow") or transparent over the dark title band
   ("overlay"); once the page is scrolled, a compact dark header slides in and stays (wider than 1024px only).
   The slot keeps the header's place, so nothing moves when the header becomes fixed. */
.au-header-slot { position: relative; z-index: 9990; height: var(--au-header-h); background: var(--au-black); }
.au-header-overlay .au-header-slot { height: 0; background: none; }
.au-header { position: absolute; inset-block-start: 0; inset-inline: 0; width: 100%; color: var(--au-white); }
.au-header.is-stuck {
	position: fixed; background: var(--au-ink); box-shadow: 0 1px 20px rgb(0 0 0 / .04);
	animation: au-header-in .4s cubic-bezier(.2, 1, .22, 1);
}
.admin-bar .au-header.is-stuck { inset-block-start: 32px; }
@keyframes au-header-in { from { transform: translateY(-100%); } }
.au-header__inner { display: flex; align-items: center; gap: 24px; min-height: var(--au-header-h); padding-inline: var(--au-gutter); }
.au-header.is-stuck .au-header__inner { min-height: var(--au-header-stuck); }
.au-logo, .custom-logo-link { flex: none; display: inline-flex; }
.au-logo img, .custom-logo-link img { width: auto; height: 50px; }
.au-nav { margin-inline-start: auto; }
.au-nav__list, .au-cta { display: flex; align-items: center; margin: 0; padding: 0; list-style: none; }
.au-nav__list > li { position: relative; }
.au-nav__list a { display: block; padding: 19px; color: var(--au-white); font-weight: 700; line-height: 21px; white-space: nowrap; }
.au-nav__list a:hover, .au-nav__list .current-menu-item > a, .au-nav__list .current_page_item > a, .au-nav__list .current-menu-ancestor > a { color: var(--au-brand); }
.au-nav__list .sub-menu {
	position: absolute; inset-block-start: 100%; inset-inline-start: 0; min-width: 220px; margin: 0; padding: 8px 0; list-style: none;
	background: var(--au-ink); visibility: hidden; opacity: 0; transition: opacity .2s;
}
.au-nav__list li:hover > .sub-menu, .au-nav__list li:focus-within > .sub-menu { visibility: visible; opacity: 1; }
.au-nav__list .sub-menu a { padding: 10px 19px; }
.au-header__actions { display: flex; align-items: center; gap: 28px; margin-inline-start: 28px; }
/* :is(:hover, :focus) outranks the generic button states that Elementor pages get from elementor-compat.css. */
.au-burger, .au-burger:is(:hover, :focus) { display: grid; gap: 6px; padding: 14px 10px; border: 0; border-radius: 0; background: none; }
.au-burger span { display: block; width: 20px; height: 3px; background: var(--au-white); transition: transform .2s; }
.au-burger:hover span { background: var(--au-brand); }
.au-cta a { display: block; padding: 19px 43px; background: var(--au-white); color: var(--au-ink); font-weight: 700; line-height: 21px; white-space: nowrap; }
.au-cta a:hover { background: var(--au-brand); color: var(--au-on-brand); }
@media (max-width: 1270px) {
	.au-nav, .au-header__actions .au-cta { display: none; }
	.au-header__actions { margin-inline-start: auto; }
}
@media (max-width: 1024px) {
	.au-logo img, .custom-logo-link img { height: 40px; }
}

/* ---------- Menu panel: primary menu on phones/tablets, fullscreen menu on wide screens ----------
   A bar with the logo and the close button where the header sits, then the menu and the office details, centred. */
.au-panel { position: fixed; inset: 0; z-index: 9995; display: flex; flex-direction: column; overflow-y: auto; background: var(--au-ink); color: var(--au-white); }
.au-panel[hidden] { display: none; }
.admin-bar .au-panel { inset-block-start: 32px; }
.au-panel__bar { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--au-header-h); padding-inline: var(--au-gutter); }
.au-panel__close, .au-panel__close:is(:hover, :focus) {
	display: grid; place-items: center; flex: none; width: 48px; height: 48px; margin-inline-start: auto; padding: 0;
	border: 1px solid rgb(255 255 255 / .3); border-radius: 50%; background: none; color: var(--au-white); transition: color .2s, border-color .2s;
}
.au-panel__close:is(:hover, :focus-visible) { border-color: var(--au-brand); color: var(--au-brand); }
.au-panel__inner { display: grid; gap: 40px; width: min(100% - 2 * var(--au-gutter), var(--au-mid)); margin: auto; margin-block-start: 0; padding-block: 16px 64px; }
.au-panel__menu { margin: 0; padding: 0; list-style: none; }
.au-panel__menu ul { margin: 0; padding: 0; padding-inline-start: 20px; list-style: none; }
.au-panel__menu a { display: inline-block; padding: 10px 0; color: var(--au-white); font-size: 1.25rem; font-weight: 700; }
.au-panel__menu a:hover, .au-panel__menu .current-menu-item > a { color: var(--au-brand); }
.au-panel__menu.au-cta { display: block; margin-block-start: 24px; }
.au-panel__menu.au-cta a { display: inline-block; padding: 16px 40px; color: var(--au-ink); font-size: 1rem; }
.au-panel__menu--wide { display: none; }
.au-panel__aside { color: var(--au-muted); font-size: 1rem; line-height: 1.7; }
.au-panel__aside .widget { margin-block-end: 2rem; }
.au-panel__aside .widget:last-child { margin-block-end: 0; }
.au-panel__aside :is(h2, h3, h4, h5) { margin: 0 0 .35em; color: var(--au-white); font-size: 1.125rem; line-height: 1.3; }
.au-panel__aside p { margin-block-end: 1.25em; }
.au-panel__aside a { color: inherit; }
.au-panel__aside a:hover { color: var(--au-brand); }
@media (max-width: 782px) {
	.admin-bar .au-panel { inset-block-start: 46px; }
}
@media (max-width: 600px) { /* the admin bar scrolls away at this width: cover it */
	.admin-bar .au-panel { inset-block-start: 0; z-index: 100000; }
}
@media (min-width: 1271px) {
	.au-panel__inner { grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: 80px; align-items: center; margin-block: auto; padding-block: 24px 96px; }
	.au-panel__menu--compact { display: none !important; }
	.au-panel__menu--wide { display: block; }
	.au-panel__menu--wide a { padding: 10px 0; font-size: clamp(1.875rem, 1rem + 1.4vw, 2.5rem); line-height: 1.2; letter-spacing: -.01em; }
	.au-panel__menu--wide ul a { font-size: 1.25rem; }
	.au-panel__aside { padding-inline-start: 48px; border-inline-start: 1px solid rgb(255 255 255 / .16); }
}
.au-panel-open { overflow: hidden; }

/* ---------- Title band ---------- */
.au-hero { position: relative; padding-block: 80px; background: var(--au-black) center / cover no-repeat; color: var(--au-white); }
.au-header-overlay .au-hero { padding-block-start: 160px; } /* room for the transparent header, as before */
.au-hero--image::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgb(0 0 0 / .55), rgb(0 0 0 / .7)); }
.au-hero > .au-container { position: relative; }
/* Journal layout of an article: the title on white under the black header. */
.au-hero--light { padding-block: 64px 0; background: var(--au-white); color: #1a1a1a; }
.au-hero.au-hero--light .au-meta, .au-hero.au-hero--light .au-meta a { color: #17161a; }
.au-hero.au-hero--light .au-meta a:hover { color: var(--au-brand-ink); }
.au-hero--light .au-meta__cat { font-size: .8125rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
:lang(ar) .au-hero--light .au-meta__cat { letter-spacing: 0; }
.au-hero__title { margin: 0; font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); font-weight: 600; line-height: 1.225; letter-spacing: 1px; }
:lang(ar) .au-hero__title { letter-spacing: 0; line-height: 1.5; }
.au-hero__subtitle { margin: 16px 0 0; }
.au-hero__logo { display: block; max-height: 80px; width: auto; margin-block-end: 32px; }
.au-hero .au-meta { margin-block-end: 16px; }
.au-hero .au-meta, .au-hero .au-meta a { color: var(--au-white); }
.au-hero .au-meta a:hover { color: var(--au-brand); }

/* ---------- Post meta (category · reading time) ---------- */
.au-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; font-size: .94rem; line-height: 1.6; }
.au-meta__cat { display: inline-block; min-height: 24px; color: #17161a; font-weight: 500; }
.au-meta__cat + .au-meta__cat::before { content: "،\00a0"; }
html:not([dir="rtl"]) .au-meta__cat + .au-meta__cat::before { content: ",\00a0"; }
.au-meta__time { white-space: nowrap; }
.au-meta__time::before { content: ""; display: inline-block; width: 4px; height: 4px; margin-inline: 8px; border-radius: 50%; background: var(--au-brand); vertical-align: middle; }
.au-meta__time:first-child::before { display: none; }

/* ---------- Category tabs ---------- */
.au-tabs { margin-block-end: 64px; }
.au-tabs ul { display: flex; flex-wrap: wrap; gap: 8px 44px; margin: 0; padding: 0; list-style: none; }
.au-tabs a { display: inline-block; padding-block: 6px; color: #17161a; font-size: 1.25rem; font-weight: 500; line-height: 1.4; border-block-end: 2px solid transparent; }
.au-tabs a:hover, .au-tabs a[aria-current] { border-color: currentColor; }
.au-tabs__count { color: var(--au-grey-600); font-size: .75rem; vertical-align: super; }
@media (max-width: 767px) {
	.au-tabs { margin-block-end: 40px; }
	.au-tabs ul { gap: 4px 28px; }
	.au-tabs a { font-size: 1.125rem; }
}

/* ---------- Cards ----------
   The post artwork carries lettering and comes in several ratios and sizes, so it is never cropped or blown up:
   lists show it beside the text at its own ratio; three-column rows letterbox it into one 16:9 box. */
.au-cards { display: grid; gap: 48px; }
.au-cards--three { gap: 40px 30px; }
@media (min-width: 768px) { .au-cards--three { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 992px) { .au-cards--three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.au-card { min-width: 0; }
.au-card__image { display: block; margin-block-end: 24px; overflow: hidden; border-radius: 4px; background: var(--au-surface); }
.au-card__image img { display: block; width: 100%; height: auto; transition: transform .4s; }
.au-cards--three .au-card__image { aspect-ratio: 16 / 9; }
.au-cards--three .au-card__image img { height: 100%; object-fit: contain; }
.au-card__image--empty { aspect-ratio: 16 / 9; background: var(--au-ink) radial-gradient(circle at 80% 125%, var(--au-brand) 0 44%, transparent 45%); }
.au-card:hover .au-card__image img { transform: scale(1.03); }
@media (min-width: 768px) {
	.au-cards:not(.au-cards--three) .au-card { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; align-items: center; }
	.au-cards:not(.au-cards--three) .au-card__image { margin-block-end: 0; }
}
.au-card__title { margin: 10px 0 14px; font-size: clamp(1.25rem, 1.1rem + .5vw, 1.5rem); font-weight: 600; line-height: 1.3; }
.au-cards--three .au-card__title { font-size: 1.375rem; }
.au-card__title a { color: #17161a; }
.au-card__title a:hover { color: var(--au-brand-ink); }
.au-card__excerpt p { margin: 0; }
.more-link { font-weight: 500; white-space: nowrap; }
/* Theme links keep the dark teal (4.5:1 on white) on Elementor-built posts too, where the compatibility stylesheet
   sets a lighter link colour for the page body. */
.au-tags a, .au-section__head a, .more-link, .au-byline a { color: var(--au-brand-ink); }
.au-tags a:hover, .au-section__head a:hover, .more-link:hover, .au-byline a:hover { color: var(--au-ink); }
.au-empty { max-width: 640px; }
.au-empty h2 { margin-block-end: 16px; }

/* ---------- Pagination ---------- */
.au-pagination { margin-block-start: 64px; }
.au-pagination ul { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 4px; margin: 0; padding: 0; list-style: none; }
.au-pagination .page-numbers { display: inline-flex; align-items: center; gap: 10px; min-width: 44px; min-height: 44px; padding: 6px 12px; justify-content: center; color: #17161a; font-size: 1.1875rem; font-weight: 700; border-radius: 4px; }
.au-pagination a.page-numbers:hover { color: var(--au-brand-ink); background: var(--au-surface); }
.au-pagination .page-numbers.current { color: var(--au-brand-ink); box-shadow: inset 0 -2px 0 currentColor; border-radius: 0; }
.au-pagination__arrow { position: relative; display: inline-block; width: 22px; height: 2px; background: currentColor; }
.au-pagination__arrow::after { content: ""; position: absolute; top: -4px; right: 0; width: 10px; height: 10px; border-top: 2px solid; border-right: 2px solid; transform: rotate(45deg); }
/* The arrow points right by default: mirror it for "previous" in LTR and for "next" in RTL. */
html:not([dir="rtl"]) .au-pagination .prev .au-pagination__arrow, [dir="rtl"] .au-pagination .next .au-pagination__arrow { transform: scaleX(-1); }

@media (max-width: 480px) {
	.au-pagination .page-numbers { min-width: 36px; min-height: 40px; padding: 4px 8px; font-size: 1rem; }
	.au-pagination__arrow { width: 16px; }
}

/* ---------- Sidebar and widgets ---------- */
.au-layout__sidebar .widget { margin-block-end: 64px; line-height: 1.6; }
.widget-title { margin: 0 0 24px; font-size: 1rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
:lang(ar) .widget-title { letter-spacing: 0; }
.au-layout__sidebar ul { margin: 0; padding: 0; list-style: none; }
.au-layout__sidebar .widget_categories li, .au-layout__sidebar .widget_archive li { padding-block: 10px; border-block-end: 1px solid var(--au-line); }
.royalstudio-widget-list li { margin-block-end: 32px; }
.royalstudio-widget-list .blog-grid-image { margin-block-end: 16px; overflow: hidden; border-radius: 4px; }
.au-layout__sidebar .royalstudio-widget-list .blog-grid-image img { display: block; width: 100%; height: auto; }
.royalstudio-widget-list .blog-grid-headline { margin: 0 0 8px; font-size: 1rem; font-weight: 700; line-height: 1.5; letter-spacing: 0; }
.royalstudio-widget-list .blog-grid-headline a { color: #17161a; }
.royalstudio-widget-list .blog-grid-headline a:hover { color: var(--au-brand-ink); }
.royalstudio-widget-list .author-attributes { color: var(--au-grey-600); font-size: .8125rem; }

/* ---------- Search form ---------- */
.au-search, .widget_search form { position: relative; display: flex; }
.au-search input, .widget_search input[type="search"] { flex: 1; min-width: 0; min-height: 52px; padding: 14px 15px; padding-inline-end: 52px; border: 1px solid transparent; border-radius: 4px; background: rgb(23 22 26 / .04); }
.au-search input:focus, .widget_search input[type="search"]:focus { border-color: var(--au-brand-ink); outline: 0; background: var(--au-white); }
.au-search button, .au-search button:is(:hover, :focus) { position: absolute; inset-block: 0; inset-inline-end: 0; width: 52px; border: 0; background: none; color: var(--au-ink); }
.au-search .au-icon { width: 20px; height: 20px; }

/* ---------- Article ---------- */
.au-byline { margin: 0 0 32px; color: var(--au-grey-600); font-size: .94rem; }
.au-byline a { color: inherit; font-weight: 600; }
.au-lead-image { margin: 0 0 40px; }
.au-lead-image img { display: block; width: 100%; height: auto; border-radius: 4px; }
.au-prose { color: var(--au-text); font-size: clamp(1.0625rem, 1rem + .25vw, 1.1875rem); line-height: 1.9; overflow-wrap: anywhere; }
.au-prose > * { margin-block: 0 1.5em; }
.au-prose > :last-child { margin-block-end: 0; }
.au-prose :is(h2, h3, h4, h5, h6) { margin-block: 2em .75em; color: #1a1a1a; font-weight: 700; line-height: 1.45; }
.au-prose > :is(h2, h3, h4):first-child { margin-block-start: 0; }
.au-prose h2 { font-size: 1.75rem; }
.au-prose h3 { font-size: 1.4rem; }
.au-prose h4 { font-size: 1.2rem; }
.au-prose a { color: var(--au-brand-ink); text-decoration: underline; text-underline-offset: 3px; }
.au-prose a:hover { color: var(--au-ink); }
.au-prose :is(ul, ol) { margin-inline-start: 0; padding-inline-start: 1.5em; }
.au-prose li { margin-block: .4em; }
.au-prose li > :is(ul, ol) { margin-block: .4em 0; }
.au-prose img { display: block; height: auto; margin-inline: auto; border-radius: 4px; }
.au-prose figure, .au-prose .wp-block-image { margin-block: 2.25em; margin-inline: 0; text-align: center; }
.au-prose figure img { margin-block: 0; }
.au-prose figcaption { margin-block-start: 10px; color: var(--au-grey-600); font-size: .875rem; line-height: 1.6; text-align: center; }
.au-prose blockquote { margin-inline: 0; padding: 4px 24px; border-inline-start: 3px solid var(--au-brand); color: var(--au-charcoal); }
.au-prose blockquote > :last-child { margin-block-end: 0; }
.au-prose table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; font-size: .95em; }
.au-prose :is(th, td) { padding: 10px 14px; border: 1px solid var(--au-line); text-align: start; vertical-align: top; }
.au-prose th { background: var(--au-surface); }
.au-prose :is(pre, code) { direction: ltr; text-align: left; font-size: .9em; }
.au-prose pre { padding: 16px; overflow-x: auto; background: var(--au-surface); border-radius: 4px; }
.au-prose hr { border: 0; border-block-start: 1px solid var(--au-line); }
.au-prose iframe, .au-prose video { display: block; margin-inline: auto; }
.au-prose .wp-block-embed__wrapper iframe { width: 100%; }
/* Editorial alignment (block editor and classic editor). */
.au-prose .aligncenter, .au-prose .wp-block-image.aligncenter { margin-inline: auto; text-align: center; }
.au-prose .alignleft { float: left; max-width: 50%; margin: .4em 1.5em 1em 0; }
.au-prose .alignright { float: right; max-width: 50%; margin: .4em 0 1em 1.5em; }
.au-prose .alignwide { width: min(100vw - 2 * var(--au-gutter), 1100px); max-width: none; margin-inline: calc(50% - min(50vw - var(--au-gutter), 550px)); }
.au-prose .alignfull { width: 100vw; max-width: none; margin-inline: calc(50% - 50vw); }
.au-prose .alignfull img, .au-prose .alignwide img { width: 100%; border-radius: 0; }
.au-prose::after { content: ""; display: block; clear: both; }
@media (max-width: 600px) {
	.au-prose .alignleft, .au-prose .alignright { float: none; max-width: 100%; margin: 2em auto; }
}
/* Rank Math table of contents. */
.au-prose .wp-block-rank-math-toc-block { padding: 24px 28px; background: var(--au-surface); border: 1px solid var(--au-line); border-radius: 4px; }
.au-prose .wp-block-rank-math-toc-block h2 { margin-block: 0 12px; font-size: 1.25rem; }
.au-prose .wp-block-rank-math-toc-block nav > ul { margin: 0; }
.au-prose .wp-block-rank-math-toc-block li { margin-block: .25em; line-height: 1.7; }
.au-prose .wp-block-rank-math-toc-block a { text-decoration: none; }
.au-prose .wp-block-rank-math-toc-block a:hover { text-decoration: underline; }

.au-page-links { margin-block-start: 32px; font-weight: 700; }
.au-tags { margin: 48px 0 0; }
.au-tags span { color: var(--au-grey-600); }
.au-tags a { display: inline-block; margin: 4px 0; margin-inline-end: 6px; padding: 4px 14px; border: 1px solid var(--au-line); border-radius: 999px; font-size: .9rem; }
.au-tags a:hover { border-color: var(--au-brand-ink); }
.au-share { display: flex; gap: 12px; margin: 40px 0 0; padding: 24px 0 0; border-block-start: 1px solid var(--au-line); list-style: none; }
.au-share a { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--au-line); border-radius: 50%; color: var(--au-ink); }
.au-share a:hover { border-color: var(--au-brand-ink); color: var(--au-brand-ink); }
.au-share .au-icon { width: 18px; height: 18px; }

.au-section__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 24px; margin-block-end: 48px; }
.au-section__head h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); }
.au-section__head a { font-weight: 600; }
.au-next { text-align: center; }
.au-next__label { margin: 0 0 16px; color: var(--au-grey-600); font-size: 1.125rem; text-transform: uppercase; letter-spacing: 1px; }
:lang(ar) .au-next__label { letter-spacing: 0; }
.au-next__title { color: #17161a; font-size: clamp(1.5rem, 1rem + 2.6vw, 3rem); font-weight: 600; line-height: 1.35; }
.au-next__title:hover { color: var(--au-brand-ink); }

/* ---------- Comments ---------- */
.au-comments__title, .comment-reply-title { margin: 0 0 24px; font-size: 1.4375rem; font-weight: 700; }
.au-comments__list { margin: 0 0 40px; padding: 0; list-style: none; }
.au-comments__list ol { margin: 0; padding-inline-start: 32px; list-style: none; }
.au-comments__list .comment-body { padding-block: 20px; border-block-end: 1px solid var(--au-line); }
.au-comments__list .avatar { border-radius: 50%; margin-inline-end: 12px; }
.comment-form label { display: block; margin-block-end: 6px; font-size: .93rem; font-weight: 500; }
.comment-form :is(input[type="text"], input[type="email"], input[type="url"], textarea) { width: 100%; padding: 14px 15px; border: 1px solid transparent; border-radius: 4px; background: rgb(23 22 26 / .05); }
.comment-form :is(input, textarea):focus { border-color: var(--au-brand-ink); outline: 0; background: var(--au-white); }
.comment-form p { margin-block-end: 20px; }
.comment-form .comment-form-cookies-consent label { display: inline; }
/* Same button as the contact forms: teal with dark text, black on hover. */
.comment-form input[type="submit"], .au-button {
	display: inline-block; padding: 14px 28px; border: 0; border-radius: 3px; background: var(--au-brand); color: var(--au-on-brand);
	font-weight: 700; cursor: pointer; transition: background .2s, color .2s;
}
.comment-form input[type="submit"]:is(:hover, :focus), .au-button:is(:hover, :focus) { background: var(--au-black); color: var(--au-white); }
.comment-form input[type="checkbox"] { width: 18px; height: 18px; margin-inline-end: 8px; accent-color: var(--au-brand-ink); vertical-align: -3px; }

/* ---------- Projects (case studies) ---------- */
/* #projects-filter is only the data source of the search/filter controls that advertup-site builds; the wrapper
   reserves their height so the grid does not move when they appear. */
.au-project-filter { display: none; }
.au-project-controls { display: flow-root; min-height: 98px; }
@media (max-width: 767px) { .au-project-controls { min-height: 152px; } }
.au-projects { display: grid; gap: 56px 60px; }
@media (min-width: 992px) { .au-projects { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.au-project__image { display: block; margin-block-end: 24px; overflow: hidden; border-radius: 4px; aspect-ratio: 3 / 2; background: var(--au-surface); }
.au-project__image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.au-project:hover .au-project__image img { transform: scale(1.03); }
.au-project__title { margin: 0 0 8px; font-size: 1.6rem; font-weight: 600; }
.au-project__title a { color: #17161a; }
.au-project__title a:hover { color: var(--au-brand-ink); }
.au-project__type { margin: 0; color: var(--au-grey-600); }
.au-next-project { display: block; position: relative; padding-block: clamp(80px, 14vw, 200px); background: var(--au-black) center / cover no-repeat; color: var(--au-white); }
.au-next-project::before { content: ""; position: absolute; inset: 0; background: rgb(0 0 0 / .6); transition: background .3s; }
.au-next-project:hover { color: var(--au-white); }
.au-next-project:hover::before { background: rgb(0 0 0 / .45); }
.au-next-project .au-container { position: relative; display: block; }
.au-next-project__title { display: block; font-size: clamp(1.75rem, 1.2rem + 2.4vw, 3rem); font-weight: 600; line-height: 1.3; }
.au-next-project__type { display: block; margin-block-start: 20px; text-transform: uppercase; }

/* ---------- 404 ---------- */
.au-404 { padding-block: clamp(160px, 18vw, 256px) clamp(64px, 12vw, 192px); background: var(--au-black); color: var(--au-white); text-align: center; }
.au-404__code { margin: 0; color: var(--au-brand); font-size: clamp(5rem, 3rem + 14vw, 12rem); font-weight: 700; line-height: 1; }
.au-404 h1 { margin: 16px 0; font-size: clamp(2rem, 1.4rem + 3vw, 4rem); font-weight: 600; }
.au-404 p { color: var(--au-muted); }
.au-404 .au-404__code { color: var(--au-brand); }
.au-404 .au-button { background: var(--au-brand); color: var(--au-on-brand); }
.au-404 .au-button:hover { background: var(--au-white); }
.au-404 .au-search { max-width: 420px; margin: 32px auto 0; }
.au-404 .au-search input { background: rgb(255 255 255 / .1); color: var(--au-white); }
.au-404 .au-search button { color: var(--au-white); }

/* ---------- Footer ---------- */
.au-footer { background: var(--au-black); color: var(--au-white); line-height: 2; }
.au-footer .au-container { padding-block: clamp(64px, 10vw, 128px) 28px; }
.au-footer a { color: var(--au-white); }
.au-footer a:hover { color: var(--au-brand); }
.au-footer__headline h3 { font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4rem); font-weight: 300; line-height: 1.3; }
.au-footer__headline h3 a { color: var(--au-brand); border-block-end: 1px solid currentColor; }
.au-footer__headline h3 a:hover { color: var(--au-white); }
.au-footer__columns { display: grid; gap: 40px 30px; margin-block: clamp(48px, 7vw, 96px); }
@media (min-width: 768px) { .au-footer__columns { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 992px) {
	.au-footer__columns { grid-template-columns: 3fr 2fr 2fr 3fr; }
	.au-footer__column--four { grid-column: 4; }
	/* Only the logo block and the menu are in use: logo at the start, the menu as one row at the end. */
	.au-footer__columns:not(:has(.au-footer__column--three, .au-footer__column--four)) { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
	.au-footer__columns:not(:has(.au-footer__column--three, .au-footer__column--four)) .menu { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 32px; max-width: 640px; }
}
.au-footer .widget + .widget { margin-block-start: 24px; }
.au-footer .widget-title { color: #e6e6e6; }
.au-footer ul { margin: 0; padding: 0; list-style: none; }
.au-footer .menu li { padding-block: 4px; line-height: 1.4; }
.au-footer .menu a { display: inline-block; padding-block: 4px; border-block-end: 1px solid rgb(255 255 255 / .4); }
.au-footer .menu a:hover { border-color: currentColor; }
.au-footer img { height: auto; }
.au-footer .input-group { display: flex; border-block-end: 1px solid var(--au-white); }
.au-footer .input-group input { flex: 1; min-width: 0; padding: 14px 0; border: 0; background: none; color: var(--au-white); }
.au-footer .input-group input::placeholder { color: var(--au-muted); }
.au-footer .input-group button { border: 0; padding: 0 12px; background: none; color: var(--au-white); }
.au-footer .input-group button::after { content: "\2192"; font-size: 1.25rem; }
[dir="rtl"] .au-footer .input-group button::after { content: "\2190"; }
.au-footer .input-group button i { display: none; }
.au-footer__menu { margin-block-end: 24px; }
/* Centred, with room at both ends for the floating chat and search buttons. */
.au-footer__copyright { margin: 0; padding: 24px 76px 0; border-block-start: 1px solid rgb(255 255 255 / .14); color: var(--au-muted); font-size: .875rem; line-height: 1.6; text-align: center; }

/* ---------- Floating controls and side social links ----------
   Physical sides on purpose: the chat widget (Chaty) owns the bottom-left corner in both languages. */
.au-float { position: fixed; bottom: 24px; right: 20px; z-index: 990; display: grid; gap: 16px; justify-items: end; }
.au-float__top { display: grid; place-items: center; width: 56px; height: 56px; border: 2px solid var(--au-ink); border-radius: 50%; background: var(--au-white); color: var(--au-ink); }
.au-float__top[hidden] { display: none; }
.au-float__top:hover { border-color: var(--au-brand-ink); color: var(--au-brand-ink); }
.au-float__search { display: flex; flex-direction: row-reverse; align-items: center; height: 56px; border-radius: 28px; background: #ececec; }
.au-float__search button, .au-float__search button:is(:hover, :focus) { display: grid; place-items: center; width: 56px; height: 56px; flex: none; border: 0; border-radius: 50%; background: none; color: var(--au-ink); }
.au-float__search input { width: 0; padding: 0; border: 0; background: none; outline: 0; transition: width .25s; }
.au-float__search.is-open input, .au-float__search input:focus { width: min(220px, 60vw); padding-left: 20px; padding-right: 0; }
@media (max-width: 767px) {
	.au-float { bottom: 16px; right: 12px; }
	.au-float__top, .au-float__search, .au-float__search button { width: 48px; height: 48px; }
	.au-float__search.is-open, .au-float__search:focus-within { width: auto; }
}
.au-social { display: none; }
@media (min-width: 1600px) {
	.au-social {
		position: fixed; bottom: 120px; left: 34px; z-index: 980; display: flex; align-items: center; gap: 20px; margin: 0; padding: 0; list-style: none;
		transform: rotate(-90deg); transform-origin: left bottom; mix-blend-mode: difference; color: var(--au-white); font-weight: 600; font-size: .875rem;
	}
	.au-social a { display: block; padding: 6px; color: var(--au-white); transform: rotate(90deg); }
	.au-social a:hover { color: var(--au-brand); }
	.au-social .au-icon { width: 18px; height: 18px; }
}

/* ---------- Elementor bodies: what the previous theme's script did, without script ---------- */
.au-elementor [data-aos] { opacity: 1 !important; transform: none !important; } /* no entrance animations */
.au-elementor .image-to-animate img { opacity: 1; transform: none; }
[data-toggle="typed"]:empty::before { content: "\200b"; } /* the typed headline word keeps its line before the script fills it */
.posts-masonry.row { display: flex !important; flex-wrap: wrap; } /* project/blog grids: rows instead of the isotope script */

@media print {
	.au-header-slot, .au-header, .au-panel, .au-float, .au-social, .au-footer__columns, .au-share { display: none !important; }
}
