/* Editorial article template (newsroom + insights), EN + AR */
:root { --gut: clamp(20px, 4.4vw, 64px); }
.wrap, .nav { max-width: 1480px; padding-left: var(--gut); padding-right: var(--gut); }

.read-progress { position: fixed; top: var(--nav-h); left: 0; height: 2px; width: 0; background: var(--heather); z-index: 59; transition: width .1s linear; }
html[dir="rtl"] .read-progress { left: auto; right: 0; }

/* hero */
.a-hero { background: var(--aub); color: var(--white); position: relative; overflow: hidden; padding: calc(var(--nav-h) + clamp(28px,3vw,40px)) 0 clamp(150px,16vw,220px); }
.a-hero .a-arcs { position: absolute; right: -10vw; top: -14vw; width: 46vw; min-width: 380px; opacity: .5; pointer-events: none; }
html[dir="rtl"] .a-hero .a-arcs { right: auto; left: -10vw; }
.a-hero .wrap { position: relative; }
.a-crumbs { font-size: 12.5px; color: rgba(255,255,255,0.55); margin-bottom: clamp(36px,5vw,64px); max-width: none; }
.a-crumbs a { color: rgba(255,255,255,0.7); text-decoration: none; }
.a-crumbs a:hover { color: var(--heather); }
.a-crumbs span { margin: 0 9px; color: rgba(255,255,255,0.35); }
.a-head { max-width: 980px; }
.a-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-bottom: 26px; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500; color: rgba(255,255,255,0.68); max-width: none; }
.a-tag { color: var(--heather); border: 1px solid rgba(199,155,232,0.55); padding: 6px 12px; font-weight: 600; }
.a-meta i { width: 4px; height: 4px; border-radius: 50%; background: rgba(199,155,232,0.6); display: inline-block; }
.a-hero h1 { font-size: clamp(30px,4.3vw,60px); line-height: 1.08; max-width: 20ch; margin-bottom: 26px; }
.a-dek { font-size: clamp(17px,1.55vw,21px); line-height: 1.6; color: rgba(255,255,255,0.78); max-width: 62ch; }
.a-byline { display: flex; align-items: center; gap: 14px; margin-top: 34px; }
.a-byline img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 1px solid rgba(199,155,232,0.5); background: var(--plum); }
.a-byline b { display: block; font-size: 14.5px; font-weight: 600; color: var(--white); }
.a-byline span { display: block; font-size: 13px; color: rgba(255,255,255,0.6); }

/* lead image overlapping the hero */
.a-figure { margin: calc(-1 * clamp(110px,12vw,170px)) 0 0; position: relative; z-index: 2; }
.a-figure img { width: 100%; display: block; border-radius: 6px; box-shadow: 0 30px 80px rgba(20,4,26,0.28); aspect-ratio: 3 / 2; object-fit: cover; background: var(--plum); }
.a-figure figcaption { font-size: 13px; line-height: 1.6; color: var(--ink-soft); margin-top: 14px; max-width: 760px; }

