/* MEPCO GP Child: Urdu (right-to-left). Loaded only on Urdu pages, after style.css and lang-news.css.
   Urdu font: Noto Nastaliq Urdu, self-hosted. The @font-face is printed inline by inc/lang.php only when
   assets/fonts/NotoNastaliqUrdu-subset.woff2 exists; without the file the fallback stack below is used
   (a locally installed Nastaliq first, then Naskh and system fonts). The file is an OPEN item (CEO supplies it). */

body.mepco-rtl {
  --font: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", "Urdu Typesetting", "Noto Naskh Arabic", "Geeza Pro", "Segoe UI", Tahoma, Arial, sans-serif;
  --font-urdu: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", "Urdu Typesetting", "Noto Naskh Arabic", "Geeza Pro", "Segoe UI", Tahoma, Arial, sans-serif;
  font-family: var(--font);
  line-height: 2.1;
}
/* Small text was sized for Latin; Nastaliq needs more room. All rem sizes grow by 12.5 %. */
html[lang="ur"] { font-size: 112.5%; }

/* Joined letters must never be spaced. */
.mepco-rtl *:not(input):not(.dummy-number) { letter-spacing: 0 !important; }
.mepco-rtl .eyebrow, .mepco-rtl .card-kicker, .mepco-rtl .footer-heading, .mepco-rtl .mbc-kicker { text-transform: none; }

/* Nastaliq has tall ascenders and deep descenders. */
.mepco-rtl h1, .mepco-rtl h2, .mepco-rtl h3 { line-height: 1.95; }
.mepco-rtl .article-content p, .mepco-rtl .article-content li { line-height: 2.25; }
.mepco-rtl .task-card p, .mepco-rtl .card-body p, .mepco-rtl .step p, .mepco-rtl .faq-answer, .mepco-rtl .section-heading p { line-height: 2; }
.mepco-rtl .hero-lead { line-height: 2; }
.mepco-rtl .site-nav a { line-height: 1.9; }

/* Latin brand name and numbers keep their own face and direction. */
.mepco-rtl .wordmark { font-family: var(--font-latin); direction: ltr; unicode-bidi: isolate; }
.mepco-rtl .dummy-bill, .mepco-rtl .dummy-number { direction: ltr; font-family: var(--font-latin); }

/* ---------- Lists, borders and positions that were written with left/right ---------- */
.mepco-rtl .article-content ul, .mepco-rtl .article-content ol, .mepco-rtl .faq-answer ul { padding-right: 1.25rem; padding-left: 0; }
.mepco-rtl .toc ol { padding-right: 19px; padding-left: 0; }
.mepco-rtl .breadcrumb li:not(:last-child)::after { margin-right: 7px; margin-left: 0; }
.mepco-rtl .step { padding: 19px 67px 17px 18px; }
.mepco-rtl .step-number { right: 16px; left: auto; }
.mepco-rtl .faq-list summary { padding: 14px 17px 14px 50px; }
.mepco-rtl .faq-list summary::after { right: auto; left: 15px; }
.mepco-rtl .look-here { right: auto; left: 9px; }
.mepco-rtl .article-disclaimer { border-right: 5px solid var(--accent); border-left: 0; border-radius: 11px 0 0 11px; }
.mepco-rtl .callout, .mepco-rtl .info-box { border-right-width: 6px; border-left-width: 1px; }
.mepco-rtl .callout { border-right-color: var(--tip); }
.mepco-rtl .callout-important { border-right-color: var(--accent); }
.mepco-rtl .info-box { border-right-color: var(--primary); }
.mepco-rtl .comparison-table th, .mepco-rtl .comparison-table td { text-align: right; }

/* Theme 1.0.2: small muted label after an Urdu card title that links to an English page: <span class="card-lang-note">(انگریزی میں)</span>. */
.card-lang-note { display: inline-block; margin-inline-start: 6px; color: var(--muted); font-size: 0.7em; font-weight: 600; line-height: 1.6; white-space: nowrap; }

/* ---------- Bill tool in Urdu ---------- */
.mepco-rtl .mbc-tool { text-align: right; line-height: 1.9; }
.mepco-rtl .mbc-tool input.mbc-input { padding: 11px 13px 11px 79px; direction: ltr; text-align: right; font-family: var(--font-latin); }
.mepco-rtl .mbc-tool button.mbc-paste { right: auto; left: 7px; }
.mepco-rtl .mbc-tool .mbc-types input { margin: 0 0 0 5px; }
.mepco-rtl .mbc-tool .mbc-note, .mepco-rtl .mbc-tool .mbc-underlink { text-align: center; }
/* Stage 7 Nov 2026: the plugin's own line-heights (title 1.17, radio labels 1.25) beat the rules above, so Nastaliq
   descenders of the title touched the subtitle. Nastaliq needs ~1.9; no letter-spacing on joined script. */
.mepco-rtl .mbc-tool .mbc-title { line-height: 1.95; letter-spacing: 0; }
.mepco-rtl .mbc-tool .mbc-sub { line-height: 1.9; }
.mepco-rtl .mbc-tool .mbc-types label { line-height: 1.8; }
