/*
Theme Name: Baseerah
Theme URI: https://baseerah.om
Description: Child theme of Ollie for baseerah.om. Baseerah Green and Insight Orange, Manrope with Readex Pro and El Messiri for Arabic, light and dark modes, English (/en/) and Arabic (/ar/, right to left) with Polylang.
Template: ollie
Version: 0.2.4
Requires at least: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: baseerah
*/

/* ---------------------------------------------------------------
   1. Light and dark
   The light colours are the palette in theme.json. Dark mode swaps the same slugs here, so every block,
   Ollie pattern and custom style follows. No saved choice = follow the device; the header switch saves
   data-theme="light" | "dark" on <html> (inc/setup.php, assets/js/theme-toggle.js).
   Values: branding/baseerah-logo-pack/colors/baseerah-colors.css (Material 3 scheme from #0D5C63).
   --------------------------------------------------------------- */

:root {
	color-scheme: light;
	--bsr-radius-card: var(--wp--custom--radius--card, 20px);
	--bsr-radius-media: var(--wp--custom--radius--media, 14px);
	--bsr-header-bg: color-mix(in srgb, var(--wp--preset--color--base) 88%, transparent);
	--bsr-focus: var(--wp--preset--color--accent);
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		color-scheme: dark;
		--wp--preset--color--primary: #81D3DD;
		--wp--preset--color--primary-accent: #324B4E;
		--wp--preset--color--primary-alt: #783200;
		--wp--preset--color--primary-alt-accent: #9DF0FA;
		--wp--preset--color--main: #DEE4E4;
		--wp--preset--color--main-accent: #3F484A;
		--wp--preset--color--base: #0E1415;
		--wp--preset--color--secondary: #BEC8C9;
		--wp--preset--color--tertiary: #161D1D;
		--wp--preset--color--border-light: #303637;
		--wp--preset--color--border-dark: #899294;
		--wp--preset--color--surface: #1A2121;
		--wp--preset--color--brand: #004F55;
		--wp--preset--color--accent: #FB8F52;
		--wp--preset--color--on-accent: #2A1000;
		--wp--preset--color--accent-strong: #FFB690;
		--wp--preset--color--on-brand: #FFFFFF;
	}
}

:root[data-theme="dark"] {
	color-scheme: dark;
	--wp--preset--color--primary: #81D3DD;
	--wp--preset--color--primary-accent: #324B4E;
	--wp--preset--color--primary-alt: #783200;
	--wp--preset--color--primary-alt-accent: #9DF0FA;
	--wp--preset--color--main: #DEE4E4;
	--wp--preset--color--main-accent: #3F484A;
	--wp--preset--color--base: #0E1415;
	--wp--preset--color--secondary: #BEC8C9;
	--wp--preset--color--tertiary: #161D1D;
	--wp--preset--color--border-light: #303637;
	--wp--preset--color--border-dark: #899294;
	--wp--preset--color--surface: #1A2121;
	--wp--preset--color--brand: #004F55;
	--wp--preset--color--accent: #FB8F52;
	--wp--preset--color--on-accent: #2A1000;
	--wp--preset--color--accent-strong: #FFB690;
	--wp--preset--color--on-brand: #FFFFFF;
}

/* Inline logos (inc/brand.php): light-background colours, or dark-background colours in dark mode. */
.bsr-svg { --bsr-k0: var(--bsr-l0); --bsr-k1: var(--bsr-l1); --bsr-k2: var(--bsr-l2); --bsr-k3: var(--bsr-l3); --bsr-k4: var(--bsr-l4); --bsr-k5: var(--bsr-l5); --bsr-k6: var(--bsr-l6); --bsr-k7: var(--bsr-l7); display: block; height: auto; max-width: 100%; }

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .bsr-svg { --bsr-k0: var(--bsr-d0); --bsr-k1: var(--bsr-d1); --bsr-k2: var(--bsr-d2); --bsr-k3: var(--bsr-d3); --bsr-k4: var(--bsr-d4); --bsr-k5: var(--bsr-d5); --bsr-k6: var(--bsr-d6); --bsr-k7: var(--bsr-d7); }
}

