/* ==========================================================================
   Ramada Al-Raqi — base.css
   Mobile-first (360px) · RTL-first with logical properties (works LTR as-is)
   Tokens come from theme.json (--wp--preset--* / --wp--custom--*).
   Motion lives in motion.css.
   ========================================================================== */

:root {
	--ink: var(--wp--preset--color--ink);
	--charcoal: var(--wp--preset--color--charcoal);
	--body: var(--wp--preset--color--body);
	--muted: var(--wp--preset--color--muted);
	--ivory: var(--wp--preset--color--ivory);
	--sand: var(--wp--preset--color--sand);
	--olive: var(--wp--preset--color--olive);
	--brass: var(--wp--preset--color--brass);
	--brass-ui: var(--wp--preset--color--brass-ui);
	--gold: var(--wp--preset--color--gold);
	--line: var(--wp--preset--color--line);
	--focus: var(--wp--custom--focus);
	--radius-sm: var(--wp--custom--radius--sm);
	--radius: var(--wp--custom--radius--md);
	--radius-lg: var(--wp--custom--radius--lg);
	--shadow-1: var(--wp--custom--shadow);

	--gutter: 16px;
	--header-h: 64px;   /* measured and updated by site.js */
	--subnav-h: 46px;
	--bar-h: 64px;
}
@media (min-width: 640px) { :root { --gutter: 24px; } }
@media (min-width: 900px) { :root { --gutter: 40px; --bar-h: 0px; } }

/* ---------- Reset / globals ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
	-webkit-text-size-adjust: 100%;
	scroll-padding-top: calc(var(--header-h) + var(--subnav-h) + 8px);
}
body {
	margin: 0;
	overflow-x: clip; /* safety net: zero horizontal page scroll at 320px */
	padding-block-end: calc(var(--bar-h) + env(safe-area-inset-bottom, 0px));
	text-rendering: optimizeLegibility;
}
/* Fabric grain — same values as the approved motion artifact. One 200px SVG
   tile (≈0.4 KB inline), fixed, non-interactive. Measure in Lighthouse before
   removing; drop it under prefers-reduced-transparency. */
body::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: 1000;
	pointer-events: none;
	opacity: .6;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
}
@media (prefers-reduced-transparency: reduce), print { body::before { content: none; } }

img, svg { max-width: 100%; height: auto; }
img { display: block; }
:where(ul, ol)[class*="rmd-"],
:where(.rmd-nav, .rmd-footer) :where(ul, ol) { list-style: none; margin: 0; padding: 0; }
:where(.rmd-main, .rmd-header, .rmd-footer) :where(h1, h2, h3, p, figure) { margin: 0; }
body .wp-site-blocks > *,
body .rmd-main > * { margin-block: 0; }
bdi[dir="ltr"] { unicode-bidi: isolate; }

/* Links at zero specificity so every component colour wins.
   Plain text links underline on hover (never colour-only, Brief Y.16). */
:where(a) { color: var(--brass); text-decoration: none; }
:where(a:not([class])):hover,
:where(.rmd-more, .rmd-faq__a, .rmd-page) a:hover { text-decoration: underline; }

.screen-reader-text {
	position: absolute !important;
	inline-size: 1px; block-size: 1px;
	overflow: hidden; clip-path: inset(50%);
	white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

:focus-visible {
	outline: 3px solid var(--focus);
	outline-offset: 2px;
	border-radius: var(--radius-sm);
}
:is(.rmd-header, .rmd-sec--ink, .rmd-sec--olive, .rmd-actionbar) :focus-visible { outline-color: var(--gold); }

.rmd-icon { inline-size: 20px; block-size: 20px; flex: none; }
/* Arrows are drawn for RTL; WordPress only prints dir="rtl", so LTR = no dir attr. */
html:not([dir="rtl"]) .rmd-icon--arrow { transform: scaleX(-1); }

/* ---------- Layout ---------- */
.rmd-wrap {
	inline-size: 100%;
	max-inline-size: calc(1240px + 2 * var(--gutter));
	margin-inline: auto;
	padding-inline: var(--gutter);
}
.rmd-split { display: grid; gap: 32px; }
@media (min-width: 900px) {
	.rmd-split { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: center; }
	.rmd-split--top { align-items: start; }
}

/* ---------- Sections (alternating dark / light) ---------- */
.rmd-sec { padding-block: clamp(56px, 10vw, 96px); }
.rmd-sec--ivory { background: var(--ivory); color: var(--body); }
.rmd-sec--sand  { background: var(--sand);  color: var(--body); }
.rmd-sec--ink   { background: var(--ink);   color: var(--line); }
.rmd-sec--olive { background: var(--olive); color: var(--line); }
:is(.rmd-sec--ink, .rmd-sec--olive) :is(h1, h2, h3) { color: var(--ivory); }
:is(.rmd-sec--ink, .rmd-sec--olive) a:not(.rmd-btn):not(.rmd-swatch) { color: var(--gold); }
:is(.rmd-sec--ivory, .rmd-sec--sand) :is(h1, h2, h3) { color: var(--ink); }

.rmd-sec__head { margin-block-end: 32px; max-inline-size: 720px; }
.rmd-eyebrow {
	display: block;
	font-size: var(--wp--preset--font-size--label);
	font-weight: 500;
	line-height: 1.5;
	margin-block-end: 8px;
	color: var(--brass);
}
:is(.rmd-sec--ink, .rmd-sec--olive) .rmd-eyebrow { color: var(--gold); }
/* Letter-spacing breaks Arabic joining — Latin only. */
:lang(en) .rmd-eyebrow { letter-spacing: .08em; text-transform: uppercase; }

.rmd-h2 { font-size: var(--wp--preset--font-size--heading); font-weight: 700; line-height: 1.3; margin-block-end: 12px; text-wrap: balance; }
.rmd-h3 { font-size: var(--wp--preset--font-size--heading-sm); font-weight: 700; line-height: 1.4; margin-block-end: 16px; }
.rmd-lead { max-inline-size: 60ch; }
.rmd-more { margin-block-start: 24px; }

/* ---------- Buttons ---------- */
.rmd-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-block-size: 48px;
	padding: 12px 20px;
	border: 1px solid transparent;
	border-radius: var(--radius);
	font: inherit;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}
