/* =========================================================
   PHASE 5-P4-B1 CLEAN PROFESSIONAL FATWA DETAIL V2
   ========================================================= */

.fatwa-detail-page {
    padding: 30px 0 46px;
    background: #f3f6f7;
}

.fatwa-detail-page *,
.fatwa-detail-page *::before,
.fatwa-detail-page *::after {
    box-sizing: border-box;
}

.fatwa-detail-page .fatwa-breadcrumb {
    width: calc(100% - 32px);
    max-width: 980px;
    margin: 0 auto 18px;
    color: #6d7a82;
    font-size: 14px;
    line-height: 1.7;
}

.fatwa-detail-page .fatwa-breadcrumb a {
    color: #315c73;
    text-decoration: none;
}

.fatwa-detail-page .fatwa-detail-card {
    width: calc(100% - 32px);
    max-width: 980px;
    margin: 0 auto;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #dce4e8;
    border-radius: 14px;
    box-shadow: 0 18px 50px rgba(25, 47, 60, 0.08);
}

.fatwa-detail-page .fatwa-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px 24px;
    padding: 15px 28px;
    background: #f8f4e9;
    border-bottom: 1px solid #e8ddc5;
}

.fatwa-detail-page .fatwa-number,
.fatwa-detail-page .fatwa-date {
    color: #52636d;
    font-family: Arial, Tahoma, sans-serif;
    font-size: 13px;
    line-height: 1.6;
    direction: ltr;
    unicode-bidi: isolate;
}

.fatwa-detail-page .fatwa-number {
    color: #173b52;
    font-weight: 700;
}

.fatwa-detail-page .fatwa-detail-content {
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    padding: 42px 32px 32px;
}

.fatwa-detail-page .translation-fallback-notice {
    max-width: 760px;
    margin: 0 auto 22px;
    padding: 10px 14px;
    color: #67561f;
    background: #fff9e8;
    border: 1px solid #ead9a8;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.8;
}

.fatwa-detail-page .translation-title {
    width: 100%;
    max-width: 760px;
    margin: 0 auto 32px;
    color: #12364e;
    font-size: 36px;
    line-height: 1.85;
    font-weight: 600;
    text-align: center;
}

