/* ==========================================================================
   Wingomarkets Blog — RTL overrides
   Loaded only when is_rtl() is true (e.g. the fa_IR locale).
   Tailwind logical utilities (ms-/me-/ps-/pe-/start-/end-) already flip on
   their own; this file covers the Persian typeface and the handful of
   places the markup still uses physical directions or Latin-only defaults.
   ========================================================================== */

/* ── Typography ─────────────────────────────────────────────────────── */

/* Farsi Fonts */
@font-face {
	font-family: "YekanBakh";
	src: url("/fonts/yekanbakh-01-hairline.woff2") format("woff2");
	font-weight: 100;
	font-display: swap;
}
@font-face {
	font-family: "YekanBakh";
	src: url("/fonts/yekanbakh-02-thin.woff2") format("woff2");
	font-weight: 200 300;
	font-display: swap;
}
@font-face {
	font-family: "YekanBakh";
	src: url("/fonts/yekanbakh-04-regular.woff2") format("woff2");
	font-weight: 400;
	font-display: swap;
}
@font-face {
	font-family: "YekanBakh";
	src: url("/fonts/yekanbakh-05-medium.woff2") format("woff2");
	font-weight: 500;
	font-display: swap;
}
@font-face {
	font-family: "YekanBakh";
	src: url("/fonts/yekanbakh-06-bold.woff2") format("woff2");
	font-weight: 600 700;
	font-display: swap;
}
@font-face {
	font-family: "YekanBakh";
	src: url("/fonts/yekanbakh-07-heavy.woff2") format("woff2");
	font-weight: 800;
	font-display: swap;
}
@font-face {
	font-family: "YekanBakh";
	src: url("/fonts/yekanbakh-08-fat.woff2") format("woff2");
	font-weight: 900;
	font-display: swap;
}





body.wingo-rtl,
body.wingo-rtl .font-sans,
body.wingo-rtl .font-ui {
    font-family: 'YekanBakh', 'Rubik', Tahoma, 'Segoe UI', sans-serif;
}

/* Playfair Display has no Persian coverage — fall back to the UI face
   so display headings don't silently render in a substituted system font. */
body.wingo-rtl .font-display {
    font-family: 'YekanBakh', Tahoma, 'Segoe UI', serif;
}


@media all and (min-width:900px){
  footer .max-w-300{
    margin-top: -200px;
  }
}

/* Persian reads better with slightly looser leading at small sizes. */
body.wingo-rtl .wg-content {
    line-height: 2;
}

/* ── Direction ──────────────────────────────────────────────────────── */
body.wingo-rtl .wg-content,
body.wingo-rtl .entry-content {
    direction: rtl;
    text-align: right;
}

/* Code blocks, IBANs, tickers and prices stay left-to-right. */
body.wingo-rtl .wg-content pre,
body.wingo-rtl .wg-content code,
body.wingo-rtl .wg-content kbd,
body.wingo-rtl .wg-content samp {
    direction: ltr;
    text-align: left;
    unicode-bidi: isolate;
}

/* ── Icons that encode a direction ──────────────────────────────────── */
/* Chevrons/arrows in breadcrumbs, pagination and carousel rails point the
   "forward" way; in RTL forward is leftwards. */
body.wingo-rtl .wg-pagination a,
body.wingo-rtl .wg-pagination span {
    direction: ltr;
}

body.wingo-rtl [data-rail-prev] svg,
body.wingo-rtl [data-rail-next] svg {
    transform: scaleX(-1);
}

body.wingo-rtl [data-rail-prev] svg.-scale-x-100 {
    transform: none;
}

body.wingo-rtl nav svg use[href="#i-chev"],
body.wingo-rtl svg > use[href="#i-chev"] {
    transform-box: fill-box;
    transform-origin: center;
    transform: scaleX(-1);
}

/* ── Numerals ───────────────────────────────────────────────────────── */
/* Ranked list counters and view counts read better in Latin digits even in
   Persian copy; remove this rule if the client prefers Persian numerals. */
body.wingo-rtl .text-wg-num {
    direction: ltr;
    unicode-bidi: isolate;
}

/* ── Forms ──────────────────────────────────────────────────────────── */
body.wingo-rtl input[type="email"],
body.wingo-rtl input[type="url"],
body.wingo-rtl input[type="tel"] {
    direction: ltr;
    text-align: right;
}

body.wingo-rtl input::placeholder,
body.wingo-rtl textarea::placeholder {
    text-align: right;
}