/* body + sidebar */
.a-layout { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: clamp(40px,6vw,96px); padding: clamp(48px,6vw,80px) 0 clamp(64px,8vw,110px); align-items: start; }
.a-body { max-width: 720px; }
.a-body > p { font-size: 18px; line-height: 1.85; color: #2E2335; margin-bottom: 24px; max-width: none; }
.a-body > p.lead, .a-body > p:first-child { font-size: clamp(19px,1.6vw,21px); line-height: 1.75; color: var(--aub); font-weight: 500; }
.a-body h2 { font-size: clamp(21px,2vw,27px); line-height: 1.2; margin: clamp(44px,5vw,60px) 0 18px; padding-top: 22px; position: relative; scroll-margin-top: calc(var(--nav-h) + 20px); }
.a-body h2::before { content: ""; position: absolute; top: 0; left: 0; width: 44px; height: 2px; background: var(--heather); }
html[dir="rtl"] .a-body h2::before { left: auto; right: 0; }
.a-body ul { margin: 0 0 26px; padding: 0; list-style: none; }
.a-body li { position: relative; padding: 0 0 0 26px; margin-bottom: 14px; font-size: 17.5px; line-height: 1.75; color: #2E2335; }
.a-body li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 8px; height: 2px; background: var(--heather); }
html[dir="rtl"] .a-body li { padding: 0 26px 0 0; }
html[dir="rtl"] .a-body li::before { left: auto; right: 2px; }
.a-body b { color: var(--aub); font-weight: 600; }
.a-body a { color: var(--royal); text-decoration: underline; text-decoration-color: rgba(107,58,135,0.35); text-underline-offset: 3px; }
.a-body a:hover { color: var(--aub); }
.a-body blockquote { margin: clamp(36px,4vw,52px) 0; padding: 0; border: 0; position: relative; font-family: 'Rebelton','Montserrat',sans-serif; text-transform: uppercase; word-spacing: -0.14em; font-size: clamp(20px,2vw,27px); line-height: 1.3; color: var(--aub); }
.a-body blockquote::before { content: "\201C"; display: block; font-family: Georgia, serif; font-size: 90px; line-height: .6; color: var(--heather); margin-bottom: 18px; }
html[dir="rtl"] .a-body blockquote { font-family: 'Tajawal','Segoe UI',Tahoma,Arial,sans-serif; font-weight: 700; text-transform: none; line-height: 1.5; }
.a-body .a-cta-inline { margin: 8px 0 0; }

/* FAQ */
.a-faq { margin-top: clamp(48px,6vw,72px); border-top: 1px solid var(--aub); padding-top: 26px; }
.a-faq h2 { margin-top: 0 !important; padding-top: 0 !important; }
.a-faq h2::before { display: none; }
.a-faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.a-faq summary { cursor: pointer; list-style: none; font-weight: 600; font-size: 17px; color: var(--aub); display: flex; justify-content: space-between; gap: 20px; }
.a-faq summary::-webkit-details-marker { display: none; }
.a-faq summary::after { content: "+"; color: var(--royal); font-size: 22px; line-height: 1; transition: transform .2s ease; }
.a-faq details[open] summary::after { transform: rotate(45deg); }
.a-faq details p { font-size: 16.5px; line-height: 1.75; color: #3E3245; margin-top: 12px; max-width: none; }

/* about */
.a-about { margin-top: clamp(48px,6vw,64px); background: var(--mist); border-radius: 6px; padding: 28px 30px; display: grid; grid-template-columns: 52px 1fr; gap: 20px; align-items: start; }
.a-about img { width: 52px; height: 52px; border-radius: 50%; background: var(--aub); padding: 10px; object-fit: contain; }
.a-about p { font-size: 15px; line-height: 1.7; color: var(--ink-soft); margin: 0 0 10px; max-width: none; }
.a-about p:last-child { margin-bottom: 0; }
.a-about b { color: var(--aub); }
.a-about a { color: var(--aub); }

/* sidebar */
.a-side { position: sticky; top: calc(var(--nav-h) + 28px); display: grid; gap: 22px; }
.a-card { border: 1px solid var(--line); border-radius: 6px; padding: 22px 22px 18px; background: var(--white); }
.a-card h4 { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 600; color: var(--royal); margin-bottom: 14px; }
.a-facts { margin: 0; display: grid; gap: 14px; }
.a-facts div { border-top: 1px solid var(--line); padding-top: 12px; }
.a-facts div:first-child { border-top: 0; padding-top: 0; }
.a-facts dt { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 4px; }
.a-facts dd { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--aub); font-weight: 500; }
.a-facts dd a { color: var(--royal); }
.a-toc { list-style: none; padding: 0; margin: 0; counter-reset: toc; }
.a-toc li { counter-increment: toc; border-top: 1px solid var(--line); }
.a-toc li:first-child { border-top: 0; }
.a-toc a { display: grid; grid-template-columns: 26px 1fr; gap: 6px; padding: 10px 0; font-size: 14px; line-height: 1.45; color: var(--ink-soft); text-decoration: none; transition: color .2s; }
.a-toc a::before { content: counter(toc, decimal-leading-zero); font-size: 11px; color: var(--stone); padding-top: 2px; }
.a-toc a:hover, .a-toc a.on { color: var(--aub); }
.a-share { display: flex; gap: 10px; }
.a-share a, .a-share button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; background: var(--white); cursor: pointer; transition: border-color .2s, background .2s; color: var(--aub); }
.a-share a:hover, .a-share button:hover { border-color: var(--aub); background: var(--mist); }
.a-share svg { width: 16px; height: 16px; fill: currentColor; }
.a-share .copied { border-color: var(--heather); background: var(--heather); }
.a-side .btn { width: 100%; }