:root[data-theme="dark"] .bsr-svg { --bsr-k0: var(--bsr-d0); --bsr-k1: var(--bsr-d1); --bsr-k2: var(--bsr-d2); --bsr-k3: var(--bsr-d3); --bsr-k4: var(--bsr-d4); --bsr-k5: var(--bsr-d5); --bsr-k6: var(--bsr-d6); --bsr-k7: var(--bsr-d7); }

/* ---------------------------------------------------------------
   2. Arabic: Readex Pro for text, El Messiri for headings. Latin letters and Western digits fall
   through to Manrope (the Arabic font files only hold Arabic letters).
   :lang(ar) also covers Arabic snippets on English pages, such as the language switcher.
   --------------------------------------------------------------- */

:root:lang(ar) {
	--wp--preset--font-family--primary: var(--wp--preset--font-family--arabic);
}

:lang(ar) {
	font-family: var(--wp--preset--font-family--arabic);
	letter-spacing: 0 !important; /* Arabic letters join: never track them. */
}

:lang(ar) :is(h1, h2, h3, .wp-block-heading, .wp-block-site-title, .bsr-hero__title) {
	font-family: var(--wp--preset--font-family--arabic-display);
	font-weight: 700;
	line-height: 1.35;
}

:lang(ar) body,
body:lang(ar) {
	line-height: 1.85;
}

/* Arrows point the reading way. Logos, numbers and charts are never mirrored. */
[dir="rtl"] .bsr-arrow,
.rtl .bsr-arrow {
	display: inline-block;
	transform: scaleX(-1);
}

/* ---------------------------------------------------------------
   3. Base
   --------------------------------------------------------------- */

body {
	background: var(--wp--preset--color--base);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

:where(a, button, summary, [tabindex]):focus-visible {
	outline: 2px solid var(--bsr-focus);
	outline-offset: 2px;
	border-radius: 4px;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

/* Buttons that are not linked yet: same look, but no pointer cursor and no hover change. */
.wp-block-button__link:not([href]) {
	cursor: default;
}

.wp-block-button__link:not([href]):hover {
	background-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
}

.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	border: 1.5px solid currentColor;
	color: var(--wp--preset--color--primary);
	padding-block: calc(.75em - 1.5px);
	padding-inline: calc(1.6em - 1.5px);
}

.wp-block-button.is-style-outline > .wp-block-button__link:not([href]):hover {
	background: transparent;
	color: var(--wp--preset--color--primary);
}

/* ---------------------------------------------------------------
   4. Header
   --------------------------------------------------------------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	border-block-end: 1px solid var(--wp--preset--color--border-light);
}

/* The blur sits on a pseudo-element: a backdrop-filter on the header itself would trap the
   phone menu (position: fixed) inside the header's height. */
.site-header::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: var(--bsr-header-bg);
	backdrop-filter: saturate(1.4) blur(12px);
	-webkit-backdrop-filter: saturate(1.4) blur(12px);
}

.admin-bar .site-header {
	top: var(--wp-admin--admin-bar--height, 32px);
}

.bsr-header__row {
	gap: var(--wp--preset--spacing--small);
}

.bsr-header__end {
	gap: 4px clamp(8px, 1.4vw, 18px);
}

.bsr-logo-link {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
	line-height: 0;
}

.bsr-header .bsr-logo,
.bsr-footer .bsr-logo {
	width: auto;
	height: 58px;
	margin-block: -7px; /* The logo files carry their own clear space. */
}

.bsr-nav .wp-block-navigation-item__content {
	padding-block: 6px;
}

.bsr-nav .wp-block-navigation__submenu-container {
	border: 1px solid var(--wp--preset--color--border-light) !important;
	border-radius: 14px;
	background: var(--wp--preset--color--surface) !important;
	box-shadow: var(--wp--preset--shadow--card-raised);
	padding: 6px !important;
	min-width: 220px !important;
}

