/* Andalus Readability V15 — calmer Arabic rhythm and clearer separation between lines. */
:root{
  --an-read-heading-leading:1.30;
  --an-read-heading-leading-mobile:1.38;
  --an-read-copy-leading:1.82;
  --an-read-copy-leading-mobile:1.92;
  --an-read-list-gap:.58rem;
}

/* Keep controls compact; improve reading content only. */
main :where(h1,h2,h3,h4,h5,h6){
  line-height:var(--an-read-heading-leading)!important;
  text-wrap:balance;
  overflow-wrap:anywhere;
}
main :where(p,li,blockquote,figcaption,dd){
  line-height:var(--an-read-copy-leading)!important;
  text-wrap:pretty;
}
main :where(ul,ol){
  padding-inline-start:1.35rem;
}
main :where(ul,ol)>li+li{
  margin-top:var(--an-read-list-gap);
}
main details>summary{
  line-height:1.58!important;
}
main :where(.lead,.hero-lead,.an-cat-hero p,.an-info-lead){
  line-height:1.9!important;
}

/* The live-page hero was the most visibly cramped title. */
#anLive .hero h1{
  line-height:1.30!important;
}
#anLive .hero h1 span{
  display:inline;
}

/* Do not let long Arabic labels collide inside cards and CTAs. */
main :where(a,button,.btn,.an-cat-btn,.quote,.tag){
  line-height:1.38;
}

@media(max-width:700px){
  main :where(h1,h2,h3,h4,h5,h6){
    line-height:var(--an-read-heading-leading-mobile)!important;
    letter-spacing:0!important;
  }
  main :where(p,li,blockquote,figcaption,dd){
    line-height:var(--an-read-copy-leading-mobile)!important;
  }
  main :where(ul,ol)>li+li{
    margin-top:.68rem;
  }
  #anLive .hero h1{
    line-height:1.42!important;
  }
  #anLive .hero h1 span{
    display:block;
    margin-top:.13em;
  }
}

@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto!important}
}

/* Standard product-share control — familiar connected-nodes symbol. */
.an-cat-sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.an-cat-actions-row .an-cat-share{position:relative!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;width:48px!important;min-width:48px!important;max-width:48px!important;height:46px!important;min-height:46px!important;padding:0!important;border:1px solid #2b2d2f!important;border-radius:14px!important;background:#fff!important;color:#2b2d2f!important;box-shadow:0 5px 14px rgba(23,26,28,.08)!important;transition:background .18s ease,color .18s ease,transform .18s ease,box-shadow .18s ease!important}
.an-cat-actions-row .an-cat-share svg{display:block!important;width:22px!important;height:22px!important;overflow:visible!important;fill:none!important;stroke:currentColor!important;stroke-width:1.85!important;stroke-linecap:round!important;stroke-linejoin:round!important;pointer-events:none!important}
.an-cat-actions-row .an-cat-share:hover,.an-cat-actions-row .an-cat-share:focus-visible{background:#2b2d2f!important;color:#fff!important;border-color:#2b2d2f!important;transform:translateY(-1px)!important;box-shadow:0 9px 20px rgba(23,26,28,.16)!important;outline:3px solid rgba(43,45,47,.13)!important;outline-offset:2px!important}
.an-cat-actions-row .an-cat-share:active{transform:translateY(0) scale(.97)!important}
@media(max-width:700px){.an-cat-actions-row .an-cat-share{height:48px!important;min-height:48px!important;border-radius:15px!important}.an-cat-actions-row .an-cat-share svg{width:23px!important;height:23px!important}}
