/**
 * Alpha News — RTL overrides.
 *
 * Loaded automatically when the active locale is right-to-left. Uses logical
 * properties where possible; this file only flips the few physical values that
 * cannot be expressed logically.
 *
 * @package Alpha_News
 * @since   1.0.0
 */

body {
	direction: rtl;
	unicode-bidi: embed;
}

/* Header utility strip: date on the right, weather on the left (logical). */
.alpha-news-utility__inner {
	flex-direction: row;
}

/* Brand row: logo on the right, utilities on the left (logical). */
.alpha-news-brand-row__inner {
	flex-direction: row;
}

/* Nav row: burger on the right, social on the left (logical). */
.alpha-news-nav-row__inner {
	flex-direction: row;
}

/* Menu items read right-to-left. */
.alpha-news-menu {
	text-align: right;
}

.alpha-news-mobile {
	transform: translateX(100%);
}

.alpha-news-mobile.is-open {
	transform: translateX(0);
}

.alpha-news-mobile[hidden] {
	transform: translateX(100%);
}

.alpha-news-breadcrumb li + li::before {
	content: "\\";
}

.alpha-news-single__nav-prev,
.alpha-news-single__nav-next {
	text-align: right;
}

.alpha-news-single__nav-next {
	text-align: left;
}

.alpha-news-card--2 {
	grid-template-columns: minmax(0, 1fr) 120px;
}

.alpha-news-menu .sub-menu {
	left: auto;
	right: 0;
}

/* Slider: flip arrow glyphs and dot order. */
.alpha-news-slider__prev span,
.alpha-news-slider__next span {
	display: inline-block;
	transform: scaleX(-1);
}

/* Card arrows (up / down) sit on the opposite corner in RTL. */
.alpha-news-card__arrow {
	inset-inline-start: 10px;
	inset-inline-end: auto;
}

/* Timeline: date column moves to the right. */
.alpha-news-card--timeline {
	grid-template-columns: minmax(0, 1fr) 90px;
}

.alpha-news-card--timeline .alpha-news-card__time {
	text-align: left;
}

/* Excerpt card accent border flips to the right edge. */
.alpha-news-card--excerpt {
	border-inline-start: 0;
	border-inline-end: 3px solid var(--alpha-primary, #c8102e);
}

/* Weather icon / body order stays logical; only the gradient angle flips. */
.alpha-news-weather {
	background: linear-gradient(225deg, var(--alpha-primary, #c8102e), #8f0b20);
}

/* Ad wrappers align text to the right. */
.alpha-news-ad {
	text-align: right;
}

/* Section titles and block headers align right. */
.alpha-news-block__title,
.alpha-news-section__title {
	text-align: right;
}

/* Reading-time separator dot flips to the right of the label. */
.alpha-news-card__reading {
	padding-inline-start: 0;
	padding-inline-end: 14px;
}

.alpha-news-card__reading::before {
	inset-inline-start: auto;
	inset-inline-end: 0;
}