.bsr-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	border-radius: 10px;
	padding: 8px 12px !important;
}

.bsr-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover {
	background: var(--wp--preset--color--tertiary);
}

/* Items with no link yet (Sign in > Rabex, Needito): shown, but they do nothing. */
.bsr-nav span.wp-block-navigation-item__content,
.bsr-nav a.wp-block-navigation-item__content:not([href]) {
	cursor: default;
}

/* "Sign in" sits at the end as an outlined pill. */
.bsr-nav-signin > .wp-block-navigation-submenu__toggle,
.bsr-nav-signin > .wp-block-navigation-item__content {
	border: 1.5px solid var(--wp--preset--color--primary);
	border-radius: 100px;
	color: var(--wp--preset--color--primary);
	padding: 6px 16px !important;
}

.bsr-nav-signin > .wp-block-navigation__submenu-icon {
	display: none;
}

/* Language switcher */
.bsr-lang-switch {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 10px;
	border-radius: 100px;
	color: var(--wp--preset--color--main);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.bsr-lang-switch:hover {
	background: var(--wp--preset--color--tertiary);
	color: var(--wp--preset--color--main);
}

.bsr-lang-switch svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
}

.bsr-lang-switch:lang(ar) {
	font-family: var(--wp--preset--font-family--arabic);
}

/* Header menus: light / dark switch and language (icon button + small menu) */
.bsr-theme,
.bsr-menu {
	position: relative;
}

.bsr-theme-btn,
.bsr-icon-btn,
.bsr-theme-menu button {
	appearance: none;
	background: none;
	border: 0;
	color: var(--wp--preset--color--main);
	cursor: pointer;
	font: inherit;
}

.bsr-theme-btn,
.bsr-icon-btn {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
}

.bsr-theme-btn:hover,
.bsr-icon-btn:hover,
.bsr-icon-btn[aria-expanded="true"] {
	background: var(--wp--preset--color--tertiary);
}

.bsr-theme svg,
.bsr-icon-btn svg {
	width: 20px;
	height: 20px;
	fill: currentColor;
}

.bsr-theme-menu,
.bsr-menu-list {
	position: absolute;
	inset-inline-end: 0;
	top: calc(100% + 6px);
	z-index: 60;
	list-style: none;
	margin: 0;
	padding: 6px;
	min-width: 170px;
	border: 1px solid var(--wp--preset--color--border-light);
	border-radius: 14px;
	background: var(--wp--preset--color--surface);
	box-shadow: var(--wp--preset--shadow--card-raised);
}

.bsr-theme-menu button,
.bsr-menu-list a {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 8px 10px;
	border-radius: 10px;
	font-size: var(--wp--preset--font-size--small);
	text-align: start;
}

.bsr-theme-menu button:hover,
.bsr-theme-menu button[aria-checked="true"],
.bsr-menu-list a:hover,
.bsr-menu-list a[aria-current="true"] {
	background: var(--wp--preset--color--tertiary);
}

.bsr-theme-menu button[aria-checked="true"],
.bsr-menu-list a[aria-current="true"] {
	font-weight: 700;
}

.bsr-menu-list a {
	color: var(--wp--preset--color--main);
	text-decoration: none;
}

.bsr-menu-list {
	min-width: 140px;
}

.bsr-menu-list a:lang(ar) {
	font-family: var(--wp--preset--font-family--arabic);
}

.bsr-menu-list[hidden] {
	display: none;
}

/* Phone and tablet: the menu opens as a full panel; products first (they come first in the menu). */
@media (max-width: 599px) {
	.bsr-header .bsr-logo {
		height: 48px;
	}

	.bsr-lang-switch span {
		font-size: 0.9rem;
	}
}

.bsr-nav .wp-block-navigation__responsive-container.is-menu-open {
	padding: var(--wp--preset--spacing--medium);
}

.bsr-nav .is-menu-open .wp-block-navigation__responsive-container-content {
	gap: 4px;
	font-size: var(--wp--preset--font-size--base);
}

.bsr-nav .is-menu-open .bsr-nav-signin > .wp-block-navigation-submenu__toggle {
	margin-block-start: 12px;
}

