
body { margin:0; font-family: sans-serif; background:#f2efe9; }
.toolbar {
  position:fixed; top:0; left:0; right:0;
  background:#ddd; padding:8px; z-index:10;
}
.page {
  margin:80px auto;
  padding:40px;
  max-width:900px;
  background:var(--paper-color, #fbf7f1);
}
.arabic-text {
  direction:rtl;
  text-align:justify;
  font-size:30px;
  line-height:2.8;
}
.footnote {
  margin-top:24px;
  padding-top:16px;
  border-top:1px solid #999;
  font-size:20px;
}
body.light { background:#fff; }
body.semi { background:#f2efe9; }
body.dark { background:#121212; color:#eee; }


/* === PATCH: PAGE SIZE & HEADER === */
.page.A4 { width:794px; height:1123px; }
.page.A5 { width:559px; min-height:794px; }
.page.LEGAL { width:816px; min-height:1344px; }

.page-header {
  display:flex;
  justify-content:space-between;
  font-size:15px;
  margin-bottom:16px;
  opacity:0.85;
}
.page-header.right { flex-direction:row-reverse; }
