/* Fath Al-Rahman — modern interface, Round 11. */
/* ==================== Variables ==================== */
:root {
    --fath-green: #064d49;
    --fath-green-dark: #073d3b;
    --fath-green-deep: #083e3b;
    --fath-green-nav: #05605a;
    --fath-gold: #c5962d;
    --fath-gold-light: #f4df9b;
    --fath-gold-dark: #8a6212;
    --fath-cream: #f6f1e8;
    --fath-cream-soft: #f9f6ef;
    --fath-card: #fcfbf9;
    --fath-line: #eadfca;
    --fath-text: #2c3b38;
    --fath-white: #ffffff;
}
/* ==================== Base ==================== */
* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
    min-width: 320px;
}
body {
    min-width: 320px;
    margin: 0;
    background: radial-gradient(circle at 12% 20%, rgba(197,150,45,.028) 0 2px, transparent 2.5px), radial-gradient(circle at 82% 72%, rgba(6,77,73,.022) 0 2px, transparent 2.5px), linear-gradient(135deg, #f3ede5 0%, #f9f6ef 52%, #f6f1e8 100%);
    background-size: 42px 42px, 56px 56px, auto;
    color: var(--fath-text);
    direction: rtl;
    font-family: "Noto Naskh Arabic", Tahoma, Arial, sans-serif;
    font-size: 16px;
    line-height: 2.05;
}
table, td, th {
    font: inherit;
}
img {
    vertical-align: middle;
}
a {
    -webkit-tap-highlight-color: transparent;
}
#MainTable {
    width: 100%;
    height: auto;
    margin: 0;
    background: transparent;
    direction: rtl;
    font-size: 16px;
}
#MainTable > tbody > tr > td {
    padding: 0;
    text-align: start;
}
#sdata {
    width: 100%;
    height: auto;
    border: 0;
    background: transparent;
    font-size: 16px;
}
#sdata > tbody > tr > td {
    text-align: start;
}
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.skip-link {
    position: fixed;
    top: 8px;
    right: 8px;
    z-index: 10000;
    transform: translateY(-180%);
    padding: 9px 16px;
    border-radius: 8px;
    background: #fff;
    color: var(--fath-green);
    font-family: Cairo, Tahoma, Arial, sans-serif;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 5px 18px rgba(0,0,0,.2);
}
.skip-link:focus {
    transform: translateY(0);
    outline: 3px solid var(--fath-gold);
    outline-offset: 2px;
}
/* ==================== Header / navigation / footer v11 ==================== */
#header_01.site-header {
    --hh: clamp(88px, 7.5vw, 132px);
    position: relative;
    width: 100%;
    height: var(--hh);
    overflow: hidden;
    background: #c9963a url("../images/header/header-with-logo.jpg") right center / cover no-repeat;
}
.author-name {
    position: absolute;
    left: 30.6%;
    top: 50%;
    z-index: 2;
    transform: translate(-50%, -50%);
    width: min(31vw, 390px);
    padding: 5px 14px;
    text-align: center;
    color: #fff;
}
.author-name::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: 12px;
    background: radial-gradient(ellipse at center, rgba(88,52,6,.28), transparent 72%);
}
.author-title,
.author-full {
    display: block;
    font-family: Cairo, Tahoma, Arial, sans-serif;
    text-shadow: 0 1px 3px rgba(70,38,0,.55);
}
.author-title {
    color: #fff7e0;
    font-size: clamp(12px, 1.05vw, 16px);
    font-weight: 500;
    line-height: 1.45;
}
.author-full {
    color: #fff;
    font-size: clamp(16px, 1.6vw, 24px);
    font-weight: 700;
    line-height: 1.5;
}
.logo-link {
    position: absolute;
    top: 0;
    right: max(6.25vw, calc(var(--hh) * .842));
    bottom: 0;
    z-index: 3;
    display: block;
    width: max(10.9vw, calc(var(--hh) * 1.464));
}
#header_02.site-nav {
    width: 100%;
    height: 48px;
    background: linear-gradient(180deg, #05605a 0%, #083e3b 100%);
    border-top: 1px solid rgba(244,223,155,.55);
    border-bottom: 1px solid #043433;
    direction: rtl;
}
.nav-inner {
    width: min(1240px, 100%);
    height: 48px;
    margin: 0 auto;
    display: flex;
    align-items: stretch;
    justify-content: center;
}
.nav-item {
    min-height: 48px;
    padding: 0 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    font-family: Cairo, Tahoma, Arial, sans-serif;
    font-size: 15.5px;
    font-weight: 600;
    border-left: 1px solid rgba(255,255,255,.12);
    transition: background .18s ease, color .18s ease;
}
.nav-item:last-child {
    border-left: 0;
}
.nav-item:hover:not(.active) {
    background: rgba(255,255,255,.08);
}
.nav-item.active {
    color: #173f3b;
    background: linear-gradient(180deg, #f1d18a 0%, #e2b558 100%);
}
.nav-icon {
    flex: 0 0 auto;
    display: inline-block;
    color: currentColor;
    font-variant-emoji: text;
}
.nav-icon use {
    pointer-events: none;
}
.page-shell {
    width: min(1440px, calc(100% - 96px));
    margin: 18px auto 34px;
}
.page-breadcrumb {
    min-height: 34px;
    margin: 0 4px 8px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: #8a6212;
    font-family: Cairo, Tahoma, Arial, sans-serif;
    font-size: 13px;
    line-height: 1.6;
}
.page-breadcrumb ol {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}
.page-breadcrumb li {
    display: flex;
    align-items: center;
}
.page-breadcrumb a {
    color: #8a6212;
    font-weight: 700;
    text-decoration: none;
}
.page-breadcrumb strong {
    color: #8a6212;
    font-weight: 700;
}
.breadcrumb-icon {
    flex: 0 0 auto;
    margin-inline-end: 6px;
    color: #8a6212;
}
.breadcrumb-separator {
    color: var(--fath-gold);
    font-size: 18px;
}
.page-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 0 auto 20px;
    text-align: center;
}
.page-heading::before,
.page-heading::after {
    content: "";
    flex: 0 1 190px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--fath-gold), transparent);
}
.page-heading h1 {
    flex: 0 0 auto;
    margin: 0;
    color: var(--fath-green);
    font-family: Cairo, Tahoma, Arial, sans-serif;
    font-size: clamp(24px, 2.3vw, 34px);
    font-weight: 800;
    line-height: 1.35;
}
.heading-ornament {
    flex: 0 0 auto;
    width: 44px;
    height: 32px;
}
.content-card {
    width: 100%;
    padding: 34px 28px 30px;
    border: 1px solid var(--fath-line);
    border-radius: 24px;
    background: var(--fath-card);
    box-shadow: 0 10px 30px rgba(76,59,24,.08);
    text-align: start;
}
/* ==================== Home page ==================== */
.home-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 305px;
    grid-template-areas: "main aside";
    gap: 34px;
    direction: rtl;
    align-items: start;
}
.home-main {
    grid-area: main;
    min-width: 0;
}
.home-aside {
    grid-area: aside;
    width: 305px;
    justify-self: start;
    text-align: center;
}
.home-photo {
    width: 297px;
    margin: 0 auto 10px;
    padding: 6px;
    border: 1px solid #d9c48d;
    border-radius: 14px;
    background: #f7f0de;
    box-shadow: 0 5px 16px rgba(76,59,24,.12);
}
.home-photo img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 9px;
}
.ornament-divider {
    display: block;
    width: 320px;
    max-width: 100%;
    height: 26px;
    margin: 0 auto 12px;
}
.verse-card {
    position: relative;
    margin: 0;
    padding: 18px 40px;
    border-radius: 16px;
    background: #f7f0de;
    color: #0e4a45;
    text-align: center;
}
.verse-card p {
    margin: 0 0 2px;
    font-family: Amiri, "Noto Naskh Arabic", serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.65;
}
.verse-card cite {
    font-family: "Noto Naskh Arabic", Tahoma, Arial, sans-serif;
    font-size: 15px;
    font-style: normal;
    color: #6f5a2b;
}
.home-main > p {
    margin: 0 0 24px;
    color: #2c3b38;
    font-family: "Noto Naskh Arabic", Tahoma, Arial, sans-serif;
    font-size: 17px;
    line-height: 2.1;
    text-align: justify;
}
.mission {
    margin: 0 0 20px;
}
.mission-title {
    margin: 0 0 10px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 9px;
    border-radius: 12px;
    background: #f3ead2;
    color: #7a5a13;
    font-family: Cairo, Tahoma, Arial, sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.7;
}
.mission-icon {
    flex: 0 0 auto;
    color: var(--fath-green);
}
.mission-list {
    margin: 0;
    padding: 0;
    list-style: none;
}
.mission-list > li {
    position: relative;
    min-height: 34px;
    margin: 5px 0;
    padding: 4px 52px 4px 14px;
    border-radius: 999px;
    background: #f3efe3;
    color: #2c3b38;
    line-height: 1.9;
}
.mission-number {
    position: absolute;
    top: 50%;
    right: 8px;
    width: 34px;
    height: 34px;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(180deg, #dfb04a 0%, #b98418 100%);
    color: #fff;
    font-family: Cairo, Tahoma, Arial, sans-serif;
    font-weight: 700;
    font-size: 13px;
}
.mission-list > li > ul {
    margin: 6px 0 0;
    padding: 0 18px 0 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px 28px;
    list-style: none;
}
.mission-list > li > ul li {
    position: relative;
    padding-right: 15px;
}
.info-box {
    position: relative;
    padding: 15px 52px 15px 18px;
    border: 1px solid #cfe0d8;
    border-radius: 14px;
    background: #f2f6f3;
}
.info-box p {
    margin: 0;
    color: #2c3b38;
    font-size: 17px;
    line-height: 2.1;
    text-align: justify;
}
.info-leaf {
    position: absolute;
    top: 16px;
    right: 15px;
    color: var(--fath-green);
}
/* ==================== Quran reader (#header_04) ==================== */
#header_03 {
    height: 8px;
    background: transparent;
}
#header_04 {
    position: relative;
    width: 100%;
    min-height: 62px;
    margin: 0 0 14px;
    padding: 10px 14px;
    overflow: hidden;
    border: 1px solid #d9c48d;
    border-radius: 14px;
    background: linear-gradient(180deg, #fffdf8 0%, #f4ead4 100%);
    box-shadow: 0 4px 14px rgba(76,59,24,.07);
}
#header_04::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.22), transparent);
}
#header_04 > tbody > tr {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 7px;
}
#header_04 > tbody > tr > td {
    /* Required to override the legacy inline widths on the reader toolbar cells. */
    width: auto !important;
    min-height: 42px;
    padding: 2px 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}