/* ---------------------------------------------------------------
   5. Footer
   --------------------------------------------------------------- */

.site-footer {
	margin-block-start: 0;
}

.bsr-footer {
	background: var(--wp--preset--color--tertiary);
	border-block-start: 1px solid var(--wp--preset--color--border-light);
	font-size: var(--wp--preset--font-size--small);
}

.bsr-footer__grid {
	display: grid;
	gap: var(--wp--preset--spacing--small) var(--wp--preset--spacing--large);
	grid-template-columns: 2fr repeat(2, 1fr);
}

@media (max-width: 781px) {
	.bsr-footer__grid {
		grid-template-columns: 1fr 1fr;
	}

	.bsr-footer__brand {
		grid-column: 1 / -1;
	}
}

.bsr-social {
	display: flex;
	gap: 8px;
	margin-block-start: 12px;
}

.bsr-footer__phone {
	margin: 8px 0 0;
}

.bsr-footer__phone a {
	color: var(--wp--preset--color--main);
	text-decoration: none;
}

.bsr-footer__phone a:hover {
	color: var(--wp--preset--color--primary);
}

.bsr-social__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 1px solid var(--wp--preset--color--border-light);
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--primary);
	transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

.bsr-social__link:hover,
.bsr-social__link:focus-visible {
	background: var(--wp--preset--color--primary);
	border-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
}

.bsr-footer__slogan {
	color: var(--wp--preset--color--secondary);
	margin-block-start: 12px;
}

.bsr-footer__title {
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--wp--preset--color--secondary);
	margin: 0 0 8px;
}

:lang(ar) .bsr-footer__title {
	font-family: var(--wp--preset--font-family--arabic);
	font-size: var(--wp--preset--font-size--small);
	text-transform: none;
}

.bsr-footer__links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0;
}

.bsr-footer__links li {
	margin: 0 !important;
	padding: 0 !important;
	line-height: 1.5;
}

.bsr-footer__links a {
	color: var(--wp--preset--color--main);
	text-decoration: none;
}

.bsr-footer__links a:hover {
	color: var(--wp--preset--color--primary);
	text-decoration: underline;
}

.bsr-footer__bottom {
	margin-block-start: var(--wp--preset--spacing--medium) !important;
	padding-block-start: 12px;
	border-block-start: 1px solid var(--wp--preset--color--border-light);
	color: var(--wp--preset--color--secondary);
	gap: 8px 24px;
}

.bsr-footer__bottom p {
	margin: 0;
}

/* ---------------------------------------------------------------
   6. Building blocks for pages: sections, cards, status labels, product logos and cards
   --------------------------------------------------------------- */

/* Keep sections tight: no large white space between sections (Mohsen, 2026-11-16). Two sections together give
   about 96px on desktop and 64px on a phone. Don't add bigger section padding or spacer blocks. */
.bsr-section {
	padding-block: var(--wp--preset--spacing--large);
	padding-inline: var(--wp--preset--spacing--medium);
	margin-block: 0 !important;
}

.bsr-section > .wp-block-heading:first-child {
	margin-block-end: var(--wp--preset--spacing--medium);
}

.bsr-tinted {
	background: var(--wp--preset--color--tertiary);
}

.bsr-grid {
	gap: var(--wp--preset--spacing--medium);
}

/* Group / Column style "Card" */
.is-style-card {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border-light);
	border-radius: var(--bsr-radius-card);
	padding: var(--wp--preset--spacing--medium);
	box-shadow: var(--wp--preset--shadow--card);
}

.is-style-card > :first-child {
	margin-block-start: 0;
}

.is-style-card > :last-child {
	margin-block-end: 0;
}

.is-style-card-tinted {
	background: var(--wp--preset--color--primary-accent);
	border-radius: var(--bsr-radius-card);
	padding: var(--wp--preset--spacing--medium);
}