/* related */
.a-related { background: var(--mist); padding: clamp(64px,8vw,104px) 0; }
.a-related-head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; border-bottom: 1px solid var(--aub); padding-bottom: 16px; margin-bottom: clamp(28px,3.5vw,40px); }
.a-related-head p { font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 500; color: var(--ink-soft); margin: 0; }
.a-related-head a { font-size: 15px; font-weight: 500; color: var(--aub); text-decoration: none; border-bottom: 1px solid rgba(38,9,43,0.35); padding-bottom: 4px; white-space: nowrap; }
.a-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px,2.4vw,32px); }
.a-rc { text-decoration: none; color: inherit; display: block; }
.a-rc .im { aspect-ratio: 3 / 2; overflow: hidden; border-radius: 4px; background: var(--aub); }
.a-rc img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s cubic-bezier(.2,.6,.2,1); }
.a-rc:hover img { transform: scale(1.04); }
.a-rc .mt { font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500; color: var(--ink-soft); margin: 18px 0 10px; }
.a-rc .mt b { color: var(--royal); font-weight: 600; margin-right: 12px; }
html[dir="rtl"] .a-rc .mt b { margin-right: 0; margin-left: 12px; }
.a-rc h3 { font-size: clamp(16px,1.4vw,19px); line-height: 1.3; color: var(--aub); }
html[dir="rtl"] .a-rc h3, html[dir="rtl"] .a-hero h1, html[dir="rtl"] .a-body h2 { font-family: 'Tajawal','Segoe UI',Tahoma,Arial,sans-serif; font-weight: 700; line-height: 1.35; }

/* closing band */
.a-band { background: var(--aub); color: var(--white); position: relative; overflow: hidden; padding: clamp(64px,8vw,104px) 0; }
.a-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; position: relative; }
.a-band .eyebrow { color: var(--heather); }
.a-band h2 { font-size: clamp(24px,3vw,40px); max-width: 20ch; }
.a-band p { color: rgba(255,255,255,0.74); margin-top: 14px; }
.a-band .a-arcs { position: absolute; left: -12vw; bottom: -24vw; width: 46vw; min-width: 360px; opacity: .35; pointer-events: none; }
html[dir="rtl"] .a-band .a-arcs { left: auto; right: -12vw; }

@media (max-width: 1000px) {
  .a-layout { grid-template-columns: 1fr; }
  .a-side { position: static; grid-template-columns: 1fr 1fr; }
  .a-side .a-card.share-card { grid-column: 1 / -1; }
  .a-cards { grid-template-columns: 1fr 1fr; }
  .a-cards .a-rc:nth-child(3) { display: none; }
}
@media (max-width: 640px) {
  .a-hero { padding-bottom: 120px; }
  .a-figure { margin-top: -84px; }
  .a-side { grid-template-columns: 1fr; }
  .a-body > p { font-size: 17px; }
  .a-cards { grid-template-columns: 1fr; }
  .a-cards .a-rc:nth-child(3) { display: block; }
  .a-about { grid-template-columns: 1fr; }
  .a-related-head { flex-direction: column; align-items: flex-start; }
}
section.a-faq { padding: 26px 0 0; }
.a-figure { max-width: 1160px; }

/* small phones: never let one long token (email, URL) widen the column */
@media (max-width: 1000px) { .a-layout { grid-template-columns: minmax(0,1fr); } }
.a-body, .a-about, .a-side { overflow-wrap: anywhere; min-width: 0; }

@media (max-width: 600px) { .a-crumbs a { display: inline-block; padding: 10px 0; } }
@media (max-width: 600px) { .a-meta i { display: none; } }
