/* Site UI fixes (DECISIONS #13 era). Loaded after the theme CSS, never pruned. Logical properties only, so EN and AR share it. */

/* Author pill (article cards, blog post meta): avatar, gap, name */
.author-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding-inline-end: 0.75rem;
	vertical-align: middle;
}
.author-pill img {
	flex: none;
}

/* Pagination: one flex row. Direction comes from the page, so in Arabic the first item sits on the right and
   1, 2, 3 ... N read right to left. Plain inline items let the digits form their own left-to-right run. */
.pagination-adjust {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 0.5rem;
}
.pagination-adjust .page-numbers {
	display: inline-block;
	unicode-bidi: isolate;
	white-space: nowrap;
}

/* Blog sidebar promo card: image keeps its ratio, arrow is a round button */
.promo-card {
	display: flex;
	align-items: stretch;
	justify-content: space-between;
	gap: 1rem;
}
.promo-card-img {
	flex: none;
	align-self: center;
	height: 7rem;
	width: auto;
	max-width: 45%;
	object-fit: contain;
}
.promo-card-body {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: flex-end;
	text-align: end;
	min-width: 0;
}
.promo-card-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 50%;
	background: #fff;
	color: #006baf;
	text-decoration: none;
	transition: transform 0.15s ease-in-out, background-color 0.15s ease-in-out;
}
.promo-card-arrow svg {
	width: 1.25rem;
	height: 1.25rem;
}
.promo-card-arrow:hover,
.promo-card-arrow:focus-visible {
	color: #006baf;
	background: #e6f2fa;
	transform: scale(1.06);
}
.promo-card-arrow:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

/* Language switcher without a translation: greyed, not a link */
.wpml-ls-legacy-list-horizontal .wpml-ls-unavailable {
	display: block;
	padding: 5px 10px 6px;
	line-height: 1;
	opacity: 0.45;
	cursor: not-allowed;
}
.wpml-ls-legacy-list-horizontal .wpml-ls-unavailable .wpml-ls-flag + span {
	margin-inline-start: 0.4em;
}
.ui-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}
