.reader-materials{font-size:13px;max-height:18dvh;overflow:auto}.reader-materials summary{padding:3px;cursor:pointer}#mushaf-popup #mushaf-reader{grid-template-rows:auto minmax(0,1fr) auto}#mushaf-popup:not(:has(#mushaf-reader)):has(.mushaf-image){height:98dvh;max-height:98dvh;overflow:hidden;display:grid;grid-template-rows:auto minmax(0,1fr)}#mushaf-popup:not([open]){display:none!important}#mushaf-popup:not(:has(#mushaf-reader)) #mushaf-popup-body{display:flex;flex-direction:column;min-height:0}#mushaf-popup:not(:has(#mushaf-reader)) .mushaf-image{width:100%;height:100%;min-height:0;object-fit:contain}
/* v2: toolbar follows the rendered image width, with three equal RTL cells. */
.knight-reader-actions,#mushaf-popup #mushaf-reader>.actions{justify-self:center;grid-template-columns:repeat(3,minmax(0,1fr));direction:rtl;gap:0!important;margin:0 auto!important}.knight-reader-actions button,#mushaf-popup #mushaf-reader>.actions>button{border-radius:0;min-height:42px}.knight-page-image,#mushaf-reader>.mushaf-image{object-position:top center!important}
