/* Magazine single (مجلة قلمون) — section styles. RTL. v1.6.2 */
.acs-mag-single :where(a){text-decoration:none}
/* Every section fills the Bricks content container and aligns to the RTL start,
   matching the workshop/topic singles (single.css §"container"). */
.acs-maghead,
.acs-maghero,
.acs-magpdf,
.acs-magcontents{width:100%;align-self:stretch;box-sizing:border-box}

/* head */
.acs-maghead{display:flex;flex-direction:column;gap:16px}
.acs-maghead__title{font-family:"Readex Pro",sans-serif;font-weight:600;font-size:32px;line-height:1.5;color:#231F20;margin:0}
.acs-maghead__meta{display:flex;align-items:center;gap:16px;flex-wrap:wrap;color:#9C999A}
.acs-maghead__updated{font-family:"Readex Pro",sans-serif;font-weight:400;font-size:12px;line-height:1.5}

/* hero — the issue cover, centered in the content column with section rhythm */
.acs-maghero{margin:32px auto;text-align:center}
.acs-maghero__img{max-width:min(100%,640px);height:auto;border-radius:4px;display:inline-block;margin-inline:auto}
.acs-maghero__ribbon{font-family:"Readex Pro",sans-serif;font-weight:500;font-size:16px;color:#068788;margin-top:12px}

/* pdf viewer — grey box, centered in the column */
.acs-magpdf{margin:32px 0;background:#F7F7F7;border-radius:4px;padding:24px;display:flex;flex-direction:column;align-items:center;gap:16px}
/* toolbar: a white rounded bar with teal round buttons + page indicator */
.acs-magpdf__toolbar{display:none;align-items:center;gap:6px;background:#fff;border:1px solid #E5EFED;border-radius:999px;padding:6px 10px;box-shadow:0 1px 3px rgba(0,0,0,.06)}
.acs-magpdf.is-ready .acs-magpdf__toolbar{display:inline-flex}
.acs-magpdf__ctl{width:34px;height:34px;display:inline-flex;align-items:center;justify-content:center;border:0;background:#068788;color:#fff;border-radius:50%;cursor:pointer;font-size:18px;line-height:1;transition:background .15s ease}
.acs-magpdf__ctl:hover{background:#04696a}
.acs-magpdf__pages{font-family:"Readex Pro",sans-serif;font-weight:500;font-size:14px;color:#231F20;min-width:72px;text-align:center;padding:0 6px}
.acs-magpdf__stage{display:none;width:100%;max-width:820px;overflow:auto;justify-content:center}
.acs-magpdf.is-ready .acs-magpdf__stage{display:flex}
.acs-magpdf__canvas{max-width:100%;height:auto;border-radius:4px;box-shadow:0 0 0 1px #e5e5e5}
.acs-magpdf__fallback{display:flex;flex-direction:column;align-items:center;gap:16px}
.acs-magpdf.is-ready .acs-magpdf__cover{display:none}
.acs-magpdf__cover{max-width:180px;height:auto;border-radius:4px}
/* On narrow screens keep the download baseline; the canvas viewer is desktop-first. */
@media (max-width:640px){.acs-magpdf.is-ready .acs-magpdf__toolbar,.acs-magpdf.is-ready .acs-magpdf__stage{display:none}.acs-magpdf.is-ready .acs-magpdf__cover{display:block}}

/* محتويات العدد — one stacked card per article (matches the old site):
   teal type header + arrow · white title · gray footer (author + download). */
.acs-magcontents{margin:32px 0;display:flex;flex-direction:column;gap:24px;direction:rtl}
/* 4 cards per row (responsive down to 1) — matches the old-site contents grid.
   Cards stretch to equal height; title area grows so footers align across the row. */
.acs-magcontents__list{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;align-items:stretch}
@media(max-width:1024px){.acs-magcontents__list{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.acs-magcontents__list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){.acs-magcontents__list{grid-template-columns:1fr}}
.acs-magcontents__card{display:flex;flex-direction:column;height:100%;border:1px solid #EDEDED;border-radius:4px;overflow:hidden}
.acs-magcontents__type{display:flex;align-items:center;gap:8px;background:#068788;color:#fff;padding:10px 16px;font-family:"Readex Pro",sans-serif;font-weight:500;font-size:16px;line-height:1.5}
.acs-magcontents__ctitle{flex:1 1 auto;background:#fff;color:#231F20;padding:14px 16px;font-family:"Readex Pro",sans-serif;font-weight:500;font-size:16px;line-height:1.6}
.acs-magcontents__foot{margin-top:auto;display:flex;align-items:center;justify-content:space-between;gap:12px;background:#F7F7F7;padding:10px 16px}
.acs-magcontents__author{display:flex;align-items:center;gap:8px;font-family:"Readex Pro",sans-serif;font-weight:400;font-size:14px;line-height:1.5;color:#231F20}
.acs-magcontents__author a{color:#231F20}
.acs-magcontents__author a:hover{color:#068788;text-decoration:underline}
.acs-magcontents__author .acs-magcontents__arrow{color:#068788}
.acs-magcontents__arrow{display:inline-flex;flex:0 0 auto;width:11px;height:11px}
.acs-magcontents__arrow svg{width:100%;height:100%;display:block;fill:currentColor}
.acs-magcontents__dl{display:inline-flex;flex:0 0 auto;line-height:0;transition:opacity .15s ease}
.acs-magcontents__dl:hover{opacity:.85}
.acs-magcontents__dl svg{display:block}
