/* Site typography: Jameel Noori Nastaleeq (regular, not the stretched "Kasheeda" cut).
   NooriNastaleeq.woff2 is the small "core" cut (~1.4 MB: every glyph the site's text and all 1-3 letter combinations need); the complete 7 MB font
   (NooriNastaleeq-full.woff2) is fetched quietly after the page has loaded and replaces it (see partials/fonts.blade.php).
   One face, loaded on every page through partials/fonts.blade.php.
   size-adjust (115%) makes the whole site's Urdu text a little larger (about +15% taller than before; the old stretched cut was only wider) without touching every font-size rule. */
@font-face {
    font-family: "Jameel Noori Nastaleeq";
    src: url("/assets/fonts/NooriNastaleeq.woff2?v=20261024") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    size-adjust: 115%;
}

:root {
    --font-urdu: "Jameel Noori Nastaleeq", "Noto Nastaliq Urdu", serif;
}

/* One family for all text elements (icon fonts live on <i>/<span>/pseudo-elements, which are not touched;
   the Quranic verse font and Arabic-only spans keep their own face). */
html body,
html body :where(h1, h2, h3, h4, h5, h6, p, a, li, td, th, caption, label, legend, button, input, select, textarea,
                 option, small, strong, b, em, dt, dd, blockquote, figcaption):not(.quranic-text):not(.fa):not(.fas):not(.far):not(.fab):not(.fal) {
    font-family: var(--font-urdu) !important;
}

/* Nastaleeq needs room: generous leading, and a little word spacing (the regular cut has tight spaces) */
body { line-height: 1.9; word-spacing: 0.12em; }

/* Third-party widgets that ship their own font */
.swal2-popup, .swal2-popup .swal2-title, .swal2-popup .swal2-html-container, .swal2-popup .swal2-styled,
.ui-widget, .ui-widget input, .ui-widget select, .ui-widget textarea, .ui-widget button,
.select2-container, .select2-dropdown, .select2-results__option, .select2-selection__rendered, .select2-search__field,
.tooltip, .popover { font-family: var(--font-urdu) !important; }

/* Readable greys: Bootstrap's muted/secondary text was ~#6c757d; keep secondary text clearly readable (#424242 = 10:1 on white) */
.text-muted, .text-secondary, small.text-muted, .form-text.text-muted, .help-block { color: #424242 !important; }

/* Keyboard focus must always be visible (many components remove the default outline) */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible,
[tabindex]:focus-visible, summary:focus-visible { outline: 2px solid #4C7C3C !important; outline-offset: 2px; }

/* Placeholders: solid #757575 (4.6:1), never opacity-faded */
::placeholder { color: #757575 !important; opacity: 1 !important; }

/* Contrast: white text on bootstrap's light green / teal (3.1:1 / 3.0:1) -> darker shades of the same colours (5.1:1 / 5.0:1) */
.btn-approve:not(:hover), .badge-success { background-color: #1e7e34 !important; }
.btn-view:not(:hover) { background-color: #117a8b !important; }
