/*
 * AMWAJ Omani Rial Symbol 1.0.1
 * Official Omani Rial Sign (Central Bank of Oman), bundled locally.
 * Matches the approved samples in the CBO "Omani Rial Sign Guidelines" V6.0 (p. 16, 19):
 *  - outline: the guidelines' own vector (not the taller svg.zip variants);
 *  - alignment: ink height = numeral (cap) height of the surrounding font, bottom on the baseline;
 *  - position: left of the numeral; spacing: sign-to-digit ink gap of about 0.27 x numeral height, as measured in the samples (0.22cap margin + the digit side bearing);
 *  - direction: never mirrored or rotated; colour: same as the text (currentColor).
 */

@font-face {
	font-family: "AMWAJ OMR Symbol";
	src: url("../fonts/amwaj-omr-symbol.woff2?ver=1.0.1") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: block;
	unicode-range: U+20C4;
}

/* Inline-SVG version (classic templates, PHP-rendered blocks, mini-cart, admin). */
.omr-symbol {
	display: inline-block;
	white-space: nowrap;
	line-height: 1;
	vertical-align: baseline;
	color: inherit;
	margin: 0;
	padding: 0;
}

.omr-symbol__svg {
	display: inline-block;
	/* viewBox = tight ink box, so this is exactly the numeral height. */
	height: 0.7em;   /* fallback: typical cap/figure height (Quicksand = 0.700em) */
	height: 1cap;    /* exact cap height of the current font (Chrome 118+, Firefox 97+, Safari 17.2+) */
	width: auto;
	max-width: none;
	margin: 0;
	padding: 0;
	border: 0;
	vertical-align: baseline; /* bottom edge of the ink box = text baseline */
	fill: currentColor;
	overflow: visible;
	direction: ltr;
	transform: none; /* never mirrored or rotated (CBO "Direction" rule) */
}

/* CBO "Spacing": the real no-break space stays in the markup but is drawn at the sample width. */
.omr-symbol--spaced {
	margin-right: 0.154em;  /* 0.22 x 0.7em */
	margin-right: 0.22cap;
}
.omr-symbol__gap {
	font-size: 0;
	letter-spacing: 0;
	word-spacing: 0;
}

/* Visually hidden "OMR" for screen readers. */
.omr-symbol__sr {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	clip-path: inset(50%) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

/* Glyph version (WooCommerce Blocks / Store API text). JS adds the class. */
.omr-symbol-font {
	font-synthesis: none;
}