.fatwa-detail-page .fatwa-question,
.fatwa-detail-page .fatwa-answer,
.fatwa-detail-page .fatwa-authority {
    width: 100%;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.fatwa-detail-page .fatwa-question {
    margin-bottom: 30px;
    padding: 22px 24px;
    background: #f8fafb;
    border: 1px solid #dce5e9;
    border-inline-start: 4px solid #b79243;
    border-radius: 10px;
}

.fatwa-detail-page .detail-section-label {
    display: inline-block;
    margin: 0 0 13px;
    padding: 4px 11px;
    color: #315c73;
    background: #edf3f6;
    border: 1px solid #d8e3e8;
    border-radius: 6px;
    font-size: 15px;
    line-height: 1.7;
    font-weight: 700;
}

.fatwa-detail-page .question-content,
.fatwa-detail-page .answer-content,
.fatwa-detail-page .fatwa-block-urdu {
    color: #26373f;
    font-size: 20px;
    line-height: 2.3;
}

.fatwa-detail-page .question-content,
.fatwa-detail-page .question-content p,
.fatwa-detail-page .answer-content p,
.fatwa-detail-page .fatwa-block p {
    margin-top: 0;
}

.fatwa-detail-page .question-content p:last-child,
.fatwa-detail-page .answer-content p:last-child,
.fatwa-detail-page .fatwa-block p:last-child {
    margin-bottom: 0;
}

.fatwa-detail-page .fatwa-answer {
    padding-bottom: 0;
}

.fatwa-detail-page .answer-blocks,
.fatwa-detail-page .answer-content {
    width: 100%;
    max-width: none;
    margin: 0;
}

.fatwa-detail-page .fatwa-block-heading {
    margin: 28px 0 14px;
    color: #173b52;
    font-size: 24px;
    line-height: 1.9;
    font-weight: 700;
}

.fatwa-detail-page .fatwa-block-urdu {
    margin: 0 0 18px;
}

.fatwa-detail-page .fatwa-block-arabic {
    margin: 24px 0 12px;
    padding: 20px 22px;
    color: #2f2b22;
    background: #fbf8ef;
    border: 1px solid #eadfc5;
    border-inline-start: 4px solid #b79243;
    border-radius: 9px;
    font-family: "Noto Naskh Arabic", "Traditional Arabic", serif;
    font-size: 23px;
    line-height: 2.05;
    text-align: right;
}

.fatwa-detail-page .fatwa-block-reference {
    margin: 12px 0 20px;
    padding: 10px 13px;
    color: #62727c;
    background: #f7f9fa;
    border: 1px solid #e2e8eb;
    border-radius: 7px;
    font-size: 14px;
    line-height: 1.9;
}

.fatwa-detail-page .fatwa-authority {
    margin-top: 32px;
    padding: 20px 22px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px 22px;
    background: #fbfcfd;
    border: 1px solid #dce5e9;
    border-radius: 11px;
}

.fatwa-detail-page .mufti-info {
    min-width: 0;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 7px 13px;
    background: transparent;
    border: 0;
}

.fatwa-detail-page .mufti-authority-label {
    grid-column: 1 / -1;
    margin: 0;
    color: #806b32;
    font-size: 14px;
    line-height: 1.7;
    font-weight: 700;
}

.fatwa-detail-page .mufti-info img {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border: 2px solid #e4dcc7;
    border-radius: 50%;
}

.fatwa-detail-page .mufti-info > div:not(.mufti-authority-label) {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0;
}

.fatwa-detail-page .mufti-info strong {
    color: #173b52;
    font-size: 19px;
    line-height: 1.9;
    font-weight: 700;
}

.fatwa-detail-page .mufti-info span {
    color: #6f7e87;
    font-size: 13px;
    line-height: 1.7;
}

.fatwa-detail-page .fatwa-category {
    min-width: 135px;
    margin: 0;
    padding: 10px 13px;
    background: #ffffff;
    border: 1px solid #e1e7ea;
    border-radius: 9px;
}

.fatwa-detail-page .fatwa-category span {
    display: block;
    margin-bottom: 2px;
    color: #7a8991;
    font-size: 12px;
    line-height: 1.6;
}

.fatwa-detail-page .fatwa-category strong {
    display: block;
    color: #173b52;
    font-size: 16px;
    line-height: 1.8;
    font-weight: 700;
}

.fatwa-detail-page .related-fatwas {
    width: 100%;
    margin: 0;
    padding: 28px 60px 34px;
    background: #fbfcfd;
    border-top: 1px solid #e3e9ec;
}

.fatwa-detail-page .related-fatwas-heading {
    max-width: 860px;
    margin: 0 auto 15px;
}

.fatwa-detail-page .related-fatwas-heading h2 {
    margin: 0;
    color: #173b52;
    font-size: 22px;
    line-height: 1.8;
    font-weight: 700;
}

.fatwa-detail-page .related-fatwas-grid {
    max-width: 860px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
}

.fatwa-detail-page .related-fatwa-card {
    min-width: 0;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #dce5e9;
    border-radius: 10px;
    box-shadow: 0 7px 20px rgba(25, 47, 60, 0.045);
    transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}

.fatwa-detail-page .related-fatwa-card:hover {
    transform: translateY(-2px);
    border-color: #cbd9df;
    box-shadow: 0 10px 24px rgba(25, 47, 60, 0.07);
}

.fatwa-detail-page .related-fatwa-link {
    display: block;
    height: 100%;
    padding: 17px 18px;
    color: inherit;
    text-decoration: none;
}

.fatwa-detail-page .related-fatwa-number {
    display: block;
    margin-bottom: 7px;
    color: #71818a;
    font-family: Arial, Tahoma, sans-serif;
    font-size: 12px;
    line-height: 1.5;
    direction: ltr;
    unicode-bidi: isolate;
}

.fatwa-detail-page .related-fatwa-card h3 {
    margin: 0 0 10px;
    color: #173b52;
    font-size: 18px;
    line-height: 1.9;
    font-weight: 700;
}

.fatwa-detail-page .related-fatwa-category {
    display: inline-block;
    padding: 3px 9px;
    color: #667780;
    background: #f4f7f8;
    border: 1px solid #e0e7ea;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1.6;
}

.fatwa-detail-page .fatwa-actions {
    width: calc(100% - 32px);
    max-width: 980px;
    margin: 16px auto 0;
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    background: #ffffff;
    border: 1px solid #dce4e8;
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(25, 47, 60, 0.05);
}

.fatwa-detail-page .fatwa-actions::before {
    content: none !important;
    display: none !important;
}

.fatwa-detail-page .fatwa-actions a {
    min-width: 190px;
    min-height: 44px;
    padding: 8px 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 16px;
    line-height: 1.7;
    font-weight: 700;
    text-decoration: none;
    transition: transform 150ms ease, background-color 150ms ease, border-color 150ms ease;
}

.fatwa-detail-page .fatwa-action-primary {
    color: #ffffff;
    background: #174f70;
    border: 1px solid #174f70;
}

.fatwa-detail-page .fatwa-action-primary:hover {
    color: #ffffff;
    background: #103f5b;
    border-color: #103f5b;
    transform: translateY(-1px);
}

.fatwa-detail-page .fatwa-action-secondary {
    color: #174f70;
    background: #ffffff;
    border: 1px solid #cfdbe1;
}

.fatwa-detail-page .fatwa-action-secondary:hover {
    background: #f6f9fa;
    border-color: #b9cbd4;
    transform: translateY(-1px);
}

.fatwa-detail-page .empty-state {
    width: calc(100% - 32px);
    max-width: 980px;
    margin: 0 auto;
    padding: 48px 28px;
    text-align: center;
    background: #ffffff;
    border: 1px solid #dce4e8;
    border-radius: 14px;
}

.lang-ur .fatwa-detail-page,
.lang-ps .fatwa-detail-page {
    font-family: "JF Jameel Nastaleeq", "Jameel Noori Nastaleeq", "Noto Nastaliq Urdu", "Noto Sans Arabic", serif;
    direction: rtl;
    text-align: right;
}

.lang-en .fatwa-detail-page {
    font-family: Arial, Tahoma, sans-serif;
    direction: ltr;
    text-align: left;
}

.lang-en .fatwa-detail-page .translation-title {
    text-align: left;
    font-size: 34px;
    line-height: 1.4;
}

.lang-en .fatwa-detail-page .fatwa-question,
.lang-en .fatwa-detail-page .fatwa-answer,
.lang-en .fatwa-detail-page .fatwa-authority,
.lang-en .fatwa-detail-page .related-fatwas {
    direction: ltr;
    text-align: left;
}

.lang-en .fatwa-detail-page .fatwa-question {
    border-inline-start: 4px solid #b79243;
}

.lang-en .fatwa-detail-page .mufti-info > div:not(.mufti-authority-label) {
    align-items: flex-start;
}

.lang-en .fatwa-detail-page .fatwa-block-arabic {
    direction: rtl;
    text-align: right;
}

.translation-lang-en .answer-content,
.translation-lang-en .fatwa-block-heading,
.translation-lang-en .fatwa-block-reference {
    font-family: Arial, Tahoma, sans-serif;
    direction: ltr;
    text-align: left;
    line-height: 1.85;
}

.lang-en .fatwa-detail-page .fatwa-question {
    direction: rtl;
    text-align: right;
}

@media (max-width: 900px) {
    .fatwa-detail-page .fatwa-detail-content {
        padding: 36px 26px 30px;
    }

    .fatwa-detail-page .related-fatwas {
        padding-left: 32px;
        padding-right: 32px;
    }
}

@media (max-width: 700px) {
    .fatwa-detail-page {
        padding: 18px 0 30px;
    }

    .fatwa-detail-page .fatwa-breadcrumb,
    .fatwa-detail-page .fatwa-detail-card,
    .fatwa-detail-page .fatwa-actions,
    .fatwa-detail-page .empty-state {
        width: calc(100% - 16px);
    }

    .fatwa-detail-page .fatwa-detail-card {
        border-radius: 11px;
    }

    .fatwa-detail-page .fatwa-detail-header {
        padding: 11px 15px;
        gap: 8px 12px;
    }

    .fatwa-detail-page .fatwa-detail-content {
        padding: 27px 17px 24px;
    }

    .fatwa-detail-page .translation-title {
        margin-bottom: 24px;
        font-size: 28px;
        line-height: 1.8;
    }

    .lang-en .fatwa-detail-page .translation-title {
        font-size: 27px;
        line-height: 1.35;
    }

    .fatwa-detail-page .fatwa-question {
        margin-bottom: 24px;
        padding: 17px 15px;
    }

    .fatwa-detail-page .question-content,
    .fatwa-detail-page .answer-content,
    .fatwa-detail-page .fatwa-block-urdu {
        font-size: 18px;
        line-height: 2.2;
    }

    .fatwa-detail-page .fatwa-block-arabic {
        padding: 17px 15px;
        font-size: 20px;
        line-height: 1.95;
    }

    .fatwa-detail-page .fatwa-authority {
        margin-top: 26px;
        padding: 17px 15px;
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .fatwa-detail-page .mufti-info img {
        width: 46px;
        height: 46px;
    }

    .fatwa-detail-page .fatwa-category {
        width: 100%;
        min-width: 0;
    }

    .fatwa-detail-page .related-fatwas {
        padding: 24px 17px 28px;
    }

    .fatwa-detail-page .related-fatwas-grid {
        grid-template-columns: 1fr;
    }

    .fatwa-detail-page .fatwa-actions {
        margin-top: 12px;
        padding: 12px;
    }

    .fatwa-detail-page .fatwa-actions a {
        width: 100%;
        min-width: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fatwa-detail-page .related-fatwa-card,
    .fatwa-detail-page .fatwa-actions a {
        transition: none !important;
    }

    .fatwa-detail-page .related-fatwa-card:hover,
    .fatwa-detail-page .fatwa-actions a:hover {
        transform: none;
    }
}

/* =========================================================
   END PHASE 5-P4-B1
   ========================================================= */


/* P4-C3-P Pashto fatwa-detail Scheherazade override */
.lang-ps .fatwa-detail-page {
    font-family: "Scheherazade New", "Noto Naskh Arabic", "Traditional Arabic", serif;
    font-weight: 400;
    font-synthesis: none;
    direction: rtl;
    text-align: right;
}

.lang-ps .fatwa-detail-page .translation-title,
.lang-ps .fatwa-detail-page .fatwa-section-label,
.lang-ps .fatwa-detail-page .mufti-authority-label,
.lang-ps .fatwa-detail-page .mufti-info strong,
.lang-ps .fatwa-detail-page .fatwa-category strong,
.lang-ps .fatwa-detail-page .related-fatwas h2,
.lang-ps .fatwa-detail-page .related-fatwa-card h3 {
    font-family: "Scheherazade New", "Noto Naskh Arabic", serif;
    font-weight: 700;
    font-synthesis: none;
    letter-spacing: 0;
}

.lang-ps .fatwa-detail-page .question-content,
.lang-ps .fatwa-detail-page .answer-content,
.lang-ps .fatwa-detail-page .fatwa-block-urdu,
.lang-ps .fatwa-detail-page .mufti-info span,
.lang-ps .fatwa-detail-page .fatwa-breadcrumb,
.lang-ps .fatwa-detail-page .fatwa-fallback-notice,
.lang-ps .fatwa-detail-page .related-fatwa-category {
    font-family: "Scheherazade New", "Noto Naskh Arabic", serif;
    font-weight: 400;
    font-synthesis: none;
    letter-spacing: 0;
}

.lang-ps .fatwa-detail-page .fatwa-actions a {
    font-family: "Scheherazade New", "Noto Naskh Arabic", serif;
    font-weight: 600;
    font-synthesis: none;
    letter-spacing: 0;
}

.lang-ps .fatwa-detail-page .question-content,
.lang-ps .fatwa-detail-page .answer-content,
.lang-ps .fatwa-detail-page .fatwa-block-urdu {
    font-size: 21px;
    line-height: 2.05;
}

.lang-ps .fatwa-detail-page .translation-title {
    line-height: 1.65;
}

/* =========================================================
   PROFESSIONAL FATWA TYPOGRAPHY ? PFT-1
   Urdu scholarly reading rhythm
   ========================================================= */

/*
   Scope is intentionally semantic:
   - only content explicitly marked lang="ur"
   - Arabic evidence remains under its existing Arabic rules
   - Pashto and English remain untouched
*/

.fatwa-detail-page .translation-title[lang="ur"],
.fatwa-detail-page .question-content[lang="ur"],
.fatwa-detail-page .fatwa-answer[lang="ur"] .answer-content,
.fatwa-detail-page .fatwa-answer[lang="ur"] .fatwa-block-urdu,
.fatwa-detail-page .fatwa-answer[lang="ur"] .fatwa-block-heading,
.fatwa-detail-page .fatwa-answer[lang="ur"] .fatwa-block-reference {
    font-family:
        "Jameel Noori Nastaleeq",
        "Noto Nastaliq Urdu",
        "Noto Sans Arabic",
        serif;
    font-synthesis: none;
    letter-spacing: 0;
}

.fatwa-detail-page .translation-title[lang="ur"] {
    max-width: 820px;
    font-size: 38px;
    line-height: 1.8;
    font-weight: 400;
    text-wrap: balance;
}

.fatwa-detail-page .question-content[lang="ur"],
.fatwa-detail-page .fatwa-answer[lang="ur"] .answer-content,
.fatwa-detail-page .fatwa-answer[lang="ur"] .fatwa-block-urdu {
    font-size: 22px;
    line-height: 2.45;
    font-weight: 400;
    text-rendering: optimizeLegibility;
}

.fatwa-detail-page .question-content[lang="ur"] p,
.fatwa-detail-page .fatwa-answer[lang="ur"] .answer-content p,
.fatwa-detail-page .fatwa-answer[lang="ur"] .fatwa-block-urdu p {
    margin-top: 0;
    margin-bottom: 0.55em;
}

.fatwa-detail-page .question-content[lang="ur"] p:last-child,
.fatwa-detail-page .fatwa-answer[lang="ur"] .answer-content p:last-child,
.fatwa-detail-page .fatwa-answer[lang="ur"] .fatwa-block-urdu p:last-child {
    margin-bottom: 0;
}

.fatwa-detail-page .fatwa-answer[lang="ur"] .fatwa-block-heading {
    margin-top: 30px;
    margin-bottom: 14px;
    font-size: 26px;
    line-height: 2.05;
    font-weight: 400;
}

.fatwa-detail-page .fatwa-answer[lang="ur"] .fatwa-block-reference {
    font-size: 15px;
    line-height: 2.05;
    font-weight: 400;
}

@media (max-width: 700px) {
    .fatwa-detail-page .translation-title[lang="ur"] {
        font-size: 31px;
        line-height: 1.8;
    }

    .fatwa-detail-page .question-content[lang="ur"],
    .fatwa-detail-page .fatwa-answer[lang="ur"] .answer-content,
    .fatwa-detail-page .fatwa-answer[lang="ur"] .fatwa-block-urdu {
        font-size: 20px;
        line-height: 2.35;
    }

    .fatwa-detail-page .fatwa-answer[lang="ur"] .fatwa-block-heading {
        font-size: 24px;
        line-height: 2;
    }

    .fatwa-detail-page .fatwa-answer[lang="ur"] .fatwa-block-reference {
        font-size: 14px;
        line-height: 2;
    }
}

/* PROFESSIONAL_FATWA_TYPOGRAPHY_PFT1 */

/* =========================================================
   PROFESSIONAL FATWA TYPOGRAPHY ? PFT-2
   Urdu heading / reference hierarchy + reading measure
   ========================================================= */

/*
   Urdu-only refinement:
   - narrower scholarly reading measure
   - stronger content-block heading hierarchy
   - quieter but clearly separated references
   - Arabic, Pashto and English remain untouched
*/

.fatwa-detail-page .question-content[lang="ur"],
.fatwa-detail-page .fatwa-answer[lang="ur"] .answer-content,
.fatwa-detail-page .fatwa-answer[lang="ur"] .fatwa-block-urdu {
    width: 100%;
    max-width: 700px;
    margin-inline: auto;
}

.fatwa-detail-page .fatwa-answer[lang="ur"] .fatwa-block-heading {
    width: 100%;
    max-width: 700px;
    margin: 34px auto 16px;
    padding-bottom: 5px;
    color: #173b52;
    border-bottom: 1px solid #e5dcc7;
    font-size: 27px;
    line-height: 2;
    font-weight: 400;
}

.fatwa-detail-page .fatwa-answer[lang="ur"] .fatwa-block-reference {
    width: 100%;
    max-width: 700px;
    margin: 14px auto 24px;
    padding: 10px 14px;
    color: #5d6b73;
    border-inline-start: 3px solid #c7b274;
    font-size: 15px;
    line-height: 2.1;
    font-weight: 400;
}

@media (max-width: 700px) {
    .fatwa-detail-page .question-content[lang="ur"],
    .fatwa-detail-page .fatwa-answer[lang="ur"] .answer-content,
    .fatwa-detail-page .fatwa-answer[lang="ur"] .fatwa-block-urdu {
        max-width: none;
    }

    .fatwa-detail-page .fatwa-answer[lang="ur"] .fatwa-block-heading {
        max-width: none;
        margin-top: 28px;
        margin-bottom: 13px;
        padding-bottom: 4px;
        font-size: 24px;
        line-height: 2;
    }

    .fatwa-detail-page .fatwa-answer[lang="ur"] .fatwa-block-reference {
        max-width: none;
        margin-top: 12px;
        margin-bottom: 20px;
        padding: 9px 12px;
        font-size: 14px;
        line-height: 2;
    }
}

/* PROFESSIONAL_FATWA_TYPOGRAPHY_PFT2 */

/* =========================================================
   ARABIC EVIDENCE PRESENTATION - AEP-1
   Scholarly Arabic evidence reading system
   ========================================================= */

/*
   Arabic-only refinement:
   - uses the existing semantic lang="ar" contract
   - preserves Urdu, Pashto and English typography
   - keeps Arabic evidence and its immediate reference visually grouped
   - no template, model or database change
*/

.fatwa-detail-page .fatwa-block-arabic[lang="ar"] {
    width: 100%;
    max-width: 700px;
    margin: 28px 0 10px;
    margin-inline: auto;
    padding: 23px 26px;
    color: #2f2b22;
    background: #fbf8ef;
    border: 1px solid #eadfc5;
    border-inline-start: 4px solid #b79243;
    border-radius: 10px;
    font-family: "Scheherazade New", "Noto Naskh Arabic", "Traditional Arabic", serif;
    font-size: 27px;
    line-height: 2.2;
    font-weight: 400;
    font-synthesis: none;
    letter-spacing: 0;
    direction: rtl;
    text-align: right;
    text-rendering: optimizeLegibility;
}

.fatwa-detail-page .fatwa-block-arabic[lang="ar"] p {
    margin-top: 0;
    margin-bottom: 0.6em;
}

.fatwa-detail-page .fatwa-block-arabic[lang="ar"] p:last-child {
    margin-bottom: 0;
}

.fatwa-detail-page .fatwa-block-arabic[lang="ar"] + .fatwa-block-reference {
    width: 100%;
    max-width: 700px;
    margin-top: 0;
    margin-inline: auto;
    margin-bottom: 26px;
}

/* ARABIC EVIDENCE PRESENTATION - AEP-1 MOBILE */
@media (max-width: 700px) {
    .fatwa-detail-page .fatwa-block-arabic[lang="ar"] {
        max-width: none;
        margin-top: 22px;
        margin-bottom: 9px;
        padding: 18px 16px;
        font-size: 24px;
        line-height: 2.1;
    }

    .fatwa-detail-page .fatwa-block-arabic[lang="ar"] + .fatwa-block-reference {
        max-width: none;
        margin-top: 0;
        margin-bottom: 20px;
    }
}

/* ARABIC_EVIDENCE_PRESENTATION_AEP1 */

/* ETR-6 ENGLISH FATWA DETAIL + LANGUAGE ISOLATION */
/*
   English desktop typography corrections.
   Nested Urdu owns Urdu language semantics.
   Arabic evidence remains protected.
   Mobile numeric typography remains reserved for ETR-7.
*/

.lang-en .fatwa-detail-page {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.translation-lang-en .answer-content {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    direction: ltr;
    text-align: left;
}

.translation-lang-en .fatwa-block-heading {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    direction: ltr;
    text-align: left;
}

.translation-lang-en .fatwa-block-reference {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    direction: ltr;
    text-align: left;
}

.lang-en .fatwa-detail-page .fatwa-question {
    direction: ltr;
    text-align: left;
}

.lang-en .fatwa-detail-page .question-content[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

.lang-en .fatwa-detail-page .question-content[dir="ltr"] {
    direction: ltr;
    text-align: left;
}

.fatwa-detail-page .fatwa-block-urdu[lang="ur"] {
    font-family: "Jameel Noori Nastaleeq", "Noto Nastaliq Urdu", "Noto Sans Arabic", serif;
    font-synthesis: none;
    direction: rtl;
    text-align: right;
}

@media (min-width: 701px) {
    .lang-en .fatwa-detail-page .translation-title {
        font-size: 34px;
        line-height: 1.35;
    }

    .translation-lang-en .answer-content {
        font-size: 18px;
        line-height: 1.8;
    }

    .translation-lang-en .fatwa-block-heading {
        line-height: 1.3;
    }

    .translation-lang-en .fatwa-block-reference {
        line-height: 1.55;
    }

    .translation-lang-en .fatwa-block-urdu[lang="ur"] {
        font-size: 22px;
        line-height: 2.45;
    }
}

/* ETR-7 ENGLISH MOBILE FATWA DETAIL */
/*
   Only English LTR long-form content is tightened.
   Urdu/Pashto/Arabic nested content remains untouched.
*/
@media (max-width: 700px) {
    .translation-lang-en .answer-content {
        font-size: 17px;
        line-height: 1.75;
    }

    .lang-en .fatwa-detail-page .question-content[dir="ltr"] {
        font-size: 17px;
        line-height: 1.75;
    }
}