.rmd-btn:hover { text-decoration: none; }
.rmd-btn--sm { min-block-size: 44px; padding: 8px 14px; font-size: 15px; }
.rmd-btn--gold { background: var(--gold); color: var(--ink); }
.rmd-btn--gold:hover { background: var(--ivory); color: var(--ink); }
.rmd-btn--ink { background: var(--ink); color: var(--ivory); }
.rmd-btn--ink:hover { background: var(--charcoal); color: var(--ivory); }
.rmd-btn--ghost { background: transparent; color: inherit; border-color: currentColor; }
.rmd-btn--ghost:hover { background: rgba(122, 90, 46, .08); }
:is(.rmd-sec--ink, .rmd-sec--olive) .rmd-btn--ghost { color: var(--ivory); border-color: var(--gold); }
:is(.rmd-sec--ink, .rmd-sec--olive) .rmd-btn--ghost:hover { background: rgba(201, 161, 100, .14); }
.rmd-btn--wa { background: #25D366; color: #0B141A; }
.rmd-btn--wa:hover { background: #20bd5a; color: #0B141A; }

.rmd-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-block-start: 24px; }
@media (max-width: 639.98px) {
	.rmd-actions > .rmd-btn { flex: 1 1 100%; }
}
.rmd-link { color: var(--brass); font-weight: 500; display: inline-flex; align-items: center; min-block-size: 44px; }

/* ---------- Header (sticky wrapper is the template-part <header><meta charset="utf-8">) ---------- */
.rmd-site-header {
	position: sticky;
	inset-block-start: 0;
	z-index: 50;
	background: var(--ink);
	color: var(--ivory);
}
.rmd-header__in {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-block-size: 64px;
}
.rmd-logo { display: inline-flex; padding-block: 9px; flex: none; }
.rmd-logo img { inline-size: 104px; block-size: 50px; object-fit: contain; }
.rmd-header__end { display: flex; align-items: center; gap: 8px; }
.rmd-header .rmd-btn--gold { padding-inline: 12px; }

.rmd-nav { display: none; }
.rmd-nav ul { display: flex; gap: 4px; }
.rmd-nav a,
.rmd-lang a {
	display: inline-flex;
	align-items: center;
	min-block-size: 44px;
	padding-inline: 10px;
	color: var(--line);
	font-size: 15px;
	font-weight: 500;
	text-decoration: none;
}
.rmd-nav a:hover, .rmd-lang a:hover { color: var(--gold); }
.rmd-lang { display: flex; gap: 2px; }
.rmd-lang a[aria-current] { color: var(--gold); }
.rmd-header__lang { display: none; }

/* Mobile drawer on <details> — opens from the inline-start edge (right in RTL). */
.rmd-menu > summary {
	list-style: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	inline-size: 44px;
	block-size: 44px;
	border-radius: var(--radius);
	color: var(--ivory);
	cursor: pointer;
}
.rmd-menu > summary::-webkit-details-marker { display: none; }
.rmd-menu .rmd-icon { inline-size: 24px; block-size: 24px; }
.rmd-menu .rmd-icon--close,
.rmd-menu[open] .rmd-icon--menu { display: none; }
.rmd-menu[open] .rmd-icon--close { display: block; }
.rmd-menu[open]::before { /* backdrop */
	content: "";
	position: fixed;
	inset: var(--header-h) 0 0 0;
	background: rgba(35, 31, 32, .5);
}
.rmd-menu__panel {
	position: fixed;
	inset-block: var(--header-h) 0;
	inset-inline-start: 0;
	inline-size: min(84vw, 360px);
	overflow-y: auto;
	overscroll-behavior: contain;
	background: var(--ink);
	padding: 16px var(--gutter) calc(24px + env(safe-area-inset-bottom, 0px));
	border-inline-end: 1px solid rgba(201, 161, 100, .25);
}
.rmd-menu__list a {
	display: flex;
	align-items: center;
	min-block-size: 52px;
	color: var(--ivory);
	font-size: 18px;
	font-weight: 500;
	text-decoration: none;
	border-block-end: 1px solid rgba(255, 253, 249, .08);
}
.rmd-menu__panel .rmd-lang { margin-block-start: 16px; }
/* Fabrics dropdown: desktop hover / keyboard focus; in the drawer it is an indented, always-open list. */
.rmd-nav .rmd-has-sub { position: relative; }
.rmd-nav .rmd-has-sub > a::after { content: ""; inline-size: 6px; block-size: 6px; margin-inline-start: 7px; border-inline-end: 1.5px solid currentColor; border-block-end: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.rmd-nav .rmd-sub { display: none; position: absolute; inset-block-start: 100%; inset-inline-start: 0; z-index: 30; min-inline-size: 200px; flex-direction: column; gap: 0; padding: 8px; background: var(--ink); border: 1px solid rgba(201, 161, 100, .3); border-radius: var(--radius); box-shadow: 0 12px 28px rgba(0, 0, 0, .35); }
.rmd-nav .rmd-has-sub:hover > .rmd-sub, .rmd-nav .rmd-has-sub:focus-within > .rmd-sub { display: flex; }
.rmd-nav .rmd-sub a { inline-size: 100%; min-block-size: 40px; border-radius: 6px; white-space: nowrap; }
.rmd-nav .rmd-sub a:hover, .rmd-nav .rmd-sub a:focus-visible { background: rgba(255, 253, 249, .08); }
.rmd-nav .rmd-sub li:last-child a { border-block-start: 1px solid rgba(255, 253, 249, .1); margin-block-start: 4px; padding-block-start: 4px; border-radius: 0 0 6px 6px; color: var(--gold); }
.rmd-nav .rmd-sub--lead li:first-child a { color: var(--gold); font-weight: 700; }
.rmd-menu__list .rmd-sub { margin: 0; padding: 0 0 6px; list-style: none; }
.rmd-menu__list .rmd-sub a { min-block-size: 44px; padding-inline-start: 18px; font-size: 16px; color: rgba(255, 253, 249, .82); border-block-end: 0; }
.rmd-menu__list .rmd-sub--lead li:first-child a { color: var(--gold); font-weight: 700; }

@media (min-width: 900px) { .rmd-header__in { min-block-size: 72px; } }
@media (min-width: 1100px) {
	.rmd-nav, .rmd-header__lang { display: block; }
	.rmd-menu { display: none; }
}
.rmd-nav a { white-space: nowrap; }
@media (max-width: 1279.98px) { .rmd-nav a { padding-inline: 8px; font-size: 14.5px; } }
.rmd-header .rmd-btn--sm { white-space: nowrap; }
@media (max-width: 379.98px) { /* 320–379px: keep the header on one line */
	/* Icon-only, but keep the accessible name. */
	.rmd-header .rmd-btn--gold span {
		position: absolute; inline-size: 1px; block-size: 1px;
		overflow: hidden; clip-path: inset(50%); white-space: nowrap;
	}
}

/* ---------- Sub-nav (sticky under the header) ---------- */
.rmd-subnav {
	position: sticky;
	inset-block-start: var(--header-h);
	z-index: 40;
	background: var(--ivory);
	border-block-end: 1px solid var(--line);
	overflow-x: auto;
	scrollbar-width: none;
	overscroll-behavior-x: contain;
}
.rmd-subnav::-webkit-scrollbar { display: none; }
.rmd-subnav__list {
	display: flex;
	inline-size: max-content;
	min-inline-size: 100%;
	padding-inline: var(--gutter);
}
@media (min-width: 900px) { .rmd-subnav__list { justify-content: center; } }
.rmd-subnav__link {
	display: flex;
	align-items: center;
	min-block-size: var(--subnav-h);
	padding-inline: 14px;
	color: var(--muted);
	font-size: 15px;
	font-weight: 500;
	white-space: nowrap;
	text-decoration: none;
	border-block-end: 2px solid transparent;
}
.rmd-subnav__link:hover { color: var(--ink); text-decoration: none; }
.rmd-subnav__link.is-active { color: var(--ink); border-block-end-color: var(--brass); }

/* ---------- Hero ---------- */
.rmd-hero { padding-block: 40px 56px; }
.rmd-hero__grid { display: grid; gap: 32px; }
.rmd-hero__title {
	font-size: var(--wp--preset--font-size--display);
	font-weight: 700;
	line-height: 1.25;
	text-wrap: balance;
	margin-block-end: 16px;
}
.rmd-hero__sub { font-size: 18px; max-inline-size: 46ch; }
.rmd-hero__media {
	aspect-ratio: 4 / 3;
	border-radius: var(--radius-lg);
	overflow: hidden;
	background: var(--charcoal);
}
:is(.rmd-hero__media, .rmd-media) > picture { display: block; block-size: 100%; }
.rmd-hero__media img,
.rmd-media img { inline-size: 100%; block-size: 100%; object-fit: cover; }
@media (min-width: 900px) {
	.rmd-hero { padding-block: 72px 96px; }
	.rmd-hero__grid { grid-template-columns: 1.15fr .85fr; align-items: center; gap: 64px; }
	.rmd-hero__media { aspect-ratio: 4 / 5; }
}
/* Home hero slider: full-bleed real photos, text on the inline-start (right in RTL) over an ink gradient. */
.rmd-hero--slider { padding: 0; position: relative; overflow: hidden; }
.rmd-hslides { position: relative; min-block-size: clamp(520px, 86svh, 700px); display: grid; }
.rmd-hslide { grid-area: 1 / 1; position: relative; display: flex; align-items: flex-end; opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility 0s linear .9s; }
.rmd-hslide.is-active { opacity: 1; visibility: visible; transition: opacity .9s ease; z-index: 1; }
.rmd-hslide__bg { position: absolute; inset: 0; margin: 0; }
.rmd-hslide__bg picture { display: block; block-size: 100%; }
.rmd-hslide__bg img { inline-size: 100%; block-size: 100%; object-fit: cover; transform: scale(1.04); transition: transform 7s ease-out; }
.rmd-hslide.is-active .rmd-hslide__bg img { transform: scale(1); }
.rmd-hslide__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(35, 31, 32, .94) 0%, rgba(35, 31, 32, .72) 42%, rgba(35, 31, 32, .15) 100%); }
.rmd-hslide__text { position: relative; z-index: 1; padding-block: 56px 88px; }
.rmd-hslide__text .rmd-hero__title { max-inline-size: 18ch; }
.rmd-hslide__text .rmd-hero__sub { color: rgba(255, 253, 249, .88); }
.rmd-hdots { position: absolute; inset-inline: 0; inset-block-end: 28px; z-index: 2; display: flex; align-items: center; gap: 10px; padding-block: 0; }
.rmd-hdots[hidden] { display: none; }
.rmd-hdots__dot { inline-size: 12px; block-size: 12px; padding: 0; border: 1px solid var(--ivory); border-radius: 50%; background: transparent; cursor: pointer; position: relative; }
.rmd-hdots__dot::before { content: ""; position: absolute; inset: -16px -6px; } /* 44px touch target */
.rmd-hdots__dot.is-active { background: var(--gold); border-color: var(--gold); inline-size: 28px; border-radius: 8px; }
.rmd-hdots__pause { inline-size: 32px; block-size: 32px; padding: 0; border: 1px solid rgba(255, 253, 249, .6); border-radius: 50%; background: rgba(35, 31, 32, .55); color: var(--ivory); font-size: 10px; cursor: pointer; margin-inline-end: 8px; }
.rmd-hdots__dot:focus-visible, .rmd-hdots__pause:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
@media (min-width: 900px) {
	.rmd-hslides { min-block-size: clamp(560px, 82svh, 760px); }
	.rmd-hslide { align-items: center; }
	.rmd-hslide__bg::after { background: linear-gradient(to left, rgba(35, 31, 32, .92) 0%, rgba(35, 31, 32, .78) 34%, rgba(35, 31, 32, .12) 78%); }
	.rmd-hslide__text { padding-block: 96px; }
	.rmd-hslide__text > * { max-inline-size: 560px; }
}
/* Brands slide: large logos on an ivory panel, text beside it. */
.rmd-hslide--brands { background: radial-gradient(circle at 20% 20%, #3a3335 0%, var(--ink) 70%); }
.rmd-hslide__brandgrid { display: grid; gap: 28px; align-items: center; }
.rmd-hbrands { list-style: none; margin: 0; padding: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; background: var(--ivory); border-radius: var(--radius-lg); }
.rmd-hbrands__i { display: flex; align-items: center; justify-content: center; padding: 14px; min-block-size: 96px; border-radius: 10px; background: #fff; }
.rmd-hbrands__i--lg { min-block-size: 110px; }
.rmd-hbrands__i img { display: block; inline-size: auto; max-inline-size: 100%; block-size: auto; max-block-size: 84px; }
.rmd-hbrands__i--lg img { max-block-size: 104px; }
@media (min-width: 900px) {
	.rmd-hslide__brandgrid { grid-template-columns: 1fr 1.1fr; gap: 56px; }
	.rmd-hslide__brandgrid > * { max-inline-size: none !important; }
	.rmd-hbrands { padding: 28px; gap: 18px; }
	.rmd-hbrands__i { min-block-size: 190px; }
	.rmd-hbrands__i img { max-block-size: 140px; }
	.rmd-hbrands__i--lg img { max-block-size: 140px; }
}
@media (prefers-reduced-motion: reduce) {
	.rmd-hslide, .rmd-hslide.is-active { transition: none; }
	.rmd-hslide__bg img, .rmd-hslide.is-active .rmd-hslide__bg img { transform: none; transition: none; }
}
.rmd-media { aspect-ratio: 3 / 2; border-radius: var(--radius-lg); overflow: hidden; }

/* ---------- Woven fabric textures (CSS only, brand colours only) ---------- */
.rmd-cloth {
	display: block;
	inline-size: 100%;
	aspect-ratio: 1 / 1;
	background-color: var(--c, var(--sand));
	background-image:
		repeating-linear-gradient(0deg, var(--t, rgba(35, 31, 32, .06)) 0 1px, transparent 1px var(--s, 4px)),
		repeating-linear-gradient(90deg, var(--t, rgba(35, 31, 32, .06)) 0 1px, transparent 1px var(--s, 4px));
}
.rmd-cloth--cotton    { --c: var(--ivory); --t: rgba(35, 31, 32, .07); --s: 3px; }
.rmd-cloth--linen     { --c: var(--sand);  --t: rgba(122, 90, 46, .14); --s: 5px; }
.rmd-cloth--wool      { --c: var(--charcoal); background-image: repeating-linear-gradient(45deg, rgba(255, 253, 249, .07) 0 2px, transparent 2px 6px); }
.rmd-cloth--polyester { --c: var(--muted); --t: rgba(255, 253, 249, .09); --s: 3px; }
.rmd-cloth--japanese  { --c: #2E6E8E; --t: rgba(255, 253, 249, .10); --s: 4px; }        /* accent sky (verified) */
.rmd-cloth--sukruta   { --c: #997641; background-image: repeating-linear-gradient(-45deg, rgba(35, 31, 32, .14) 0 1px, transparent 1px 5px); } /* sukruta brand, graphics only */
.rmd-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 1rem; list-style: none; margin: 0; padding: 0; }
.rmd-gallery .rmd-figure { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius-lg); }
.rmd-gallery img { display: block; inline-size: 100%; block-size: 100%; object-fit: cover; }
.rmd-cloth--photo     { background: none; overflow: hidden; }
.rmd-cloth--photo img { display: block; inline-size: 100%; block-size: 100%; object-fit: cover; }
.rmd-cloth--hero      { --c: var(--charcoal); aspect-ratio: auto; block-size: 100%;background-image: repeating-linear-gradient(45deg, rgba(201, 161, 100, .10) 0 1px, transparent 1px 7px), repeating-linear-gradient(-45deg, rgba(201, 161, 100, .06) 0 1px, transparent 1px 7px); }

/* ---------- Trust strip ---------- */
.rmd-trust {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	padding-block-end: 32px;
	margin-block-end: 40px;
	border-block-end: 1px solid var(--line);
}
.rmd-trust li {
	font-weight: 500;
	color: var(--ink);
	padding-inline-start: 12px;
	border-inline-start: 2px solid var(--brass-ui);
	line-height: 1.5;
}
@media (min-width: 900px) { .rmd-trust { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- Cards ---------- */
.rmd-cards { display: grid; gap: 12px; }
@media (min-width: 640px) {
	.rmd-cards--4, .rmd-cards--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}
@media (min-width: 900px) { .rmd-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.rmd-cards--4:has(.rmd-card--tile) { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.rmd-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 6px;
	block-size: 100%;
	padding: 20px;
	background: var(--ivory);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	color: var(--body);
	text-decoration: none;
}
a.rmd-card:hover { text-decoration: none; border-color: var(--brass-ui); }
.rmd-sec--ivory .rmd-card { background: var(--sand); }
.rmd-card__t { display: block; font-size: 18px; font-weight: 700; line-height: 1.4; color: var(--ink); margin: 0; }
.rmd-card__d { display: block; font-size: 15px; color: var(--muted); }
.rmd-card__more { display: inline-flex; align-items: center; gap: 4px; margin-block-start: auto; color: var(--brass); font-size: 15px; font-weight: 500; }
.rmd-card__more .rmd-icon { inline-size: 16px; block-size: 16px; }
.rmd-card--intent { padding-inline-end: 52px; min-block-size: 96px; justify-content: center; }
.rmd-card--intent > .rmd-icon--arrow { position: absolute; inset-inline-end: 16px; inset-block-start: calc(50% - 10px); color: var(--brass); }
.rmd-card--tile { min-block-size: 120px; justify-content: space-between; }

/* ---------- Fabric swatches ---------- */
.rmd-swatches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 640px) { .rmd-swatches { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
.rmd-swatch {
	position: relative;
	display: block;
	block-size: 100%;
	background: var(--charcoal);
	border-radius: var(--radius);
	overflow: hidden;
	color: var(--ivory);
	text-decoration: none;
	-webkit-tap-highlight-color: transparent;
}
.rmd-swatch__body { display: block; padding: 12px 14px 14px; }
.rmd-swatch__name { display: block; font-weight: 700; font-size: 16px; color: var(--ivory); }
.rmd-swatch__sub { display: block; font-size: 13px; line-height: 1.5; color: var(--line); margin-block-start: 2px; }

.rmd-usps { margin-block-start: 48px; }
.rmd-usps__list { display: grid; gap: 12px; counter-reset: usp; }
@media (min-width: 900px) { .rmd-usps__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
.rmd-usps__list li { counter-increment: usp; border-block-start: 1px solid var(--brass-ui); padding-block-start: 12px; }
.rmd-usps__list li::before { content: counter(usp, decimal-leading-zero); display: block; color: var(--gold); font-size: 13px; font-weight: 700; }
.rmd-usps__list a { display: inline-flex; min-block-size: 44px; align-items: center; color: var(--ivory) !important; font-weight: 700; font-size: 18px; text-decoration: none; }
.rmd-usps__list a:hover { color: var(--gold) !important; }

/* ---------- Horizontal scroll (Sudanese wear) ---------- */
.rmd-hscroll {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: 44%;
	gap: 12px;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	padding-block: 4px 12px;
	scrollbar-width: thin;
}
.rmd-hscroll > li { scroll-snap-align: start; }
@media (min-width: 640px) { .rmd-hscroll { grid-auto-columns: 30%; } }
@media (min-width: 900px) { .rmd-hscroll { grid-auto-columns: 1fr; overflow: visible; } }

/* ---------- Tailoring process ---------- */
.rmd-process { position: relative; display: grid; gap: 28px; }
.rmd-process__step { position: relative; padding-inline-start: 64px; min-block-size: 44px; }
.rmd-process__num {
	position: absolute;
	inset-block-start: 0;
	inset-inline-start: 0;
	z-index: 1;
	display: grid;
	place-items: center;
	inline-size: 44px;
	block-size: 44px;
	border: 1px solid var(--gold);
	border-radius: var(--radius);
	background: var(--ink);
	color: var(--gold);
	font-size: 14px;
	font-weight: 700;
}
.rmd-process__t { font-size: 18px; font-weight: 700; margin-block-end: 4px; }
.rmd-process__d { font-size: 15px; color: var(--line); }
/* Mobile: a vertical connector from each number down to the next one
   (animated per step in motion.css). */
.rmd-process__step:not(:last-child)::after {
	content: "";
	position: absolute;
	inset-inline-start: 21.5px;
	inset-block-start: 44px;
	block-size: calc(100% - 44px + 28px);
	inline-size: 1px;
	background: var(--gold);
}
/* Desktop: one horizontal track + progress line, centre of first number → centre of last. */
@media (min-width: 900px) {
	.rmd-process { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
	.rmd-process__step { padding-inline-start: 0; padding-block-start: 64px; }
	.rmd-process__step:not(:last-child)::after { content: none; }
	.rmd-process::before,
	.rmd-process::after {
		content: "";
		position: absolute;
		inset-block-start: 22px;
		inset-inline: 22px calc(25% - 46px);
		block-size: 1px;
	}
	.rmd-process::after  { background: rgba(201, 161, 100, .2); }
	.rmd-process::before { background: var(--gold); z-index: 1; }
}

.rmd-stitch { margin-block-start: 40px; }
.rmd-stitch__label { font-size: 13px; font-weight: 500; color: var(--gold); margin-block-end: 8px; }
.rmd-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rmd-chips li { padding: 6px 14px; border: 1px solid var(--brass-ui); border-radius: var(--radius-lg); color: var(--ivory); font-size: 15px; }

/* ---------- B2B band ---------- */
.rmd-band { display: grid; gap: 24px; }
@media (min-width: 900px) { .rmd-band { grid-template-columns: 1.2fr 1fr; align-items: end; gap: 64px; } .rmd-band .rmd-sec__head { margin-block-end: 0; } }
.rmd-linklist { margin-block-end: 24px; }
.rmd-linklist a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-block-size: 52px;
	border-block-end: 1px solid rgba(255, 253, 249, .16);
	color: var(--ivory) !important;
	font-weight: 500;
	text-decoration: none;
}
.rmd-linklist a:hover { color: var(--gold) !important; }

/* ---------- Branch cards ---------- */
.rmd-branch { gap: 8px; }
.rmd-branch__type { font-size: 15px; color: var(--muted); }
.rmd-branch .rmd-btn { align-self: flex-start; margin-block-start: auto; color: var(--ink); }
.rmd-branch bdi { font-weight: 500; }

/* ---------- Journal + FAQ ---------- */
.rmd-journal { padding: 24px; gap: 8px; }
.rmd-sec--ivory .rmd-journal { background: var(--ink); border-color: var(--ink); }
.rmd-journal .rmd-eyebrow { color: var(--gold); margin: 0; }
.rmd-journal__t { font-size: var(--wp--preset--font-size--heading-sm); font-weight: 700; line-height: 1.4; color: var(--ivory); }
.rmd-journal .rmd-card__d { color: var(--line); }
.rmd-journal .rmd-card__more { color: var(--gold); margin-block-start: 16px; }

.rmd-faq__item { border-block-end: 1px solid var(--line); }
.rmd-faq__q {
	list-style: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-block-size: 56px;
	padding-block: 12px;
	font-size: 17px;
	font-weight: 500;
	color: var(--ink);
	cursor: pointer;
}
.rmd-faq__q::-webkit-details-marker { display: none; }
.rmd-faq__q .rmd-icon { color: var(--brass); }
.rmd-faq__a { padding-block-end: 16px; }

/* ---------- Final CTA ---------- */
.rmd-final { text-align: center; }
.rmd-final .rmd-lead { margin-inline: auto; }
.rmd-final .rmd-actions { justify-content: center; }

/* ---------- Footer ---------- */
.rmd-footer { background: var(--sand); color: var(--body); padding-block-start: 48px; }
.rmd-footer a { color: var(--body); text-decoration: none; }
.rmd-footer a:hover { color: var(--brass); text-decoration: underline; }
.rmd-footer__top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; padding-block-end: 32px; border-block-end: 1px solid var(--line); }
.rmd-footer__logo img { inline-size: 128px; block-size: 62px; object-fit: contain; }
.rmd-footer__h { font-size: 13px; font-weight: 700; color: var(--ink); margin-block-end: 4px; }
.rmd-footer__social ul { display: flex; flex-wrap: wrap; column-gap: 16px; }
.rmd-footer__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; padding-block: 32px; }
@media (min-width: 900px) { .rmd-footer__cols { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.rmd-footer :is(.rmd-footer__cols, .rmd-footer__social, .rmd-footer__legal) a { display: inline-flex; align-items: center; min-block-size: 44px; font-size: 15px; }
.rmd-footer__legal { border-block-start: 1px solid var(--line); padding-block: 8px; }
.rmd-footer__legal ul { display: flex; flex-wrap: wrap; column-gap: 20px; }
.rmd-compliance { border-block-start: 1px solid var(--line); padding-block: 12px; font-size: 13px; line-height: 1.7; color: var(--muted); }
.rmd-compliance span:not(:last-child)::after { content: " · "; }

/* ---------- Mobile sticky action bar ---------- */
.rmd-actionbar {
	position: fixed;
	inset-inline: 0;
	inset-block-end: 0;
	z-index: 60;
	display: flex;
	gap: 8px;
	padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom, 0px));
	background: var(--ink);
	border-block-start: 1px solid rgba(201, 161, 100, .25);
}
.rmd-actionbar .rmd-btn { flex: 1 1 0; min-inline-size: 0; }
@media (min-width: 900px) { .rmd-actionbar { display: none; } }

/* ---------- Inner pages (index.html fallback) ---------- */
.rmd-page { padding-block: 48px; }

/* ==========================================================================
   Inner pages — branches, hub, about, 404
   ========================================================================== */
.rmd-narrow { max-inline-size: calc(760px + 2 * var(--gutter)); }

/* Page head (ink) */
.rmd-pagehead { padding-block: 24px 56px; }
.rmd-pagehead--compact { padding-block-end: 48px; }
.rmd-pagehead__title {
	font-size: var(--wp--preset--font-size--display);
	font-weight: 700;
	line-height: 1.25;
	text-wrap: balance;
	margin-block: 4px 12px;
}
.rmd-sec--ivory .rmd-pagehead__title { color: var(--ink); }
.rmd-pagehead__sub { display: flex; align-items: center; gap: 6px; color: var(--line); margin-block-start: 8px; }
.rmd-pagehead__sub .rmd-icon { color: var(--gold); }
@media (min-width: 900px) { .rmd-pagehead { padding-block: 32px 80px; } }
.rmd-media--branch { aspect-ratio: 3 / 2; }
@media (min-width: 900px) { .rmd-hero__media.rmd-media--branch { aspect-ratio: 3 / 2; } }

/* Breadcrumbs */
.rmd-crumbs { margin-block-end: 20px; font-size: 14px; }
.rmd-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; }
.rmd-crumbs li { display: inline-flex; align-items: center; }
.rmd-crumbs li:not(:last-child)::after { content: "/"; margin-inline: 8px; opacity: .5; }
.rmd-crumbs a { display: inline-flex; align-items: center; min-block-size: 44px; }
.rmd-crumbs [aria-current] { opacity: .8; }
:is(.rmd-sec--ink, .rmd-sec--olive) .rmd-crumbs { color: var(--line); }

/* Editor-only preview banner */
.rmd-preview-note {
	margin: 0;
	padding: 10px var(--gutter);
	background: #fff4d6;
	color: var(--ink);
	border-block-end: 2px solid var(--brass-ui);
	font-size: 14px;
	font-weight: 500;
	text-align: center;
}

/* Prose from the editor */
.rmd-prose > * { margin-block: 0; }
.rmd-prose > * + * { margin-block-start: 14px; }
.rmd-prose p { max-inline-size: 65ch; }

/* NAP card */
.rmd-nap { padding: 24px; gap: 12px; }
.rmd-sec--ivory .rmd-nap { background: var(--sand); }
.rmd-sec--sand .rmd-nap { background: var(--ivory); }
.rmd-nap dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 10px 16px; }
.rmd-nap dt { font-weight: 700; color: var(--ink); font-size: 15px; }
.rmd-nap dd { margin: 0; font-size: 15px; }
.rmd-nap dd a { display: inline-flex; min-block-size: 44px; align-items: center; margin-block: -12px; }
.rmd-nap__note { font-size: 14px; color: var(--muted); border-block-start: 1px solid var(--line); padding-block-start: 12px; }

/* Chips on light backgrounds (service links) */
.rmd-chips { margin: 0; padding: 0; list-style: none; }
.rmd-chips--light { margin-block-start: 20px; }
.rmd-chips--light li { padding: 0; border: 0; }
.rmd-chips--light a {
	display: inline-flex;
	align-items: center;
	min-block-size: 44px;
	padding: 6px 16px;
	border: 1px solid var(--brass-ui);
	border-radius: var(--radius-lg);
	color: var(--ink);
	font-size: 15px;
	font-weight: 500;
	text-decoration: none;
}
.rmd-chips--light a:hover { background: var(--sand); }

/* Process on olive (wholesale steps) */
.rmd-sec--olive .rmd-process__num { background: var(--olive); }
.rmd-sec--olive .rmd-process__d { color: var(--ivory); }

/* Branch cards with photo (hub) */
.rmd-hub__group { margin-block: 32px 12px; }
.rmd-hub__group:first-of-type { margin-block-start: 8px; }
.rmd-branch--photo { padding: 0; overflow: hidden; }
.rmd-branch--photo > :not(.rmd-branch__photo) { margin-inline: 20px; }
.rmd-branch--photo > :last-child { margin-block-end: 20px; }
.rmd-branch__photo { aspect-ratio: 3 / 2; background: var(--line); }
.rmd-branch__photo picture, .rmd-branch__photo img { display: block; inline-size: 100%; block-size: 100%; object-fit: cover; }
.rmd-branch--photo .rmd-card__t { margin-block-start: 16px; }
/* Hub layout: wholesale + tailoring side by side on desktop, retail row of three below */
.rmd-hub__row { display: block; }
.rmd-hub__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 16px; }
.rmd-hub__col { min-inline-size: 0; }
@media (min-width: 900px) {
	.rmd-hub__row--pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
	.rmd-hub__row--pair .rmd-hub__group { margin-block-start: 8px; }
	.rmd-hub__row--retail .rmd-hub__group { margin-block-start: 40px; }
}
@media (max-width: 899.98px) { .rmd-hub__row--retail .rmd-hub__group, .rmd-hub__row--pair .rmd-hub__col + .rmd-hub__col .rmd-hub__group { margin-block-start: 32px; } }
.rmd-branch--full { gap: 10px; }
.rmd-branch__addr { display: flex; gap: 8px; align-items: flex-start; font-size: 15px; color: var(--muted); margin-block: 0; }
.rmd-branch__addr svg { flex: none; inline-size: 18px; block-size: 18px; margin-block-start: 3px; }
.rmd-branch__hours { font-size: 15px; padding-block: 10px; border-block: 1px solid var(--line); }
.rmd-branch__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-block-start: auto; padding-block-start: 4px; }
.rmd-branch__actions .rmd-btn { margin-block-start: 0; align-self: auto; }
.rmd-branch .rmd-btn--wa { color: #0B141A; }
.rmd-branch .rmd-btn--ink,
.rmd-branch .rmd-btn--ink:hover { color: var(--ivory); }
.rmd-card__t a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--brass-ui); text-underline-offset: 4px; }
.rmd-card__t a:hover { color: var(--brass); }

/* Owned brands strip (mono ink) */
.rmd-brands { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; margin-block-start: 24px; }
@media (min-width: 900px) { .rmd-brands { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.rmd-brands li { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 20px 12px; border: 1px solid var(--line); border-radius: var(--radius); text-align: center; }
.rmd-brands img { block-size: 56px; inline-size: auto; max-inline-size: 100%; }
.rmd-brands span { font-size: 14px; font-weight: 500; color: var(--ink); }

/* Japan partnership photos (render only after consent) */
.rmd-jp-photos { display: grid; gap: 16px; }
/* ---------- Fabrics hub + generic page ---------- */
.rmd-cloth--premium { --c: var(--ink); background-image: repeating-linear-gradient(45deg, rgba(201, 161, 100, .16) 0 1px, transparent 1px 6px), repeating-linear-gradient(-45deg, rgba(201, 161, 100, .08) 0 1px, transparent 1px 6px); }
.rmd-cloth--winter  { --c: var(--olive); background-image: repeating-linear-gradient(45deg, rgba(255, 253, 249, .08) 0 2px, transparent 2px 7px); }
.rmd-cloth--summer  { --c: var(--ivory); --t: rgba(122, 90, 46, .10); --s: 6px; }
.rmd-swatch__name { margin: 0; line-height: 1.4; }
.rmd-tag {
	display: inline-block;
	margin-block-start: 8px;
	padding: 2px 10px;
	border: 1px solid var(--gold);
	border-radius: var(--radius-lg);
	color: var(--gold);
	font-size: 12px;
	font-weight: 500;
}
.rmd-stitch__label { margin: 0 0 8px; }
.rmd-chips a { display: inline-flex; align-items: center; min-block-size: 44px; color: inherit !important; text-decoration: none; }
.rmd-chips--light a { color: var(--ink) !important; } /* light chips sit on ivory: the generic inherit rule above made them ivory-on-ivory */
.rmd-chips li:has(> a) { padding-block: 0; }
.rmd-chips li:has(> a):hover { border-color: var(--gold); }

/* Editor content on generic pages */
.rmd-entry :is(h2, h3) { color: var(--ink); margin-block-start: 32px; }
.rmd-entry h2 { font-size: var(--wp--preset--font-size--heading); }
.rmd-entry h3 { font-size: var(--wp--preset--font-size--heading-sm); }
.rmd-entry :is(ul, ol) { padding-inline-start: 1.25em; }
.rmd-entry li + li { margin-block-start: 6px; }
.rmd-entry a { text-decoration: underline; text-underline-offset: 3px; }
.rmd-entry table { inline-size: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.rmd-entry :is(th, td) { padding: 10px 12px; border: 1px solid var(--line); text-align: start; }
/* ---------- Fabric pages ---------- */
.rmd-cloth--korean { --c: #E9EEF1; --t: rgba(46, 110, 142, .14); --s: 3px; }
.rmd-fabric__swatch { aspect-ratio: 4 / 3; border-radius: var(--radius-lg); overflow: hidden; }
.rmd-fabric__swatch .rmd-cloth { aspect-ratio: auto; block-size: 100%; }
@media (min-width: 900px) { .rmd-fabric__swatch { aspect-ratio: 1 / 1; } }
.rmd-checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rmd-checklist li { position: relative; padding-inline-start: 26px; }
.rmd-checklist li::before {
	content: "";
	position: absolute;
	inset-inline-start: 2px;
	inset-block-start: .55em;
	inline-size: 12px;
	block-size: 7px;
	/* Physical sides on purpose: a tick is not mirrored in RTL. */
	border-left: 2px solid var(--brass-ui);
	border-bottom: 2px solid var(--brass-ui);
	transform: rotate(-45deg);
}
.rmd-cards--dark .rmd-card { background: var(--charcoal); border-color: rgba(255, 253, 249, .1); }
.rmd-cards--dark .rmd-card__t { color: var(--ivory); }
.rmd-cards--dark .rmd-card__d { color: var(--line); }
.rmd-cards--dark a.rmd-card:hover { border-color: var(--gold); }
.rmd-cards--dark .rmd-icon--arrow { color: var(--gold) !important; }
/* Comparison table (fabric pages) */
.rmd-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.rmd-table { inline-size: 100%; border-collapse: collapse; font-size: 15px; }
.rmd-table :is(th, td) { padding: 12px 14px; text-align: start; vertical-align: top; border-block-end: 1px solid var(--line); }
.rmd-table thead th { background: var(--sand); color: var(--ink); font-weight: 700; }
.rmd-table tbody th { color: var(--ink); font-weight: 700; white-space: nowrap; }
.rmd-table tr:last-child :is(th, td) { border-block-end: 0; }
/* ---------- Info pages (tailoring…) ---------- */
.rmd-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: none; }
@media (min-width: 900px) { .rmd-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; } }
.rmd-steps__item { display: flex; gap: 14px; align-items: flex-start; padding: 16px; background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius); }
.rmd-sec--ivory .rmd-steps__item { background: var(--sand); }
.rmd-steps__num { flex: none; display: grid; place-items: center; inline-size: 40px; block-size: 40px; border-radius: var(--radius); background: var(--ink); color: var(--gold); font-weight: 700; font-size: 14px; }
.rmd-steps__t { margin: 0 0 4px; font-size: 17px; font-weight: 700; color: var(--ink); }
.rmd-steps__d { margin: 0; font-size: 15px; }
.rmd-options { margin: 0; display: grid; gap: 14px; }
.rmd-options__row { display: grid; gap: 6px; padding-block-end: 14px; border-block-end: 1px solid var(--line); }
@media (min-width: 640px) { .rmd-options__row { grid-template-columns: 160px 1fr; align-items: center; } }
.rmd-options dt { font-weight: 700; color: var(--ink); }
.rmd-options dd { margin: 0; }
.rmd-chips--soft { display: flex; flex-wrap: wrap; gap: 6px; }
.rmd-chips--soft li { padding: 4px 12px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--ivory); color: var(--ink); font-size: 14px; }
.rmd-sec--ivory .rmd-chips--soft li { background: var(--sand); }
/* ---------- Forms, contact, branch finder (wholesale · contact · find-branch) ---------- */
.rmd-form { display: grid; gap: 16px; max-inline-size: 560px; }
.rmd-form__row { display: grid; gap: 6px; }
.rmd-form label { font-weight: 700; color: var(--ink); font-size: 15px; }
.rmd-form :is(input, select, textarea) {
	inline-size: 100%; min-block-size: 48px; padding: 10px 14px; font: inherit; font-size: 16px; color: var(--ink);
	background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius);
}
.rmd-sec--ivory .rmd-form :is(input, select, textarea) { background: var(--sand); }
.rmd-form :is(input, select, textarea):focus { border-color: var(--brass-ui); }
.rmd-form textarea { resize: vertical; }
.rmd-form .rmd-btn { justify-self: start; }
.rmd-form__note { margin: 0; font-size: 14px; color: var(--muted); }
.rmd-contact { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 12px; }
@media (min-width: 760px) { .rmd-contact { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.rmd-contact__item { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 2px 12px; text-decoration: none; color: var(--ink); }
.rmd-contact__item .rmd-icon { grid-row: span 2; color: var(--brass); }
.rmd-contact__k { font-size: 14px; color: var(--muted); }
.rmd-contact__item bdi { font-weight: 700; justify-self: start; overflow-wrap: anywhere; }
a.rmd-contact__item:hover { border-color: var(--brass-ui); }
.rmd-chips--links li { padding: 0; }
.rmd-chips--links a { display: inline-flex; align-items: center; min-block-size: 44px; padding-inline: 14px; color: var(--ink); text-decoration: none; }
.rmd-finder__filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; padding: 0; border: 0; }
.rmd-finder__filter label { position: relative; cursor: pointer; }
.rmd-finder__filter input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.rmd-finder__filter span {
	display: inline-flex; align-items: center; min-block-size: 44px; padding-inline: 16px; font-weight: 500; color: var(--ink);
	border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--ivory);
}
.rmd-finder__filter input:checked + span { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.rmd-finder__filter input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.rmd-finder__list { list-style: none; margin: 0; padding: 0; }
.rmd-finder:has(input[value="wholesale"]:checked) .rmd-finder__item:not([data-type="wholesale"]),
.rmd-finder:has(input[value="tailoring"]:checked) .rmd-finder__item:not([data-type="tailoring"]),
.rmd-finder:has(input[value="retail"]:checked) .rmd-finder__item:not([data-type="retail"]) { display: none; }
.rmd-actions--sm { gap: 8px; margin-block-start: auto; }
.rmd-finder .rmd-branch .rmd-btn { margin-block-start: 0; }
/* ---------- About: story timeline, founder, office ---------- */
.rmd-steps--years .rmd-steps__num { inline-size: auto; min-inline-size: 40px; padding-inline: 10px; white-space: nowrap; font-size: 13px; }
@media (min-width: 900px) { .rmd-steps--years { grid-template-columns: 1fr; max-inline-size: 820px; } }
.rmd-founder { position: relative; }
.rmd-founder figcaption { margin-block-start: 10px; font-size: 14px; color: var(--line); text-align: center; }
.rmd-prose .rmd-media { margin: 20px 0; border-radius: var(--radius); overflow: hidden; }
.rmd-prose .rmd-media img { display: block; inline-size: 100%; block-size: auto; }
.rmd-prose .rmd-options { margin-block: 20px; }
.rmd-office { margin-block-start: 24px; gap: 8px; border-color: var(--brass-ui); }
.rmd-office .rmd-btn { align-self: flex-start; margin-block-start: 8px; }
/* Branch hours list (verified branches) */
.rmd-hours { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.rmd-hours li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; }
.rmd-hours bdi { font-weight: 500; }
/* Figure sections (info pages, about) */
.rmd-figure { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--line); }
.rmd-figure picture, .rmd-figure img { display: block; inline-size: 100%; block-size: auto; }
.rmd-figure figcaption { padding: 10px 14px; font-size: 14px; color: var(--muted); background: var(--ivory); }
.rmd-sec--ivory .rmd-figure figcaption { background: var(--sand); }
.rmd-figure--story { margin-block-start: 24px; max-inline-size: 820px; }
/* Real fabric photos in hub swatches */
.rmd-cloth--photo { background: var(--line); overflow: hidden; }
.rmd-cloth--photo picture, .rmd-cloth--photo img { display: block; inline-size: 100%; block-size: 100%; object-fit: cover; }
/* ---------- Product strip (auto-scrolling marquee) + zoom lightbox ---------- */
.rmd-strip { overflow: hidden; direction: ltr; padding-block: 8px 4px; margin-block-start: 8px; }
.rmd-strip__track { display: flex; gap: 16px; margin: 0; padding: 0 16px; list-style: none; inline-size: max-content; }
.rmd-strip:not(.is-marquee) .rmd-strip__track { inline-size: auto; flex-wrap: wrap; justify-content: center; }
.rmd-strip__item { direction: rtl; display: block; inline-size: clamp(190px, 62vw, 260px); padding: 0; border: 1px solid rgba(255, 253, 249, .14); border-radius: var(--radius-lg); background: var(--charcoal); color: var(--ivory); text-align: start; cursor: zoom-in; overflow: hidden; font: inherit; }
.rmd-strip__item img { display: block; inline-size: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform .45s ease; }
.rmd-strip__item:hover img, .rmd-strip__item:focus-visible img { transform: scale(1.06); }
.rmd-strip__item:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.rmd-strip__item { position: relative; }
/* Magnifier badge: signals that the photo opens in the zoom lightbox. */
.rmd-strip__item::after { content: ""; position: absolute; inset-block-start: 10px; inset-inline-end: 10px; inline-size: 36px; block-size: 36px; border-radius: 50%; background: rgba(35, 31, 32, .72) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fffdf9' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5 21 21M10.5 8v5M8 10.5h5'/%3E%3C/svg%3E") center / 20px no-repeat; pointer-events: none; transition: background-color .2s ease; }
.rmd-strip__item:hover::after, .rmd-strip__item:focus-visible::after { background-color: rgba(176, 141, 87, .95); }
.rmd-strip__cap { display: block; padding: 10px 12px 12px; }
.rmd-strip__cap strong { display: block; font-size: 15px; font-weight: 700; }
.rmd-strip__cap small { display: block; margin-block-start: 2px; font-size: 12.5px; color: rgba(255, 253, 249, .72); }
@keyframes rmd-strip-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.rmd-strip.is-marquee .rmd-strip__track { animation: rmd-strip-scroll 55s linear infinite; }
.rmd-strip.is-marquee:hover .rmd-strip__track, .rmd-strip.is-marquee:focus-within .rmd-strip__track, .rmd-strip.is-paused .rmd-strip__track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
	.rmd-strip.is-marquee { overflow-x: auto; scroll-snap-type: x proximity; }
	.rmd-strip.is-marquee .rmd-strip__track { animation: none; }
	.rmd-strip.is-marquee li[aria-hidden="true"] { display: none; }
	.rmd-strip__item { scroll-snap-align: start; }
}
.rmd-lightbox { inline-size: min(94vw, 980px); max-block-size: 94vh; padding: 12px; border: 0; border-radius: var(--radius-lg); background: var(--ink); color: var(--ivory); }
.rmd-lightbox::backdrop { background: rgba(10, 8, 8, .82); }
.rmd-lightbox__close { position: absolute; inset-block-start: 8px; inset-inline-start: 8px; z-index: 2; inline-size: 44px; block-size: 44px; border: 0; border-radius: 50%; background: rgba(35, 31, 32, .85); color: var(--ivory); font-size: 28px; line-height: 1; cursor: pointer; }
.rmd-lightbox__stage { max-block-size: calc(94vh - 130px); overflow: auto; border-radius: calc(var(--radius-lg) - 4px); text-align: center; background: #0e0c0c; }
.rmd-lightbox__stage img { display: block; margin-inline: auto; max-inline-size: 100%; max-block-size: calc(94vh - 130px); object-fit: contain; cursor: zoom-in; }
.rmd-lightbox__stage.is-zoomed img { max-inline-size: none; max-block-size: none; inline-size: 200%; cursor: zoom-out; }
.rmd-lightbox__cap { margin: 10px 4px 0; display: flex; flex-direction: column; gap: 2px; }
.rmd-lightbox__cap span { font-size: 14px; color: rgba(255, 253, 249, .78); }
.rmd-lightbox__hint { margin: 4px 4px 0; font-size: 12.5px; color: rgba(255, 253, 249, .55); }

/* ---------- "Nearest branch" (geolocation) ---------- */
.rmd-locate { margin-block-end: 24px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--sand); }
.rmd-locate__head { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.rmd-locate__note { margin: 0; font-size: 14px; color: var(--muted); }
.rmd-locate__out { margin-block-start: 16px; padding-block-start: 16px; border-block-start: 1px solid var(--line); display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.rmd-locate__out[hidden] { display: none; }
.rmd-locate__msg { margin: 0; }
.rmd-finder__item.is-nearest .rmd-card { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(201, 161, 100, .35); }

/* ---------- Analytics consent banner ---------- */
.rmd-consent { position: fixed; inset-inline: 12px; inset-block-end: 12px; z-index: 60; max-inline-size: 640px; margin-inline: auto; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--ivory); color: var(--ink); box-shadow: 0 8px 30px rgba(35, 31, 32, .18); display: flex; flex-direction: column; gap: 10px; }
.rmd-consent[hidden] { display: none; }
.rmd-consent__text { margin: 0; font-size: 14px; line-height: 1.7; }
.rmd-consent__text a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.rmd-consent__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.rmd-linklike { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* Branch map: live Google map, warmed to the Ramada palette (gold frame, brand pin at the exact branch point). */
.rmd-map { position: relative; margin-block-start: 20px; border: 2px solid var(--gold); border-radius: var(--radius-lg); overflow: hidden; background: var(--charcoal); box-shadow: 0 14px 34px rgba(35, 31, 32, .18); }
.rmd-map__frame { display: block; inline-size: 100%; block-size: clamp(320px, 52vw, 460px); border: 0; filter: sepia(.32) saturate(.82) hue-rotate(-8deg) contrast(1.04) brightness(1.01); }
.rmd-map__pin { position: absolute; inset-block-start: 50%; inset-inline-start: 50%; inline-size: 46px; block-size: 46px; margin: -62px 0 0 -23px; transform: none; display: grid; place-items: center; background: var(--ink); border: 3px solid var(--gold); border-radius: 50% 50% 50% 0; rotate: -45deg; box-shadow: 0 6px 14px rgba(0, 0, 0, .4); pointer-events: none; }
.rmd-map__pin img { rotate: 45deg; inline-size: 26px; block-size: 26px; display: block; }
.rmd-map__tag { position: absolute; inset-block-start: 12px; inset-inline-start: 12px; max-inline-size: calc(100% - 24px); padding: 6px 12px; background: var(--ink); color: var(--ivory); border-inline-start: 3px solid var(--gold); border-radius: 6px; font-size: 14px; font-weight: 700; pointer-events: none; }
/* All-branches map: dark OSM tiles, gold Ramada pins, floating info card. */
.rmd-bmap { margin-block: 28px 8px; }
.rmd-bmap__frame { position: relative; border: 2px solid var(--gold); border-radius: var(--radius-lg); overflow: hidden; background: #1c1819; box-shadow: 0 24px 60px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(255, 253, 249, .06); }
.rmd-bmap__view { position: relative; direction: ltr; block-size: clamp(400px, 62vw, 560px); overflow: hidden; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.rmd-bmap__view.is-drag { cursor: grabbing; }
.rmd-bmap__view.is-locked { touch-action: pan-y; }
.rmd-bmap__view::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at center, transparent 55%, rgba(20, 17, 18, .55) 100%); }
.rmd-bmap__world { position: absolute; inset: 0; }
.rmd-bmap__t { position: absolute; inline-size: 256px; block-size: 256px; max-inline-size: none; filter: invert(1) hue-rotate(188deg) saturate(.55) brightness(.9) contrast(.92) sepia(.22); pointer-events: none; }
.rmd-bmap__pin { position: absolute; z-index: 3; inline-size: 0; block-size: 0; padding: 0; border: 0; background: none; cursor: pointer; }
.rmd-bmap__pinc { position: absolute; inset-inline-start: -19px; inset-block-start: -50px; inline-size: 38px; block-size: 38px; border-radius: 50% 50% 50% 0; rotate: -45deg; background: var(--gold); border: 3px solid var(--ivory); box-shadow: 0 0 0 6px rgba(201, 161, 100, .22), 0 10px 20px rgba(0, 0, 0, .55); transition: transform .2s ease, background-color .2s ease; }
.rmd-bmap__pinc::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; rotate: 45deg; background: var(--ink) url("../brand/favicon_ramada_badge.svg") center / 72% no-repeat; }
.rmd-bmap__pin.is-office .rmd-bmap__pinc { background: var(--ivory); border-color: var(--gold); }
.rmd-bmap__pin:hover .rmd-bmap__pinc, .rmd-bmap__pin:focus-visible .rmd-bmap__pinc, .rmd-bmap__pin.is-active .rmd-bmap__pinc { transform: scale(1.18); background: var(--ivory); }
.rmd-bmap__pin.is-active { z-index: 5; }
.rmd-bmap__pin.is-active .rmd-bmap__pinc { animation: rmd-bmap-pulse 1.8s ease-out infinite; }
@keyframes rmd-bmap-pulse { 0% { box-shadow: 0 0 0 0 rgba(201, 161, 100, .55), 0 10px 20px rgba(0, 0, 0, .55); } 100% { box-shadow: 0 0 0 22px rgba(201, 161, 100, 0), 0 10px 20px rgba(0, 0, 0, .55); } }
.rmd-bmap__pinl { position: absolute; inset-inline-start: 50%; inset-block-start: 6px; transform: translateX(-50%); white-space: nowrap; padding: 3px 10px; border-radius: 999px; background: rgba(35, 31, 32, .92); color: var(--ivory); font-size: 12.5px; font-weight: 700; opacity: 0; pointer-events: none; transition: opacity .2s ease; direction: rtl; }
.rmd-bmap__pin:hover .rmd-bmap__pinl, .rmd-bmap__pin:focus-visible .rmd-bmap__pinl, .rmd-bmap__pin.is-active .rmd-bmap__pinl { opacity: 1; }
.rmd-bmap__pin:focus-visible { outline: none; }
.rmd-bmap__ctl { position: absolute; inset-block-start: 12px; inset-inline-end: 12px; z-index: 6; display: grid; gap: 6px; }
.rmd-bmap__ctl button { inline-size: 44px; block-size: 44px; border: 1px solid rgba(255, 253, 249, .25); border-radius: 10px; background: rgba(35, 31, 32, .88); color: var(--ivory); font-size: 24px; line-height: 1; cursor: pointer; }
.rmd-bmap__ctl button:hover { background: var(--gold); color: var(--ink); }
.rmd-bmap__hint { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; border: 0; background: rgba(35, 31, 32, .55); color: var(--ivory); font: inherit; font-size: 17px; font-weight: 700; cursor: pointer; direction: rtl; }
.rmd-bmap__hint[hidden] { display: none; }
.rmd-bmap__card { position: absolute; z-index: 7; inset-block-end: 14px; inset-inline: 14px; max-inline-size: 380px; display: grid; gap: 4px; padding: 16px 18px 16px; background: rgba(255, 253, 249, .97); color: var(--ink); border-radius: 14px; border-inline-start: 4px solid var(--gold); box-shadow: 0 18px 40px rgba(0, 0, 0, .5); text-align: start; direction: rtl; }
.rmd-bmap__card[hidden] { display: none; }
@media (min-width: 700px) { .rmd-bmap__card { inset-inline: auto; inset-inline-start: 18px; inset-block-end: 18px; } }
.rmd-bmap__n { font-size: 18px; padding-inline-end: 28px; }
.rmd-bmap__ty { font-size: 13.5px; font-weight: 700; color: #8a6a35; }
.rmd-bmap__ad { font-size: 14px; color: #4a4446; line-height: 1.6; }
.rmd-bmap__acts { display: flex; flex-wrap: wrap; gap: 8px; margin-block-start: 8px; }
.rmd-bmap__x { position: absolute; inset-block-start: 6px; inset-inline-end: 8px; inline-size: 36px; block-size: 36px; border: 0; background: none; font-size: 26px; line-height: 1; color: #6d6568; cursor: pointer; }
.rmd-bmap__attr { position: absolute; z-index: 6; inset-block-end: 4px; inset-inline-end: 8px; margin: 0; font-size: 11px; direction: ltr; }
.rmd-bmap__attr a { color: rgba(255, 253, 249, .8); text-decoration: none; background: rgba(35, 31, 32, .7); padding: 1px 6px; border-radius: 4px; }
.rmd-bmap__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.rmd-bmap__list button { min-block-size: 44px; padding: 8px 16px; border: 1px solid rgba(201, 161, 100, .55); border-radius: 999px; background: transparent; color: var(--ivory); font: inherit; font-size: 14.5px; font-weight: 500; cursor: pointer; }
.rmd-bmap__list button:hover, .rmd-bmap__list button.is-active { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.rmd-bmap__list button.is-office { border-style: dashed; }
.rmd-sec--sand .rmd-bmap__list button, .rmd-sec--ivory .rmd-bmap__list button { color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .rmd-bmap__pin.is-active .rmd-bmap__pinc { animation: none; } }
.rmd-bmap__card .rmd-btn--ghost { color: var(--ink); border-color: rgba(35, 31, 32, .55); }
.rmd-bmap__card .rmd-btn--ghost:hover { background: var(--ink); color: var(--ivory); }

/* Google engine: brand pins (Advanced Markers) + map host. */
.rmd-bmap__g { position: absolute; inset: 0; }
.rmd-bmap.is-google .rmd-bmap__ctl { display: none; }
.rmd-bmap.is-google .rmd-bmap__attr { display: none; }
.rmd-bmap.is-google .rmd-bmap__view::after { display: none; }
.rmd-bmap.is-google .rmd-bmap__view { cursor: auto; touch-action: auto; }
.rmd-gpin { position: relative; inline-size: 0; block-size: 0; }
.rmd-gpin__c { position: absolute; inset-inline-start: -19px; inset-block-start: -50px; inline-size: 38px; block-size: 38px; border-radius: 50% 50% 50% 0; rotate: -45deg; background: #c9a164; border: 3px solid #fffdf9; box-shadow: 0 0 0 6px rgba(201, 161, 100, .22), 0 10px 20px rgba(0, 0, 0, .55); transition: transform .2s ease, background-color .2s ease; }
.rmd-gpin__c::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; rotate: 45deg; background: #231f20 url("../brand/favicon_ramada_badge.svg") center / 72% no-repeat; }
.rmd-gpin.is-office .rmd-gpin__c { background: #fffdf9; border-color: #c9a164; }
.rmd-gpin:hover .rmd-gpin__c, .rmd-gpin.is-active .rmd-gpin__c { transform: scale(1.18); background: #fffdf9; }
.rmd-gpin.is-active .rmd-gpin__c { animation: rmd-bmap-pulse 1.8s ease-out infinite; }
.rmd-gpin__l { position: absolute; inset-inline-start: 0; inset-block-start: 6px; transform: translateX(-50%); white-space: nowrap; padding: 3px 10px; border-radius: 999px; background: rgba(35, 31, 32, .92); color: #fffdf9; font: 700 12.5px/1.4 Tajawal, sans-serif; opacity: 0; pointer-events: none; transition: opacity .2s ease; direction: rtl; }
.rmd-gpin:hover .rmd-gpin__l, .rmd-gpin.is-active .rmd-gpin__l { opacity: 1; }
.rmd-bmap--single .rmd-bmap__list { display: none; }
.rmd-bmap--single .rmd-bmap__view { block-size: clamp(320px, 52vw, 460px); }
/* Day mode (visitor's local 06:00-18:00): light map, ivory frame; night keeps the dark brand map. */
.rmd-bmap.is-day .rmd-bmap__frame { background: #efe8da; box-shadow: 0 24px 60px rgba(35, 31, 32, .28), inset 0 0 0 1px rgba(35, 31, 32, .06); }
.rmd-bmap.is-day .rmd-bmap__t { filter: sepia(.3) saturate(.8) hue-rotate(-8deg) contrast(1.03) brightness(1.02); }
.rmd-bmap.is-day .rmd-bmap__view::after { background: radial-gradient(ellipse at center, transparent 62%, rgba(120, 92, 48, .22) 100%); }
.rmd-bmap.is-day .rmd-bmap__attr a { background: rgba(255, 253, 249, .85); color: #231f20; }
.rmd-bmap.is-day .rmd-bmap__pinc, .rmd-bmap.is-day .rmd-gpin__c { background: #231f20; border-color: #c9a164; box-shadow: 0 0 0 6px rgba(35, 31, 32, .12), 0 10px 20px rgba(0, 0, 0, .35); }
.rmd-bmap.is-day .rmd-bmap__pin.is-office .rmd-bmap__pinc, .rmd-bmap.is-day .rmd-gpin.is-office .rmd-gpin__c { background: #c9a164; border-color: #231f20; }
.rmd-bmap.is-day .rmd-bmap__pin:hover .rmd-bmap__pinc, .rmd-bmap.is-day .rmd-bmap__pin.is-active .rmd-bmap__pinc, .rmd-bmap.is-day .rmd-gpin:hover .rmd-gpin__c, .rmd-bmap.is-day .rmd-gpin.is-active .rmd-gpin__c { background: #c9a164; }
/* Wide (4:3) variant of the zoom strip — scanned archive photos with signage. */
.rmd-strip--wide .rmd-strip__item { inline-size: clamp(260px, 70vw, 360px); }
.rmd-strip--wide .rmd-strip__item img { aspect-ratio: 4 / 3; }
/* Blog */
.rmd-posts { align-items: stretch; }
.rmd-post { display: grid; gap: 8px; align-content: start; block-size: 100%; text-decoration: none; }
.rmd-post__img { display: block; aspect-ratio: 3 / 2; border-radius: var(--radius); overflow: hidden; background: var(--charcoal); margin-block-end: 6px; }
.rmd-post__img img { inline-size: 100%; block-size: 100%; object-fit: cover; }
.rmd-post__meta { font-size: 13.5px; font-weight: 700; color: #7a5a24; }
.rmd-pagination ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; list-style: none; margin: 32px 0 0; padding: 0; }
.rmd-pagination a, .rmd-pagination span { display: inline-flex; align-items: center; justify-content: center; min-inline-size: 44px; min-block-size: 44px; padding-inline: 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); }
.rmd-pagination .current { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.rmd-article__cover { margin-block: 0 28px; }
.rmd-article { font-size: 18px; line-height: 1.95; }
.rmd-article h2 { font-size: clamp(22px, 3.2vw, 28px); margin-block: 36px 12px; line-height: 1.4; }
.rmd-article p, .rmd-article li { max-inline-size: 68ch; }
.rmd-article ul { padding-inline-start: 22px; display: grid; gap: 8px; }
.rmd-article a { color: #7a5a24; text-decoration: underline; text-underline-offset: 3px; }
.rmd-article strong { color: var(--ink); }
/* ==========================================================================
   Night theme (html[data-theme="dark"]): the light surfaces (ivory/sand sections, footer, subnav,
   consent bar) re-scope the colour tokens, so every component inside flips without new rules.
   Dark sections (ink/olive) and the header are already dark and are untouched.
   ========================================================================== */
html[data-theme="dark"] { color-scheme: dark; }
html[data-theme="dark"] body { background: #131011; color: #d9d2c6; }
html[data-theme="dark"] :is(.rmd-sec--ivory, .rmd-sec--sand, .rmd-footer, .rmd-subnav, .rmd-consent, .rmd-page) {
	--ivory: #1a1617;
	--sand: #221d1e;
	--ink: #fffdf9;
	--body: #d9d2c6;
	--muted: #a99f92;
	--brass: #c9a164;
	--brass-ui: #c9a164;
	--line: rgba(255, 253, 249, .16);
}
html[data-theme="dark"] .rmd-sec--ivory { background: #1a1617; }
html[data-theme="dark"] .rmd-sec--sand { background: #221d1e; }
html[data-theme="dark"] .rmd-footer { background: #171314; }
/* Things that must keep their light/hard colours */
html[data-theme="dark"] :is(.rmd-bmap, .rmd-hbrands, .rmd-btn--gold, .rmd-btn--wa) { --ink: #231f20; --ivory: #fffdf9; --line: #e4dcc9; --brass: #7a5a2e; --body: #3a4149; --muted: #5a5f66; }
html[data-theme="dark"] .rmd-btn--ink { background: #fffdf9; color: #231f20; border-color: #fffdf9; }
html[data-theme="dark"] .rmd-steps__num { background: #2d2627; color: #c9a164; }
html[data-theme="dark"] .rmd-btn--ghost { border-color: rgba(255, 253, 249, .45); }
html[data-theme="dark"] :is(.rmd-sec--ivory, .rmd-sec--sand, .rmd-page) .rmd-btn--ghost { color: #fffdf9; }
html[data-theme="dark"] .rmd-article a { color: #c9a164; }
html[data-theme="dark"] .rmd-post__meta, html[data-theme="dark"] .rmd-bmap__ty { color: #c9a164; }
html[data-theme="dark"] .rmd-bmap__card { --ink: #231f20; }
html[data-theme="dark"] .rmd-bmap__list button { color: #fffdf9; border-color: rgba(201, 161, 100, .55); }
html[data-theme="dark"] .rmd-bmap__list button:hover, html[data-theme="dark"] .rmd-bmap__list button.is-active { color: #231f20; }
html[data-theme="dark"] img:not([src$=".svg"]) { filter: brightness(.94) contrast(1.02); }
html[data-theme="dark"] .rmd-bmap img, html[data-theme="dark"] .rmd-hbrands img, html[data-theme="dark"] .rmd-lightbox img { filter: none; }

/* Theme toggle button (header + drawer) */
.rmd-theme { display: inline-grid; place-items: center; inline-size: 44px; block-size: 44px; padding: 0; border: 1px solid rgba(255, 253, 249, .22); border-radius: 50%; background: transparent; color: var(--ivory); cursor: pointer; transition: background-color .2s ease, border-color .2s ease; }
.rmd-theme:hover { border-color: var(--gold); color: var(--gold); }
.rmd-theme svg { inline-size: 22px; block-size: 22px; grid-area: 1 / 1; }
.rmd-theme .rmd-theme__sun { display: none; }
html[data-theme="dark"] .rmd-theme .rmd-theme__sun { display: block; }
html[data-theme="dark"] .rmd-theme .rmd-theme__moon { display: none; }
.rmd-menu__panel .rmd-theme { inline-size: auto; border-radius: 999px; padding-inline: 16px; gap: 10px; grid-auto-flow: column; margin-block-start: 16px; color: var(--ivory); font: inherit; font-size: 16px; }
.rmd-menu__panel .rmd-theme svg { grid-area: auto; }
html[data-theme="dark"] .rmd-sec--ivory .rmd-journal { background: #2a2425; border-color: rgba(201, 161, 100, .45); }
html[data-theme="dark"] .rmd-journal .rmd-journal__t { color: #fffdf9; }
html[data-theme="dark"] .rmd-journal .rmd-card__d { color: #d9d2c6; }
html[data-theme="dark"] .rmd-journal .rmd-eyebrow { color: #c9a164; }

/* Language dropdown (flags are inline SVG — emoji flags do not render on Windows) */
.rmd-langdd { position: relative; }
.rmd-langdd > summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; min-block-size: 44px; padding-inline: 12px; border: 1px solid rgba(255, 253, 249, .22); border-radius: 999px; color: var(--ivory); cursor: pointer; font-size: 14.5px; font-weight: 500; }
.rmd-langdd > summary::-webkit-details-marker { display: none; }
.rmd-langdd > summary:hover, .rmd-langdd[open] > summary { border-color: var(--gold); color: var(--gold); }
.rmd-langdd__cur { display: none; }
.rmd-langdd__caret { transition: transform .2s ease; }
.rmd-langdd[open] .rmd-langdd__caret { transform: rotate(180deg); }
.rmd-flag { inline-size: 24px; block-size: 16px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(255, 253, 249, .25); flex: none; display: block; }
.rmd-langdd__list { position: absolute; inset-block-start: calc(100% + 8px); inset-inline-end: 0; z-index: 40; min-inline-size: 168px; margin: 0; padding: 6px; list-style: none; background: var(--ink); border: 1px solid rgba(201, 161, 100, .4); border-radius: 12px; box-shadow: 0 14px 30px rgba(0, 0, 0, .4); }
.rmd-langdd__list a { display: flex; align-items: center; gap: 10px; min-block-size: 44px; padding-inline: 12px; border-radius: 8px; color: var(--ivory); text-decoration: none; font-size: 15px; }
.rmd-langdd__list a:hover, .rmd-langdd__list a:focus-visible { background: rgba(255, 253, 249, .1); }
.rmd-langdd__list a[aria-current="true"] { color: var(--gold); font-weight: 700; }
@media (min-width: 1100px) { .rmd-langdd__cur { display: inline; } }
html:not([dir="rtl"]) .rmd-langdd__list { inset-inline-end: 0; }
/* English (LTR): the hero gradient and text sit on the left */
@media (min-width: 900px) {
	html:not([dir="rtl"]) .rmd-hslide__bg::after { background: linear-gradient(to right, rgba(35, 31, 32, .92) 0%, rgba(35, 31, 32, .78) 34%, rgba(35, 31, 32, .12) 78%); }
}
html:not([dir="rtl"]) body { font-feature-settings: "kern" 1; }
html:not([dir="rtl"]) .rmd-hero__title, html:not([dir="rtl"]) .rmd-pagehead__title { line-height: 1.15; letter-spacing: -.01em; }
html:not([dir="rtl"]) .rmd-bmap__card, html:not([dir="rtl"]) .rmd-bmap__hint, html:not([dir="rtl"]) .rmd-bmap__pinl, html:not([dir="rtl"]) .rmd-gpin__l { direction: ltr; }
/* Very small phones (<= 379px): keep logo + language + theme + CTA + menu on one line */
@media (max-width: 379.98px) {
	.rmd-logo img { inline-size: 74px; block-size: auto; }
	.rmd-header__end { gap: 4px; }
	.rmd-theme { inline-size: 40px; block-size: 40px; }
	.rmd-theme svg { inline-size: 20px; block-size: 20px; }
	.rmd-langdd > summary { min-block-size: 40px; padding-inline: 8px; gap: 5px; }
	.rmd-langdd__caret { display: none; }
	.rmd-menu > summary { inline-size: 40px; block-size: 40px; }
	.rmd-header .rmd-btn--gold { padding-inline: 10px; min-inline-size: 40px; }
}
/* Long unbreakable values (CR/VAT numbers, short addresses) must wrap inside cards on 320px */
.rmd-split > * { min-inline-size: 0; }
.rmd-nap, .rmd-nap dd { overflow-wrap: anywhere; }


/* Header search: icon toggle + dropdown form */
.rmd-search { position: relative; }
.rmd-search__toggle { list-style: none; display: inline-grid; place-items: center; inline-size: 44px; block-size: 44px; border: 1px solid rgba(255, 253, 249, .22); border-radius: 50%; color: var(--ivory); cursor: pointer; }
.rmd-search__toggle::-webkit-details-marker { display: none; }
.rmd-search__toggle svg { inline-size: 22px; block-size: 22px; }
.rmd-search__toggle:hover, .rmd-search[open] > .rmd-search__toggle { border-color: var(--gold); color: var(--gold); }
.rmd-search__form { position: absolute; inset-block-start: calc(100% + 8px); inset-inline-end: 0; z-index: 40; display: flex; gap: 8px; inline-size: min(340px, calc(100vw - 32px)); padding: 10px; background: var(--ink); border: 1px solid rgba(201, 161, 100, .4); border-radius: 12px; box-shadow: 0 14px 30px rgba(0, 0, 0, .4); }
.rmd-search__input { flex: 1; min-inline-size: 0; min-block-size: 44px; padding-inline: 12px; border: 1px solid rgba(255, 253, 249, .3); border-radius: 8px; background: rgba(255, 253, 249, .08); color: var(--ivory); font: inherit; font-size: 16px; }
.rmd-search__input::placeholder { color: rgba(255, 253, 249, .6); }
@media (max-width: 379.98px) { .rmd-search__toggle { inline-size: 40px; block-size: 40px; } .rmd-search__toggle svg { inline-size: 20px; block-size: 20px; } }