#header_04 > tbody > tr > td:first-child, #header_04 > tbody > tr > td:last-child {
    min-width: 18px;
}
#header_04 img {
    max-width: 100%;
    vertical-align: middle;
}
#header_04 img[src*="img_left"], #header_04 img[src*="img_right"] {
    width: 18px;
    height: 28px;
    object-fit: contain;
    opacity: .72;
}
#header_04 img[src*="img_play"] {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 10px;
    transition: transform .18s ease, box-shadow .18s ease;
}
#header_04 a {
    color: #17615b;
    text-decoration: none;
}
#header_04 a:hover {
    color: #a47418;
}
#header_04 a:hover img[src*="img_play"] {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(6,77,73,.18);
}
#header_04 select, #cmbTPage, #QuranCmb select, #PartCmb select, #nxtprv_Str select {
    min-width: 72px;
    /* Required to override the legacy inline select height. */
    height: 38px !important;
    /* Legacy inline select height must be overridden for the v10 reader controls. */
    padding: 5px 28px 5px 9px;
    border: 1px solid #cdb57b;
    border-radius: 8px;
    background: #fffef9;
    color: #174d49;
    font: 600 14px Tahoma, Arial, sans-serif;
    box-shadow: inset 0 1px 2px rgba(0,0,0,.03);
}
#nxtprv_Str {
    min-width: 150px;
    padding: 2px 5px;
    border: 1px solid #e0d3b5;
    border-radius: 10px;
    background: rgba(255,255,255,.68);
}
#nxtprv_Str img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}
#QuranCmb, #PartCmb {
    padding: 4px 7px;
    border: 1px solid #e0d3b5;
    border-radius: 10px;
    background: rgba(255,255,255,.78);
    color: var(--fath-green);
}
#QuranCmb table, #PartCmb table {
    border-collapse: separate;
    border-spacing: 4px 0;
    width: auto;
    margin: auto;
}
#nxtprv, #loading, #nxtprv_Str, #QuranCmb, #PartCmb {
    font-size: 14px;
}
/* Tabs: !important is retained because the legacy AJAX stylesheet supplies competing dimensions/backgrounds. */
.tabs_Translation, .tabs_Translation_Selected, .tabs_Mean, .tabs_Mean_Selected, .tabs_Tafseer, .tabs_Tafseer_Selected, .tabs_Aya, .tabs_Aya_Selected {
    position: relative;
    width: 122px !important;
    height: 42px !important;
    margin: 0 3px;
    border: 1px solid #d7c28f;
    border-radius: 10px;
    background-image: none !important;
    /* Override legacy tab background images. */
    background: #fffdf7 !important;
    /* Override the legacy tab surface. */
    color: #26534e;
    box-shadow: 0 2px 7px rgba(76,59,24,.06);
}
.tabs_Translation::after, .tabs_Translation_Selected::after, .tabs_Mean::after, .tabs_Mean_Selected::after, .tabs_Tafseer::after, .tabs_Tafseer_Selected::after, .tabs_Aya::after, .tabs_Aya_Selected::after {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font: 700 13px Tahoma, Arial, sans-serif;
    content: "";
}
.tabs_Translation::after, .tabs_Translation_Selected::after {
    content: "ترجمة المعاني";
}
.tabs_Mean::after, .tabs_Mean_Selected::after {
    content: "معاني الكلمات";
}
.tabs_Tafseer::after, .tabs_Tafseer_Selected::after {
    content: "تفسير فتح الرحمن";
}
.tabs_Aya::after, .tabs_Aya_Selected::after {
    content: "الآيات";
}
.tabs_Translation_Selected, .tabs_Mean_Selected, .tabs_Tafseer_Selected, .tabs_Aya_Selected {
    color: #fff;
    border-color: #0a514d;
    background: linear-gradient(180deg, #0a615b, #064d49) !important;
    /* Override legacy selected-tab backgrounds. */
    box-shadow: 0 4px 10px rgba(6,77,73,.22);
}
/* ==================== Content reader cards ==================== */
#dview {
    display: table;
    width: 100%;
    margin: 0;
    border-collapse: separate;
    border-spacing: 12px;
    table-layout: fixed;
    direction: rtl;
}
#dview > tbody > tr {
    direction: rtl;
}
#dview > tbody > tr > td {
    vertical-align: top;
    padding: 0;
}
#DataDisplay {
    position: relative;
    width: 100%;
    min-height: 560px;
    padding: 16px;
    overflow: auto;
    border: 1px solid #ddcfac;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #fffdf8 100%);
    box-shadow: 0 5px 18px rgba(76,59,24,.08);
}
#DataDisplay::before, #QuranDisplay::before {
    content: "";
    display: block;
    width: 74px;
    height: 3px;
    margin: 0 auto 12px;
    border-radius: 3px;
    background: linear-gradient(90deg, transparent, #c5962d, transparent);
}
#DataDisplay img#imgTafseer {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    margin: 6px auto 0;
    border-radius: 7px;
}
#QuranDisplay {
    position: relative;
    padding: 14px;
    background: linear-gradient(180deg, #fff, #fbf8f0);
    border: 1px solid var(--fath-line);
    border-radius: 16px;
    box-shadow: 0 5px 18px rgba(76,59,24,.08);
}
#QuranDisplay #brdr {
    width: 100%;
    max-width: 486px;
    margin: auto;
}
#QuranPage {
    width: 100%;
    max-width: 486px;
    margin: auto;
    padding: 8px;
}
#brdr {
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    background: #fff;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 10px;
}
#QuranDisplay #brdr {
    background: #fffdf7;
    border: 1px solid #ddcfac;
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 4px 14px rgba(76,59,24,.07);
}
#QuranPage img, #QuranPage object, #QuranPage embed {
    display: block;
    max-width: 100%;
    height: auto;
    margin: auto;
}
#QuranPage img#imgQuranPage, #QuranPage img, #QuranDisplay #QuranPage img {
    border-radius: 7px;
}
#brdr #br_bg_up, #brdr #br_bg_dn, #brdr #br_bg_lt, #brdr #br_bg_rt {
    background: transparent;
}
/* ==================== Tables (#MeanData / #PartNum) ==================== */
#MeanData {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 5px;
    border: 1px solid #e1d5ba;
    border-radius: 11px;
    background: #fff;
    overflow: hidden;
    color: #293936;
    font-size: 15px;
}
#MeanData th {
    padding: 10px;
    color: #154a46;
    font-weight: 700;
    border-bottom: 1px solid #ddcc9f;
}
#MeanData tr:first-child th {
    background: linear-gradient(90deg, #f7efd9, #e9d49c) !important;
    /* Generated legacy bgcolor needs a stronger selector. */
    color: #174d49 !important;
    /* Generated legacy color attribute needs a stronger selector. */
    padding: 11px 9px;
    font-size: 16px;
}
#MeanData tr:nth-child(2) th {
    background: #f3eee3 !important;
    /* Generated legacy bgcolor needs a stronger selector. */
    color: #4b514e !important;
    /* Generated legacy color attribute needs a stronger selector. */
}
#MeanData td {
    padding: 10px 12px;
    border-bottom: 1px solid #eee7d8;
    line-height: 1.9;
}
#MeanData tr:hover td {
    background: #fcf7e9;
}
#DataDisplay #MeanData td[style*="text-align:justify"] {
    font-size: 17px;
    line-height: 2.15;
}
#PartNumDiv {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 8px;
    overflow: auto;
    background: #fff;
    border: 1px solid var(--fath-line);
    border-radius: 14px;
}
#PartNum {
    width: 100%;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}