/* Group style "Band (Baseerah green)": brand surface, white text. */
.is-style-band-brand {
	background: var(--wp--preset--color--brand);
	color: var(--wp--preset--color--on-brand);
	border-radius: var(--bsr-radius-card);
	padding: var(--wp--preset--spacing--large);
}

.is-style-band-brand :is(h1, h2, h3, h4, a:not(.wp-element-button)) {
	color: inherit;
}

.is-style-band-brand .wp-block-button__link {
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--on-accent);
}

/* Paragraph styles */
.is-style-eyebrow {
	color: var(--wp--preset--color--accent-strong);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin-block-end: 4px;
}

:lang(ar) .is-style-eyebrow {
	font-size: var(--wp--preset--font-size--small);
	text-transform: none;
}

.is-style-lead {
	color: var(--wp--preset--color--secondary);
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1.5;
}

/* List style "Numbered steps" */
ol.is-style-steps {
	counter-reset: bsr-step;
	list-style: none;
	padding-inline-start: 0;
}

ol.is-style-steps > li {
	counter-increment: bsr-step;
	position: relative;
	padding-inline-start: 3rem;
	margin-block-end: 1rem;
}

ol.is-style-steps > li::before {
	content: counter(bsr-step);
	position: absolute;
	inset-inline-start: 0;
	top: 0;
	display: grid;
	place-items: center;
	width: 2rem;
	height: 2rem;
	border-radius: 50%;
	background: var(--wp--preset--color--primary-accent);
	color: var(--wp--preset--color--primary-alt-accent);
	font-weight: 800;
}

/* Status label: Live (green) / Coming soon (orange). */
.bsr-status-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 14px;
	color: var(--wp--preset--color--secondary);
	font-size: var(--wp--preset--font-size--small);
}

.bsr-status {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 3px 12px;
	border-radius: 100px;
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 700;
	line-height: 1.6;
	white-space: nowrap;
}

.bsr-status::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: currentColor;
}

.bsr-status--live {
	background: var(--wp--preset--color--primary-accent);
	color: var(--wp--preset--color--primary-alt-accent);
}

.bsr-status--soon,
.bsr-status--early,
.bsr-status--launch {
	background: var(--wp--preset--color--primary-alt);
	color: var(--wp--preset--color--accent-strong);
}

:root[data-theme="dark"] .bsr-status--live { color: var(--wp--preset--color--primary); }

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .bsr-status--live { color: var(--wp--preset--color--primary); }
}

/* Product logos keep their own colours (each product has its own brand).
   The logo files have different proportions, so each one gets its own height to look the same size:
   --bsr-logo-h is the size of the context (card, hero ...), the per-product factor evens them out. */
.bsr-product-logo {
	--bsr-logo-h: 44px;
	width: auto;
	height: calc(var(--bsr-logo-h) * var(--bsr-logo-k, 1));
	max-width: 100%;
}

.bsr-product-logo--rabex  { --bsr-logo-k: 0.82; }
.bsr-product-logo--needito { --bsr-logo-k: 0.74; }
.bsr-product-logo--bunyan { --bsr-logo-k: 1; }

.bsr-hero .bsr-product-logo {
	--bsr-logo-h: 60px;
}

.bsr-product-logo-wrap {
	line-height: 0;
}

/* Product cards (Home, Partners and investors) */
.bsr-product-cards {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: var(--wp--preset--spacing--medium);
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
	align-items: stretch;
}

/* :nth-child(n) lifts this above Ollie's list rules, which remove the first item's top padding
   and the last item's bottom padding. */
ul.bsr-product-cards > li.bsr-product-card:nth-child(n) {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: var(--wp--preset--spacing--medium);
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border-light);
	border-radius: var(--bsr-radius-card);
	box-shadow: var(--wp--preset--shadow--card);
}

.bsr-product-card__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	height: 44px;
	margin-block-end: 20px;
}

.bsr-product-card .bsr-product-logo {
	--bsr-logo-h: 36px;
	max-width: 65%;
}

.bsr-product-card__line {
	margin: 0 0 24px;
	flex: 1 1 auto;
	color: var(--wp--preset--color--secondary);
	line-height: 1.6;
}

