/* Arabic/RTL layer for the Newsroom child theme. */

:root {
	--oh-sans: system-ui, "Segoe UI", Tahoma, Arial, sans-serif;
	--oh-serif: Tahoma, Arial, sans-serif;
}

html[dir="rtl"] body {
	direction: rtl;
	font-family: var(--oh-sans);
	text-align: start;
}

html[dir="rtl"] :where(h1, h2, h3, h4, h5, h6, button, input, select, textarea) {
	font-family: var(--oh-sans);
}

html[dir="rtl"] :where(p, li, blockquote, figcaption, input, textarea) {
	line-height: 1.85;
}

html[dir="rtl"] :where(input, textarea, select) {
	direction: rtl;
	text-align: right;
}

html[dir="rtl"] input[type="email"],
html[dir="rtl"] input[type="url"] {
	direction: ltr;
	text-align: left;
}

html[dir="rtl"] :where(.oh-kicker, .oh-story-label, .oh-article-author__eyebrow, .oh-news-meta, .oh-category-label) {
	letter-spacing: 0;
	text-transform: none;
}

html[dir="rtl"] .oh-brand {
	letter-spacing: 0;
}

html[dir="rtl"] .oh-brand b,
html[dir="rtl"] .oh-brand span {
	font-family: var(--oh-sans);
}

html[dir="rtl"] :where(.oh-section-nav, .oh-publisher-bar__inner, .oh-actions, .oh-share, .oh-story-labels) {
	direction: rtl;
}

html[dir="rtl"] :where(.oh-section-nav, .oh-home-discovery__suggestions) {
	scroll-padding-inline-start: 1rem;
}

html[dir="rtl"] .oh-nav-cue b {
	direction: rtl;
}

html[dir="rtl"] :where(.oh-prose, .oh-prose--page, .entry-content, .oh-article__content) :where(ul, ol) {
	padding-inline-start: 1.4em;
	padding-inline-end: 0;
}

html[dir="rtl"] :where(.oh-prose, .oh-prose--page, .entry-content) blockquote {
	border-left: 0;
	border-right: 4px solid var(--oh-blue);
	padding-left: 0;
	padding-right: 1.25rem;
}

html[dir="rtl"] .oh-live-news li {
	padding: 12px 0 12px 16px;
}

html[dir="rtl"] .oh-article-evidence {
	margin-inline: 0;
}

html[dir="rtl"] :where(.oh-share a, .oh-search, .oh-button, .oh-account) {
	white-space: nowrap;
}

html[dir="rtl"] .oh-post-navigation .nav-previous {
	text-align: right;
}

html[dir="rtl"] .oh-post-navigation .nav-next {
	text-align: left;
}

html[dir="rtl"] :where(.oh-home-section > header, .oh-module-heading, .oh-rail-latest > header, .oh-category-feed__header) {
	text-align: right;
}

html[dir="rtl"] .screen-reader-text:focus {
	left: auto;
	right: 5px;
}

@media (max-width: 760px) {
	html[dir="rtl"] .oh-masthead__main,
	html[dir="rtl"] .oh-publisher-bar__inner {
		text-align: center;
	}

	html[dir="rtl"] .oh-actions {
		justify-content: center;
	}

	html[dir="rtl"] :where(.oh-article h1, .oh-page h1, .oh-search-head h1, .oh-author-hero h1) {
		font-size: clamp(2rem, 10vw, 3rem);
		line-height: 1.25;
	}

	html[dir="rtl"] :where(.oh-prose, .oh-prose--page, .entry-content) {
		font-size: 1.05rem;
	}
}
