/* AlSarhan Article Mood RC163 — typography only inside singular article body.
   Palette from the officially approved site identity (Arabic & English).
   Fallback selectors style Native / Elementor article output without depending on JS.
   JS adds the dedicated .alsr-article-readable class for full enhancement.
*/
body.single-post {
  --alsr-blue:#1469E8; --alsr-sky:#D9F0FF; --alsr-cream:#FFF1DE;
  --alsr-coral:#FF806F; --alsr-green:#39B995; --alsr-gold:#F6BD4A;
}
/* The list is intentionally narrow. Never style generic widget content, sidebar or footer. */
body.single-post :is(
  .assm .assm-article .assm-content,
  .elementor-widget-theme-post-content > .elementor-widget-container,
  .elementor-location-single .elementor-widget-theme-post-content,
  [data-elementor-type="single-post"] .elementor-widget-theme-post-content,
  .elementor-widget-theme-post-content,
  .elementor-widget-post-content > .elementor-widget-container,
  article .entry-content,
  main .post-content,
  .alsr-article-readable
) {
  color:#2A4359;
  line-height:2.03;
  font-size:clamp(16px,1.18vw,18px);
  overflow-wrap:break-word;
  max-width:100%;
  text-align:start;
}
body.single-post :is(
  .assm .assm-article .assm-content,
  .elementor-widget-theme-post-content > .elementor-widget-container,
  .elementor-location-single .elementor-widget-theme-post-content,
  [data-elementor-type="single-post"] .elementor-widget-theme-post-content,
  .elementor-widget-theme-post-content,
  .elementor-widget-post-content > .elementor-widget-container,
  article .entry-content,
  main .post-content,
  .alsr-article-readable
) :is(h2,h3) {
  color:#155DBD;
  font-family:inherit;
  line-height:1.55;
  font-weight:800;
  letter-spacing:normal;
  text-align:start;
  overflow-wrap:anywhere;
}
body.single-post .alsr-article-readable { --alsr-heading:#155DBD; --alsr-border:var(--alsr-blue); --alsr-fill:#F0F8FF; --alsr-chip:var(--alsr-sky); }
body.single-post .alsr-article-readable :is(h2,h3,h4,h5,h6) { margin-block-start:2.05em; margin-block-end:.85em; }
body.single-post .alsr-article-readable h2 {
  color:var(--alsr-heading) !important;
  font-size:clamp(1.32rem,1.75vw,1.72rem);
  background:var(--alsr-fill);
  border:1px solid rgba(22,91,160,.11);
  border-inline-start:5px solid var(--alsr-border);
  border-radius:15px;
  padding-block:.65em;
  padding-inline:1.05em;
  box-shadow:0 7px 19px rgba(23,65,108,.055);
}
body.single-post .alsr-article-readable h3 {
  color:var(--alsr-heading) !important;
  font-size:clamp(1.17rem,1.4vw,1.42rem);
  border-block-end:2px solid var(--alsr-chip);
  padding-block-end:.38em;
}
body.single-post .alsr-article-readable :is(h4,h5,h6) { color:#176F62 !important; font-weight:750; }
body.single-post .alsr-article-readable :is(h2,h3).alsr-tone-coral {
  --alsr-heading:#A93E42; --alsr-border:var(--alsr-coral); --alsr-fill:#FFF3EE; --alsr-chip:#FFE1D9;
}
body.single-post .alsr-article-readable :is(h2,h3).alsr-tone-green {
  --alsr-heading:#166E53; --alsr-border:var(--alsr-green); --alsr-fill:#EBFAF4; --alsr-chip:#D7F4E7;
}
body.single-post .alsr-article-readable :is(h2,h3).alsr-tone-gold {
  --alsr-heading:#805500; --alsr-border:var(--alsr-gold); --alsr-fill:#FFF8E4; --alsr-chip:#FFEFBC;
}
body.single-post .alsr-article-readable :is(h2,h3).alsr-tone-blue {
  --alsr-heading:#155DBD; --alsr-border:var(--alsr-blue); --alsr-fill:#F0F8FF; --alsr-chip:var(--alsr-sky);
}
body.single-post .alsr-article-readable :is(p,li) { color:#30485B; line-height:inherit; text-align:start; }
body.single-post .alsr-article-readable > p { margin-block:0 1.36em; }
body.single-post .alsr-article-readable :is(p,li) :is(strong,b):not([style]) { color:#146C62; font-weight:800; }
body.single-post .alsr-article-readable p.alsr-lead:not([style]) {
  color:#245878;
  border-inline-start:3px solid var(--alsr-green);
  padding-inline-start:.92em;
  line-height:2.08;
}
body.single-post .alsr-article-readable p.alsr-note:not([style]) {
  color:#254F68;
  background:#F0F8FF;
  border:1px solid #DEE9F6;
  border-inline-start:4px solid var(--alsr-blue);
  border-radius:13px;
  padding:.88em 1.12em;
  margin-block:1.35em 1.55em;
}
body.single-post .alsr-article-readable p.alsr-note.alsr-note-cream { background:#FFF8EF; border-inline-start-color:var(--alsr-coral); }
body.single-post .alsr-article-readable p.alsr-note.alsr-note-green { background:#F0FAF6; border-inline-start-color:var(--alsr-green); }
body.single-post .alsr-article-readable :is(ul,ol) li::marker { color:var(--alsr-blue); }
body.single-post .alsr-article-readable :is(p,li) a:not(.wp-block-button__link) { color:#155DBD; text-underline-offset:3px; }
body.single-post .alsr-article-readable :is(p,li) a:not(.wp-block-button__link):focus-visible { outline:2px solid var(--alsr-blue); outline-offset:2px; }
body.single-post .alsr-article-readable :is(img,video,iframe) { max-width:100%; height:auto; }
body.single-post .alsr-article-readable :is(figure img,.wp-block-image img,p > img) { border-radius:14px; }
body.single-post .alsr-article-readable .alsr-emoji {
  display:inline-flex; align-items:center; justify-content:center;
  vertical-align:middle; margin-inline-end:.5em;
  font:400 .8em/1 'Apple Color Emoji','Segoe UI Emoji','Noto Color Emoji',sans-serif;
  white-space:nowrap;
  user-select:none;
}
body.single-post .alsr-article-readable h2 .alsr-emoji {
  min-width:1.68em; min-height:1.68em; padding:.2em;
  background:var(--alsr-chip); border-radius:10px;
}
body.single-post .alsr-article-readable blockquote { border-inline-start-color:var(--alsr-coral); }
@media(max-width:800px){
  body.single-post .alsr-article-readable { font-size:16px; line-height:1.96; }
  body.single-post .alsr-article-readable h2 { font-size:1.34rem; padding-block:.56em; padding-inline:.75em; border-radius:11px; }
  body.single-post .alsr-article-readable h3 { font-size:1.16rem; }
  body.single-post .alsr-article-readable p.alsr-note:not([style]) { padding:.75em .9em; }
}

/* RC163: verified real Elementor post output has NO inner .elementor-widget-container.
   This fallback is visible without JavaScript; no sidebars/header/footer matched. */
body.single-post .elementor-location-single .elementor-widget-theme-post-content:not(.alsr-article-readable) > h2.wp-block-heading:not([style]),
body.single-post [data-elementor-type="single-post"] .elementor-widget-theme-post-content:not(.alsr-article-readable) > h2.wp-block-heading:not([style]) {
  color:#1469E8 !important;
  background:#F0F8FF;
  border-inline-start:4px solid #1469E8;
  border-radius:12px;
  padding:.62em .88em;
  line-height:1.58;
}
body.single-post .elementor-location-single .elementor-widget-theme-post-content:not(.alsr-article-readable) > p.wp-block-paragraph:not([style]),
body.single-post [data-elementor-type="single-post"] .elementor-widget-theme-post-content:not(.alsr-article-readable) > p.wp-block-paragraph:not([style]) {
  color:#30485B;
  line-height:2.03;
}
