/* Masar Article Reading Pro v1.0.0 | Only single WordPress posts. */
body.single-post .masar-readable-article,
body.single-post .wp-block-post-content:not(.masar-readable-article) {
  --masar-ink: #172d45;
  --masar-soft: #546579;
  --masar-line: #e4eaf2;
  --masar-blue: #245edb;
  color: var(--masar-ink);
  direction: rtl;
  text-align: start;
  font-family: "IBM Plex Sans Arabic", "Noto Kufi Arabic", Tahoma, Arial, sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 2;
  text-wrap: pretty;
  overflow-wrap: anywhere;
  box-sizing: border-box;
  width: min(100%, 920px);
  max-width: 920px;
  margin: 26px auto 45px;
  padding: clamp(24px, 4.5vw, 58px);
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--masar-line);
  box-shadow: 0 12px 42px rgba(22, 44, 72, .055);
}
body.single-post :is(.masar-readable-article,.wp-block-post-content) :is(p,ul,ol,blockquote,figure,pre,table) {
  margin-block: 0 1.45em;
}
body.single-post :is(.masar-readable-article,.wp-block-post-content) :is(h1,h2,h3,h4,h5,h6) {
  font-family: inherit;
  color: #112b47;
  text-align: start;
  line-height: 1.55;
  font-weight: 700;
  letter-spacing: 0;
  word-break: normal;
  margin: 1.75em 0 .7em;
}
body.single-post :is(.masar-readable-article,.wp-block-post-content) > :first-child { margin-block-start: 0; }
body.single-post :is(.masar-readable-article,.wp-block-post-content) h1 { font-size: clamp(29px, 3vw, 38px); }
body.single-post :is(.masar-readable-article,.wp-block-post-content) h2 {
  font-size: clamp(23px, 2.2vw, 29px);
  border-inline-start: 4px solid #3479ee;
  padding-inline-start: 16px;
}
body.single-post :is(.masar-readable-article,.wp-block-post-content) h3 { font-size: clamp(20px, 1.8vw, 23px); }
body.single-post :is(.masar-readable-article,.wp-block-post-content) :is(h4,h5,h6) { font-size: 19px; }
body.single-post :is(.masar-readable-article,.wp-block-post-content) :is(ul,ol) { padding-inline-start: 1.5em; }
body.single-post :is(.masar-readable-article,.wp-block-post-content) li { padding-inline-start: .2em; margin-bottom: .45em; }
body.single-post :is(.masar-readable-article,.wp-block-post-content) a {
  color: var(--masar-blue, #245edb);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}
body.single-post :is(.masar-readable-article,.wp-block-post-content) a:hover { color: #173b91; }
body.single-post :is(.masar-readable-article,.wp-block-post-content) :is(strong,b) { font-weight: 700; }
body.single-post :is(.masar-readable-article,.wp-block-post-content) blockquote,
body.single-post :is(.masar-readable-article,.wp-block-post-content) .wp-block-quote {
  border: 0;
  border-inline-start: 4px solid #4482ef;
  background: #f2f6ff;
  padding: 20px 26px;
  border-radius: 12px;
  color: #203b5a;
}
body.single-post :is(.masar-readable-article,.wp-block-post-content) blockquote p:last-child { margin-bottom: 0; }
body.single-post :is(.masar-readable-article,.wp-block-post-content) img {
  max-width: 100%;
  height: auto;
  border-radius: 13px;
}
body.single-post :is(.masar-readable-article,.wp-block-post-content) figcaption {
  color: #68798b;
  text-align: center;
  font-size: .83em;
  margin-top: .5em;
}
body.single-post :is(.masar-readable-article,.wp-block-post-content) .wp-block-table { overflow-x: auto; }
body.single-post :is(.masar-readable-article,.wp-block-post-content) table {
  width: 100%;
  border-collapse: collapse;
  font-size: .94em;
  line-height: 1.8;
}
body.single-post :is(.masar-readable-article,.wp-block-post-content) th,
body.single-post :is(.masar-readable-article,.wp-block-post-content) td { padding: 12px 14px; border: 1px solid #dfe6ee; }
body.single-post :is(.masar-readable-article,.wp-block-post-content) th { background: #edf4ff; color: #183855; }
body.single-post :is(.masar-readable-article,.wp-block-post-content) :is(pre,code,kbd,samp) {
  font-family: ui-monospace, Consolas, monospace;
  direction: ltr;
  unicode-bidi: isolate;
  font-size: .9em;
}
body.single-post :is(.masar-readable-article,.wp-block-post-content) pre { overflow-x: auto; padding: 16px; border: 1px solid #e6eaf1; border-radius: 12px; background: #f6f8fb; }
body.single-post :is(.masar-readable-article,.wp-block-post-content) :is(.alignwide,.alignfull) { max-width: 100%; }
@media (max-width: 767px) {
  body.single-post .masar-readable-article,
  body.single-post .wp-block-post-content:not(.masar-readable-article) {
    font-size: 16.5px;
    line-height: 1.95;
    width: 100%;
    margin: 12px auto 22px;
    padding: 22px 19px 30px;
    border-radius: 14px;
    box-shadow: none;
  }
  body.single-post :is(.masar-readable-article,.wp-block-post-content) h2 { font-size: 23px; }
  body.single-post :is(.masar-readable-article,.wp-block-post-content) blockquote { padding: 16px; }
  body.single-post :is(.masar-readable-article,.wp-block-post-content) table { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  body.single-post :is(.masar-readable-article,.wp-block-post-content) * { scroll-behavior: auto; }
}