#PartNum td {
    padding: 9px 12px;
    border-bottom: 1px solid #eee5d3;
}
#PartNum tr:nth-child(even) td {
    background: #fbf8f0;
}
#PartNum a {
    color: #185650;
}
#PartNum a:hover {
    color: #a67418;
}
/* ==================== Trees ==================== */
.dtree, .treelink {
    font-family: Tahoma, Arial, sans-serif;
}
.treelink {
    padding: 9px 12px;
    margin-bottom: 10px;
    border-radius: 9px;
    background: #f7f0df;
    border: 1px solid #e5d4aa;
    text-align: center;
}
.treelink a {
    color: #17615b;
    text-decoration: none;
    font-weight: 700;
}
.dTreeNode {
    min-height: 25px;
}
.dTreeNode .node {
    color: #31534f;
    text-decoration: none;
}
.dTreeNode .node:hover {
    color: #a27418;
}
#PartNumDiv .treelink {
    padding: 8px 12px 12px;
    color: var(--fath-green);
    border-bottom: 1px solid #eee4cf;
    margin-bottom: 8px;
}
#PartNumDiv .treelink a {
    color: #17625c;
    text-decoration: none;
    font-weight: 700;
}
#PartNumDiv .dtree {
    font-size: 14px;
    line-height: 1.9;
}
#PartNumDiv .dTreeNode {
    padding: 3px 6px;
    border-radius: 7px;
}
#PartNumDiv .dTreeNode:hover {
    background: #fbf5e6;
}
#PartNumDiv .node {
    color: #255550;
    text-decoration: none;
}
#PartNumDiv .node:hover {
    color: #a06e16;
}
#PartNumDiv .clip {
    margin-right: 18px;
}
/* ==================== Text pages (#TextData) ==================== */
#TextData {
    position: relative;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto 22px;
    padding: 20px 26px;
    border: 1px solid #dfd0ae;
    border-top: 3px solid rgba(197,150,45,.65);
    border-radius: 18px;
    background: rgba(255,255,255,.97);
    box-shadow: 0 5px 18px rgba(76,59,24,.06);
    color: var(--fath-text);
    font-family: "Noto Naskh Arabic", Tahoma, Arial, sans-serif;
    font-size: 17px;
    line-height: 2.05;
    overflow: hidden;
}
#TextData::before {
    content: "";
    display: block;
    width: 100px;
    height: 3px;
    margin: 0 auto 14px;
    border-radius: 3px;
    background: linear-gradient(90deg, transparent, #c5962d, transparent);
}
.content-card #TextData::before {
    display: none;
}
.content-card #TextData {
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}
#TextData tr td {
    padding: 5px 8px;
    vertical-align: top;
}
#TextData img {
    max-width: 100%;
    height: auto;
}
#TextData p {
    color: #303a38;
    font-size: 17px;
    line-height: 2.1;
    text-align: justify;
}
#TextData > tbody > tr > td > div {
    display: inline-block;
    margin: 10px 0;
    padding: 8px 24px;
    border-right: 4px solid var(--fath-gold);
    border-left: 4px solid var(--fath-gold);
    border-radius: 10px;
    background: linear-gradient(90deg, #fff, #fbf4df, #fff);
    color: var(--fath-green);
    font-size: 21px;
    font-weight: 800;
    line-height: 1.6;
}
#TextData #Head01, #TextData #Head02, #TextData #Head03 {
    color: #8c6518;
    font-weight: 800;
    vertical-align: top;
}
#TextData #Head01 {
    min-width: 150px;
}
#TextData #Head02 {
    min-width: 190px;
}
#TextData #Head03 {
    min-width: 48px;
}
#TextData ul {
    margin: 10px 22px;
}
#TextData li {
    margin: 5px 0;
}
#TextData img[src*="home_pic"], #TextData img[src*="intro_pic"] {
    max-width: min(280px, 38vw);
    border: 1px solid #d6bf88;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(63,53,25,.14);
    margin: 4px 0 12px 18px;
}
#TextData tr:first-child td img[src*="_hd"] {
    max-height: 72px;
    width: auto;
    object-fit: contain;
    margin: 4px auto 10px;
}
#TextData a img[alt*="الشركة"] {
    max-width: 220px;
    height: auto;
    margin-top: 10px;
    border-radius: 10px;
}
/* ==================== Footer ==================== */
.site-footer,
#footer {
    width: 100%;
    min-height: 68px;
    height: auto;
    margin: 0;
    padding: 0;
    border-top: 3px solid transparent;
    border-image: linear-gradient(90deg, #d6bd84, #bb7e11, #b5922c) 1;
    background: #073d3b;
    color: #fff;
    direction: rtl;
    text-align: start;
}
#footer.site-footer {
    min-height: 68px;
    height: auto;
    font: 400 14px/1.6 "Noto Naskh Arabic", Tahoma, Arial, sans-serif;
    text-align: start;
    direction: rtl;
}
.footer-inner {
    width: min(1440px, calc(100% - 48px));
    min-height: 68px;
    margin: 0 auto;
    padding: 10px 0;
    padding-inline: max(10px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-left));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.footer-brand-links {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.footer-leaf {
    flex: 0 0 auto;
    color: #e9d18a;
}
.footer-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    margin: 0;
}
.footer-links a,
#footer .footer-links a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 0 13px;
    border-left: 1px solid rgba(234,209,138,.35);
    color: #f6e7b8;
    font: 400 15px/1.4 "Noto Naskh Arabic", Tahoma, Arial, sans-serif;
    text-decoration: none;
}
.footer-links a:last-child {
    border-left: 0;
}
.footer-links a:hover,
#footer .footer-links a:hover {
    color: #fff;
}
.footer-copy {
    color: #f0f3f1;
    font-family: "Noto Naskh Arabic", Tahoma, Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    white-space: nowrap;
}
.footer-copy a,
#footer .footer-copy a {
    color: #f3d37d;
    font-weight: 700;
    text-decoration: none;
}
/* ==================== Accessibility / focus ==================== */
.nav-item:focus-visible,
.footer-links a:focus-visible {
    outline: 3px solid #f4df9b;
    outline-offset: -4px;
    border-radius: 2px;
}
.page-breadcrumb a:focus-visible {
    outline: 3px solid #0a615b;
    outline-offset: 3px;
    border-radius: 3px;
}
#header_04 select:focus-visible,
#header_04 button:focus-visible {
    outline: 2px solid #0a615b;
    outline-offset: 2px;
}
/* ==================== Responsive / media queries ==================== */
@media (max-width: 1000px) {
    .author-name {
        width: 1px;
        height: 1px;
        padding: 0;
        overflow: hidden;
        clip: rect(0,0,0,0);
        white-space: nowrap;
        left: 0;
        top: 0;
        transform: none;
    }
}
@media (max-width: 900px) {
    #header_02.site-nav {
        height: auto;
    }
    .nav-inner {
        height: auto;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .nav-item {
        min-height: 56px;
        padding: 5px 4px;
        flex-direction: column;
        gap: 2px;
        font-size: 13px;
        line-height: 1.2;
        border-left: 1px solid rgba(255,255,255,.12);
    }
    #header_04 select,
    #header_04 button {
        min-height: 44px;
        height: 44px !important; /* Legacy inline select height must be overridden for the 44px touch target. */
    }
    .tabs_Translation,
    .tabs_Translation_Selected,
    .tabs_Mean,
    .tabs_Mean_Selected,
    .tabs_Tafseer,
    .tabs_Tafseer_Selected,
    .tabs_Aya,
    .tabs_Aya_Selected {
        min-height: 44px;
        height: 44px !important; /* Legacy AJAX tab height must be overridden for the 44px touch target. */
    }
    .page-breadcrumb a {
        min-height: 44px;
    }
    .page-shell {
        width: min(100% - 28px, 1440px);
        margin-top: 12px;
    }
    .content-card {
        padding: 26px 20px 24px;
    }
    .page-heading {
        gap: 9px;
    }
    .page-heading::before,
  .page-heading::after {
        flex-basis: 90px;
    }
    .home-layout {
        grid-template-columns: 1fr;
        grid-template-areas: "main" "aside";
        gap: 22px;
    }
    .home-aside {
        width: 100%;
        justify-self: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .home-main > p,
  .info-box p {
        font-size: 16px;
    }
    .mission-list > li > ul {
        grid-template-columns: 1fr;
    }
    #header_04 > tbody > tr {
        gap: 5px;
    }
    #QuranCmb,
  #PartCmb {
        max-width: 100%;
        overflow-x: auto;
    }
    #dview {
        display: block;
        border-spacing: 0;
    }
    #dview > tbody,
  #dview > tbody > tr,
  #dview > tbody > tr > td {
        display: block;
        width: 100% !important;
        /* Override legacy inline reader-cell widths on responsive screens. */
    }
    #dview > tbody > tr > td + td {
        margin-top: 14px;
    }
    #QuranDisplay #brdr,
  #QuranPage {
        max-width: 100%;
    }
    .tabs_Translation,
  .tabs_Translation_Selected,
  .tabs_Mean,
  .tabs_Mean_Selected,
  .tabs_Tafseer,
  .tabs_Tafseer_Selected,
  .tabs_Aya,
  .tabs_Aya_Selected {
        width: 112px !important;
        /* Keep AJAX tab width over the legacy tab stylesheet. */
    }
    .footer-inner {
        width: min(100% - 28px, 1440px);
    }
}
@media (max-width: 680px) {
    .nav-inner {
        min-height: 56px;
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    #header_02.site-nav {
        min-height: 56px;
    }
    .nav-item {
        min-height: 56px;
        padding: 5px 3px;
        font-size: 12px;
    }
    .nav-icon {
        width: 22px;
        height: 22px;
    }
    .page-shell {
        width: calc(100% - 20px);
        margin-bottom: 22px;
    }
    .page-breadcrumb {
        min-height: 30px;
        font-size: 12px;
    }
    .page-heading {
        gap: 5px;
        margin-bottom: 13px;
    }
    .page-heading::before,
  .page-heading::after {
        flex-basis: 45px;
    }
    .page-heading h1 {
        font-size: 24px;
    }
    .heading-ornament {
        width: 36px;
        height: 26px;
    }
    .content-card {
        padding: 20px 12px 18px;
        border-radius: 18px;
    }
    .home-layout {
        gap: 0;
    }
    .home-aside {
        display: block;
    }
    .home-photo {
        display: none;
    }
    .verse-card {
        padding: 16px 28px;
    }
    .verse-card p {
        font-size: 24px;
    }
    .home-main > p,
  .info-box p {
        font-size: 16px;
        line-height: 2;
    }
    .mission-title {
        font-size: 16px;
    }
    .mission-pill {
        padding-right: 48px;
        border-radius: 18px;
    }
    #header_04 {
        padding: 5px;
        overflow-x: auto;
    }
    #header_04 > tbody > tr {
        justify-content: center;
    }
    #header_04 > tbody > tr > td {
        flex: 0 0 auto;
    }
    #header_04 > tbody > tr > td#QuranCmb,
  #header_04 > tbody > tr > td#PartCmb {
        flex: 1 1 100%;
        justify-content: center;
    }
    #QuranCmb table {
        width: 100%;
    }
    #QuranCmb select {
        max-width: 100%;
    }
    #nxtprv_Str {
        min-width: 132px;
    }
    .tabs_Translation,
  .tabs_Translation_Selected,
  .tabs_Mean,
  .tabs_Mean_Selected,
  .tabs_Tafseer,
  .tabs_Tafseer_Selected,
  .tabs_Aya,
  .tabs_Aya_Selected {
        width: 96px !important;
        /* Keep AJAX tab width over the legacy tab stylesheet. */
        height: 38px !important;
        /* Keep AJAX tab height over the legacy tab stylesheet. */
    }
    .tabs_Translation::after,
  .tabs_Translation_Selected::after,
  .tabs_Mean::after,
  .tabs_Mean_Selected::after,
  .tabs_Tafseer::after,
  .tabs_Tafseer_Selected::after,
  .tabs_Aya::after,
  .tabs_Aya_Selected::after {
        font-size: 11px;
    }
    #TextData {
        padding: 0;
        font-size: 16px;
    }
    #TextData p {
        font-size: 15px;
        line-height: 2;
    }
    #TextData img[src*="intro_pic"] {
        float: none;
        display: block;
        width: 100%;
        max-width: 300px;
        margin: 8px auto 16px;
    }
    #TextData #Head01,
  #TextData #Head02,
  #TextData #Head03 {
        min-width: 0;
        white-space: normal;
        font-size: 13px;
    }
    #DataDisplay {
        min-height: 300px;
        padding: 12px;
    }
    #MeanData {
        font-size: 13px;
    }
    #MeanData td {
        padding: 8px 7px;
    }
    #DataDisplay #MeanData td[style*="text-align:justify"] {
        font-size: 15px;
    }
    #QuranDisplay {
        padding: 7px;
    }
    .footer-inner {
        width: calc(100% - 20px);
        min-height: 0;
        padding-top: 10px;
        padding-bottom: calc(12px + env(safe-area-inset-bottom));
        flex-direction: column;
        gap: 8px;
    }
    .footer-brand-links {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    .footer-links {
        justify-content: center;
    }
    .footer-links a {
        padding-inline: 8px;
    }
    .footer-copy {
        white-space: normal;
        text-align: center;
        font-size: 13px;
    }
    .site-footer,
  #footer {
        min-height: 120px;
    }
}
@media (prefers-reduced-motion: reduce) {
    /* Required to honor the user's reduced-motion preference over component transitions. */
    html {
        scroll-behavior: auto;
    }
    *,
  *::before,
  *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}
