/**
 * Happy Yumi — RTL overrides (Arabic and other RTL locales).
 * Loaded only when is_rtl() is true.
 */

html[dir="rtl"] body {
	direction: rtl;
	text-align: right;
}

html[dir="rtl"] .hy-header__inner,
html[dir="rtl"] .hy-header__tools,
html[dir="rtl"] .hy-footer__main,
html[dir="rtl"] .hy-footer__base {
	flex-direction: row-reverse;
}

html[dir="rtl"] .hy-header-search__input,
html[dir="rtl"] .hy-search__input {
	text-align: right;
}

html[dir="rtl"] .hy-search__panel {
	right: auto;
	left: var(--gutter);
	transform-origin: top left;
}

html[dir="rtl"] .hy-nav,
html[dir="rtl"] .hy-footer__columns {
	direction: rtl;
}

html[dir="rtl"] .hy-hero-v5__grid,
html[dir="rtl"] .hy-manifesto__inner,
html[dir="rtl"] .hy-premium-v5__inner {
	direction: rtl;
}

/* Cover hero editorial: visual left / copy right */
html[dir="rtl"] .hy-hero-v5__split {
	direction: rtl;
}

html[dir="rtl"] .hy-hero-v5__content,
html[dir="rtl"] .hy-hero-v5--cover .hy-hero-v5__copy {
	align-items: flex-end;
	text-align: right;
}

/* Arabic hero: copy left, map centred, chef + compass right. */
html[dir="rtl"] .hy-hero-v5__cover-chef {
	left: auto;
	right: var(--hy-chef-offset-right);
}

html[dir="rtl"] .hy-hero-v5__cover-chef .hy-hero-v5__cover-img {
	transform: scaleX(-1);
}

html[dir="rtl"] .hy-hero-v5--cover {
	--hy-map-cx: calc(100% - var(--hy-chef-h) * 1.0773);
}

html[dir="rtl"] .hy-hero-v5--cover .hy-hero-v5__grid {
	justify-content: flex-end;
}

html[dir="rtl"] .hy-hero-v5--cover .hy-hero-v5__copy {
	text-align: right;
}

html[dir="rtl"] .hy-hero-v5--cover .hy-hero-v5__lead {
	margin-right: auto;
	margin-left: 0;
}

html[dir="rtl"] .hy-hero-v5__visual-accent {
	left: auto;
	right: clamp(-6px, -0.6vw, 0px);
}

html[dir="rtl"] .hy-hero-v5__cover-emblem {
	left: auto;
	right: 0;
	transform: translate(10%, 3%);
	transform-origin: bottom right;
}

html[dir="rtl"] .hy-hero-v5--cover .hy-hero-v5__actions {
	flex-direction: row-reverse;
	justify-content: flex-end;
}

html[dir="rtl"] .hy-cuisine-v5__nav--prev svg {
	transform: scaleX(-1);
}

html[dir="rtl"] .hy-catalog-v5__filters {
	flex-direction: row-reverse;
}

html[dir="rtl"] .hy-footer__columns {
	text-align: right;
}

html[dir="rtl"] .hy-link::after {
	direction: rtl;
}

html[dir="rtl"] .hy-footer__menu a:hover,
html[dir="rtl"] .hy-footer__menu-btn:hover {
  transform: translateX(-2px);
}

html[dir="rtl"] .hy-skip {
	left: auto;
	right: -9999px;
}

html[dir="rtl"] .hy-skip:focus {
	right: 16px;
	left: auto;
}

html[dir="rtl"] .hy-lang__list {
	flex-direction: row-reverse;
}

html[dir="rtl"] .hy-card-v5__meta,
html[dir="rtl"] .hy-recipe-card__meta {
	text-align: right;
}

html[dir="rtl"] .hy-breadcrumb {
	flex-direction: row-reverse;
}

html[dir="rtl"] .hy-breadcrumb li + li::before {
	transform: scaleX(-1);
}

html[dir="rtl"] .hy-ingredient {
	flex-direction: row-reverse;
	text-align: right;
}

html[dir="rtl"] .hy-step {
	padding-inline-start: 0;
	padding-inline-end: 2.5rem;
}

html[dir="rtl"] .hy-step__num {
	inset-inline-start: auto;
	inset-inline-end: 0;
}

html[dir="rtl"] [class*="__arrow"] svg,
html[dir="rtl"] .hy-btn svg {
	transform: scaleX(-1);
}

html[dir="rtl"] .hy-header__inner {
	gap: 0;
}