.bsr-product-card__more {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	gap: 6px;
	margin-block-start: auto;
	font-weight: 700;
	line-height: 1.4;
	text-decoration: none;
}

.bsr-product-card__more:hover {
	text-decoration: underline;
}

/* ---------------------------------------------------------------
   7. Product page (patterns from inc/patterns.php)
   --------------------------------------------------------------- */

.bsr-hero {
	padding-block: var(--wp--preset--spacing--large);
	background:
		radial-gradient(60rem 30rem at 85% -10%, color-mix(in srgb, var(--wp--preset--color--primary-accent) 70%, transparent), transparent 70%),
		var(--wp--preset--color--base);
}

[dir="rtl"] .bsr-hero {
	background:
		radial-gradient(60rem 30rem at 15% -10%, color-mix(in srgb, var(--wp--preset--color--primary-accent) 70%, transparent), transparent 70%),
		var(--wp--preset--color--base);
}

/* No screenshot yet (the image block prints nothing): the text takes the full width. */
.bsr-hero__cols > .wp-block-column:not(:has(*)) {
	display: none;
}

/* Buttons from the product list (inc/brand.php buttons()). */
.bsr-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.bsr-buttons.is-content-justification-center {
	justify-content: center;
}

/* Section headings line up with the wide card grids below them. */
.bsr-section > .wp-block-heading {
	max-width: var(--wp--style--global--wide-size) !important;
}

.bsr-hero__title {
	font-size: clamp(2rem, 4.2vw, 3.25rem);
	margin-block: var(--wp--preset--spacing--small);
}

.bsr-hero .bsr-buttons {
	margin-block-start: var(--wp--preset--spacing--medium);
}

.bsr-shot img {
	border: 1px solid var(--wp--preset--color--border-light);
	border-radius: var(--bsr-radius-media);
	box-shadow: var(--wp--preset--shadow--card-raised);
}

/* Product page grids: three across on desktop (6 features = 2 full rows, 3 steps and 3 audiences = 1 row),
   so no row ends with empty slots. Narrower screens keep the automatic 2 or 1 columns. */
@media (min-width: 782px) {
	.bsr-features > .bsr-grid,
	.bsr-how > .bsr-grid,
	.bsr-audience > .bsr-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	}
}

/* Small cards look the same on every page: same title size, a short gap, muted text
   (the About, Home and Partners cards in areas/about.css use the same values). */
.bsr-grid > .is-style-card > h3 {
	font-size: var(--wp--preset--font-size--medium);
	margin-block: 0;
}

.bsr-grid > .is-style-card > h3 + * {
	margin-block-start: 12px;
}

.bsr-grid > .is-style-card > p {
	color: var(--wp--preset--color--secondary);
}

.bsr-step .is-style-eyebrow {
	margin-block-start: 0;
}

.bsr-faq {
	display: grid;
	gap: 8px;
}

/* Flow-layout margins add to the grid gap; the gap alone sets the spacing. */
.bsr-faq > * {
	margin-block: 0;
}

.wp-block-details summary {
	cursor: pointer;
	font-weight: 700;
}

.bsr-cta {
	text-align: center;
	padding: var(--wp--preset--spacing--large) var(--wp--preset--spacing--medium);
	background: var(--wp--preset--color--primary-accent);
	border: 0;
}

.bsr-cta .bsr-product-logo-wrap {
	display: flex;
	justify-content: center;
}

/* ---------------------------------------------------------------
   8. 404
   --------------------------------------------------------------- */

.bsr-not-found {
	min-height: 50vh;
	padding-block: var(--wp--preset--spacing--xx-large);
}

/* A little room between the "home page" button and the product cards below it. */
.bsr-not-found > .bsr-product-cards {
	margin-block-start: var(--wp--preset--spacing--medium) !important;
}

/* Phone: the menu button goes last, so the language and light/dark icons sit to its left (mirrored in Arabic). */
@media (max-width: 599px) {
	.bsr-header__end .bsr-nav {
		order: 3;
	}
}
