/* ==========================================================================
   Vira — Blog / Article stylesheet
   Shared by /blog/* and /ar/blog/* only.
   The landing pages (index, website-development) remain
   fully self-contained per CLAUDE.md; this file is the documented exception
   because 22 article pages would otherwise duplicate identical CSS.
   Tokens below mirror index.html:60-73 exactly.
   ========================================================================== */

:root {
  --red:   #BE4346;
  --red2:  #E05558;
  --navy:  #2E4057;
  --slate: #55718E;
  --mist:  #63707A;
  --light: #EEF2F6;
  --cream: #F7F4F0;
  --white: #FFFFFF;
  --ink:   #1A2332;

  --measure: 740px;
  --nav-h: 72px;
}

*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;}
html{scroll-behavior:smooth;overflow-x:hidden;}
body{
  font-family:'DM Sans',sans-serif;
  background:var(--cream);
  color:var(--ink);
  overflow-x:hidden;
  cursor:none;
  -webkit-font-smoothing:antialiased;
}

/* Anchor offset so H2 targets clear the fixed nav */
[id]{scroll-margin-top:calc(var(--nav-h) + 24px);}

/* --------------------------------------------------------------------------
   Reveal animation — gated behind html.js.
   Without JS the text is simply visible. Article prose is NEVER given
   .reveal; only hero blocks and card grids animate.
   -------------------------------------------------------------------------- */
html.js .reveal{opacity:0;}

/* --------------------------------------------------------------------------
   Custom cursor (body has cursor:none, so these are mandatory)
   -------------------------------------------------------------------------- */
#cur{position:fixed;width:12px;height:12px;background:var(--red);border-radius:50%;pointer-events:none;z-index:9999;transform:translate(-50%,-50%);transition:transform 0.12s;}
#cur-ring{position:fixed;width:40px;height:40px;border:1.5px solid var(--red);border-radius:50%;pointer-events:none;z-index:9998;transform:translate(-50%,-50%);opacity:0.4;transition:opacity 0.2s,transform 0.2s;}

@media (pointer:coarse){
  body{cursor:auto;}
  #cur,#cur-ring{display:none;}
}

::selection{background:rgba(200,71,74,0.18);color:var(--ink);}

/* --------------------------------------------------------------------------
   NAV — matches website-development/index.html:79-86

   MUST stay scoped to `body > nav`. An article contains three <nav> elements:
   this site header, <nav class="breadcrumb"> and <nav class="toc">. A bare
   `nav` selector here pins all three to top:0 as fixed 72px flex bars, which
   throws the table of contents over the article title.
   -------------------------------------------------------------------------- */
body > nav{position:fixed;top:0;left:0;right:0;z-index:500;padding:0 48px;display:flex;align-items:center;justify-content:space-between;height:var(--nav-h);background:rgba(247,244,240,0.95);backdrop-filter:blur(20px);border-bottom:1px solid rgba(46,64,87,0.1);}
.nav-logo{display:flex;align-items:center;gap:10px;text-decoration:none;}
.nav-logo img{height:32px;width:auto;}
.nav-right{display:flex;align-items:center;gap:22px;}
.nav-back{font-size:13px;font-weight:500;letter-spacing:0.04em;color:var(--navy);text-decoration:none;display:inline-flex;align-items:center;gap:8px;transition:color 0.2s;}
.nav-back:hover{color:var(--red);}
.nav-cta-sm{background:var(--red);color:#fff;font-size:13px;font-weight:600;letter-spacing:0.05em;text-transform:uppercase;text-decoration:none;padding:10px 24px;border-radius:2px;transition:background 0.2s,transform 0.2s;white-space:nowrap;}
.nav-cta-sm:hover{background:var(--red2);transform:translateY(-1px);}

/* Language switch */
.lang-switch{font-size:12px;font-weight:600;letter-spacing:0.08em;text-transform:uppercase;color:var(--navy);text-decoration:none;border:1px solid rgba(46,64,87,0.2);border-radius:2px;padding:7px 13px;transition:all 0.2s;white-space:nowrap;}
.lang-switch:hover{color:var(--red);border-color:var(--red);}

@media(max-width:760px){
  body > nav{padding:0 20px;}
  .nav-right{gap:12px;}
  .nav-back span{display:none;}
  .nav-cta-sm{padding:9px 16px;font-size:12px;}
}

/* Very narrow phones — the Arabic CTA ("تواصل مع فيرا") is the widest case */
@media(max-width:400px){
  body > nav{padding:0 14px;}
  .nav-right{gap:8px;}
  .nav-logo img{height:26px;}
  .nav-cta-sm{padding:9px 12px;font-size:11px;letter-spacing:0.03em;}
  .lang-switch{padding:7px 9px;font-size:11px;letter-spacing:0.04em;}
}

/* Touch devices: meet the 44px minimum target height */
@media (pointer:coarse){
  .lang-switch{min-height:44px;display:inline-flex;align-items:center;}
  .nav-cta-sm{min-height:44px;display:inline-flex;align-items:center;}
  .nav-back{min-height:44px;}
}

/* --------------------------------------------------------------------------
   Shared primitives (carried over from the landing pages)
   -------------------------------------------------------------------------- */
.container{max-width:1200px;margin:0 auto;}
.wrap{max-width:var(--measure);margin:0 auto;}
.eyebrow{font-size:10px;font-weight:700;letter-spacing:0.2em;text-transform:uppercase;color:var(--red);display:flex;align-items:center;gap:10px;margin-bottom:18px;}
.eyebrow::after{content:'';flex:1;max-width:36px;height:1px;background:var(--red);}
.eyebrow-center{justify-content:center;}
.eyebrow-center::after{display:none;}
.big-title{font-family:'Bebas Neue',sans-serif;font-size:clamp(2.6rem,6vw,5rem);line-height:0.95;color:var(--navy);letter-spacing:0.01em;}
.big-title em{font-family:'Instrument Serif',serif;font-style:italic;color:var(--red);}

/* --------------------------------------------------------------------------
   ARTICLE HEADER
   -------------------------------------------------------------------------- */
.art-head{padding:calc(var(--nav-h) + 56px) 48px 0;}
.breadcrumb{max-width:var(--measure);margin:0 auto 28px;font-size:12.5px;color:var(--mist);display:flex;flex-wrap:wrap;align-items:center;gap:8px;}
.breadcrumb a{color:var(--slate);text-decoration:none;transition:color 0.2s;}
.breadcrumb a:hover{color:var(--red);}
.breadcrumb span[aria-hidden]{opacity:0.5;}
.breadcrumb .bc-current{color:var(--mist);}

.art-kicker{font-size:10px;font-weight:700;letter-spacing:0.2em;text-transform:uppercase;color:var(--red);margin-bottom:16px;}
.art-title{font-family:'Bebas Neue',sans-serif;font-size:clamp(2.4rem,5.4vw,4.2rem);line-height:1.0;color:var(--navy);letter-spacing:0.01em;margin-bottom:22px;}
.art-title em{font-family:'Instrument Serif',serif;font-style:italic;color:var(--red);}
.art-standfirst{font-size:clamp(1.05rem,1.8vw,1.2rem);line-height:1.7;color:var(--slate);margin-bottom:30px;}

.art-meta{display:flex;flex-wrap:wrap;align-items:center;gap:10px 18px;font-size:13px;color:var(--mist);padding-bottom:36px;border-bottom:1px solid rgba(46,64,87,0.12);}
.art-meta .am-author{color:var(--navy);font-weight:600;}
.art-meta .am-dot{opacity:0.45;}

@media(max-width:760px){.art-head{padding:calc(var(--nav-h) + 36px) 20px 0;}}

/* --------------------------------------------------------------------------
   ARTICLE BODY
   -------------------------------------------------------------------------- */
.art-body{padding:0 48px 40px;}
.art-body .wrap > *{max-width:var(--measure);}

.art-body h2{
  font-family:'Bebas Neue',sans-serif;
  font-size:clamp(1.8rem,3.4vw,2.5rem);
  line-height:1.08;
  color:var(--navy);
  letter-spacing:0.01em;
  margin:64px 0 18px;
}
.art-body h2 em{font-family:'Instrument Serif',serif;font-style:italic;color:var(--red);}
.art-body h3{
  font-family:'DM Sans',sans-serif;
  font-size:1.18rem;
  font-weight:700;
  line-height:1.35;
  color:var(--navy);
  margin:38px 0 12px;
}
.art-body h4{font-size:1rem;font-weight:700;color:var(--navy);margin:28px 0 10px;}

.art-body p{font-size:16.5px;line-height:1.8;color:var(--ink);margin-bottom:20px;}
.art-body p strong{color:var(--navy);font-weight:600;}
.art-body a:not(.btn-hp):not(.rel-card):not(.cta-btn){color:var(--navy);text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px;text-decoration-color:rgba(200,71,74,0.45);transition:color 0.2s;}
.art-body a:not(.btn-hp):not(.rel-card):not(.cta-btn):hover{color:var(--red);text-decoration-color:var(--red);}

/* The answer-first paragraph under each H2 — the block built to be quoted */
.answer{
  font-size:17.5px !important;
  line-height:1.72 !important;
  color:var(--navy) !important;
  font-weight:500;
  background:var(--white);
  border-left:3px solid var(--red);
  border-radius:0 6px 6px 0;
  padding:20px 26px;
  margin-bottom:26px !important;
  box-shadow:0 10px 30px rgba(46,64,87,0.05);
}

/* List items must NOT be flex containers. Body copy uses the pattern
   `<li><strong>Label.</strong> explanation…</li>`, and under display:flex the
   <strong> and the text node each become separate flex items — rendering as
   side-by-side columns instead of one wrapped sentence. The marker is
   positioned absolutely so the text stays normal inline flow. */
.art-body ul,.art-body ol{margin:0 0 24px;padding-left:0;list-style:none;}
.art-body ul li{font-size:16.5px;line-height:1.75;color:var(--ink);margin-bottom:12px;position:relative;padding-left:19px;}
.art-body ul li::before{content:'';position:absolute;left:0;top:0.72em;width:6px;height:6px;border-radius:50%;background:var(--red);}
.art-body ol{counter-reset:vlist;}
.art-body ol li{font-size:16.5px;line-height:1.75;color:var(--ink);margin-bottom:14px;counter-increment:vlist;position:relative;padding-left:32px;}
.art-body ol li::before{content:counter(vlist);position:absolute;left:0;top:0;width:20px;text-align:right;font-family:'Bebas Neue',sans-serif;font-size:1rem;line-height:1.85;color:var(--red);}
.art-body li strong{color:var(--navy);font-weight:600;}

/* Callout — mirrors .tl-note from website-development */
.note{
  background:var(--white);
  border-left:3px solid var(--red);
  border-radius:0 6px 6px 0;
  padding:22px 28px;
  margin:36px 0;
  font-size:15.5px;
  line-height:1.72;
  color:var(--navy);
  box-shadow:0 12px 40px rgba(46,64,87,0.06);
}
.note strong{font-weight:700;}
.note.note-navy{background:var(--navy);border-left-color:var(--red);color:rgba(255,255,255,0.82);}
.note.note-navy strong{color:#fff;}

blockquote{
  margin:40px 0;
  padding:0 0 0 26px;
  border-left:2px solid var(--red);
  font-family:'Instrument Serif',serif;
  font-style:italic;
  font-size:1.4rem;
  line-height:1.5;
  color:var(--navy);
}

/* --------------------------------------------------------------------------
   KEY TAKEAWAYS — the most extractable block on the page
   -------------------------------------------------------------------------- */
.takeaways{
  background:var(--navy);
  border-radius:8px;
  padding:34px 36px;
  margin:44px 0 52px;
}
.takeaways h2{
  font-family:'Bebas Neue',sans-serif !important;
  font-size:1.35rem !important;
  letter-spacing:0.08em;
  color:#fff !important;
  margin:0 0 20px !important;
  display:flex;align-items:center;gap:11px;
}
.takeaways h2::before{content:'';width:22px;height:2px;background:var(--red);flex-shrink:0;}
.takeaways ul{margin:0;}
.takeaways ul li{font-size:15.5px;line-height:1.7;color:rgba(255,255,255,0.8);margin-bottom:14px;}
.takeaways ul li:last-child{margin-bottom:0;}
.takeaways ul li::before{background:var(--red);top:0.66em;}
.takeaways ul li strong{color:#fff;font-weight:600;}

@media(max-width:600px){.takeaways{padding:26px 22px;}}

/* --------------------------------------------------------------------------
   TABLE OF CONTENTS
   -------------------------------------------------------------------------- */
.toc{
  background:var(--white);
  border:1px solid rgba(46,64,87,0.1);
  border-radius:8px;
  padding:26px 30px;
  margin:0 0 56px;
}
.toc-label{font-size:10px;font-weight:700;letter-spacing:0.18em;text-transform:uppercase;color:var(--red);margin-bottom:16px;}
.toc ol{counter-reset:toc;margin:0;}
.toc ol li{margin-bottom:10px;counter-increment:toc;font-size:15px;line-height:1.55;position:relative;padding-left:32px;}
.toc ol li:last-child{margin-bottom:0;}
.toc ol li::before{content:counter(toc,decimal-leading-zero);position:absolute;left:0;top:0;width:22px;text-align:right;font-family:'Bebas Neue',sans-serif;font-size:13px;color:var(--mist);line-height:1.75;}
.toc a{color:var(--navy);text-decoration:none;transition:color 0.2s;}
.toc a:hover{color:var(--red);}
.toc a.is-active{color:var(--red);font-weight:600;}

@media(max-width:600px){.toc{padding:22px 20px;}}

/* --------------------------------------------------------------------------
   CHARTS — inline SVG figures

   Palette is validated, not eyeballed (dataviz validate_palette.js):
     ordinal ramp --chart-1..6  slate -> navy, monotone lightness, adjacent
       dL >= 0.06, light end 2.06:1 against the cream surface, single hue
     2-series categorical        --red + --slate, CVD dE 12.5, normal-vision 21.0
   Slate is a deliberately muted brand blue and trips the chroma floor, so every
   series is ALSO direct-labelled and legended — identity is never colour-alone.
   Each chart's table-view twin is the <table> that follows it in the article.
   -------------------------------------------------------------------------- */
:root{
  --chart-1:#a8adb4; --chart-2:#8f97a1; --chart-3:#77818f;
  --chart-4:#5f6c7c; --chart-5:#46566a; --chart-6:#2e4057;
}
.chart{margin:36px 0;}
.chart-svg{
  display:block;
  width:100%;
  max-width:560px;
  height:auto;
  margin:0 auto;
  border:1px solid rgba(46,64,87,0.1);
  border-radius:8px;
  background:var(--cream);
}
.chart figcaption{
  max-width:560px;
  margin:12px auto 0;
  font-size:13px;
  line-height:1.6;
  color:var(--mist);
  text-align:center;
}
/* The chart renders identically in RTL — the SVG is generated mirrored, so the
   element itself must stay LTR or the browser would flip it twice. */
[dir="rtl"] .chart-svg{direction:ltr;}
[dir="rtl"] .chart figcaption{text-align:center;}

@media(max-width:600px){
  .chart{margin:28px 0;}
  .chart figcaption{font-size:12.5px;}
}

/* --------------------------------------------------------------------------
   TABLES — wrapped in .table-wrap for horizontal scroll on mobile
   -------------------------------------------------------------------------- */
.table-wrap{
  margin:36px 0;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
  border:1px solid rgba(46,64,87,0.12);
  border-radius:8px;
  background:var(--white);
  /* Right-edge fade that disappears once scrolled to the end — signals on
     narrow screens that the table scrolls sideways. */
  background-image:linear-gradient(to right,rgba(255,255,255,0) calc(100% - 44px),rgba(255,255,255,0.92) 100%);
  background-repeat:no-repeat;
  background-attachment:local,scroll;
}
.art-body table{border-collapse:collapse;width:100%;min-width:520px;font-size:14.5px;}
.art-body caption{
  caption-side:top;
  text-align:left;
  padding:18px 22px 0;
  font-size:12.5px;
  color:var(--mist);
  font-weight:500;
}
.art-body thead th{
  background:var(--navy);
  color:#fff;
  font-weight:600;
  font-size:12px;
  letter-spacing:0.08em;
  text-transform:uppercase;
  text-align:left;
  padding:14px 18px;
  white-space:nowrap;
}
.art-body tbody td,.art-body tbody th{
  padding:14px 18px;
  border-top:1px solid rgba(46,64,87,0.1);
  color:var(--ink);
  line-height:1.6;
  text-align:left;
  vertical-align:top;
}
.art-body tbody th{font-weight:600;color:var(--navy);}
.art-body tbody tr:nth-child(even){background:rgba(238,242,246,0.5);}
.art-body td strong{color:var(--navy);}

/* --------------------------------------------------------------------------
   FAQ — native <details> so it works with JS disabled
   -------------------------------------------------------------------------- */
.faq{margin:24px 0 0;}
.faq details{
  background:var(--white);
  border:1px solid rgba(46,64,87,0.1);
  border-radius:6px;
  margin-bottom:12px;
  overflow:hidden;
}
.faq summary{
  cursor:pointer;
  list-style:none;
  padding:20px 54px 20px 24px;
  font-size:16px;
  font-weight:600;
  color:var(--navy);
  line-height:1.5;
  position:relative;
  transition:color 0.2s;
}
.faq summary::-webkit-details-marker{display:none;}
.faq summary:hover{color:var(--red);}
.faq summary::after{
  content:'';
  position:absolute;
  right:24px;top:50%;
  width:10px;height:10px;
  border-right:2px solid var(--red);
  border-bottom:2px solid var(--red);
  transform:translateY(-70%) rotate(45deg);
  transition:transform 0.25s;
}
.faq details[open] summary::after{transform:translateY(-30%) rotate(-135deg);}
.faq details[open] summary{color:var(--red);}
.faq .faq-a{padding:0 24px 22px;}
.faq .faq-a p{font-size:15.5px;line-height:1.75;color:var(--slate);margin-bottom:12px;}
.faq .faq-a p:last-child{margin-bottom:0;}

/* --------------------------------------------------------------------------
   AUTHOR BOX (E-E-A-T)
   -------------------------------------------------------------------------- */
.author-box{
  display:flex;
  gap:20px;
  align-items:flex-start;
  background:var(--white);
  border:1px solid rgba(46,64,87,0.1);
  border-radius:8px;
  padding:28px 30px;
  margin:64px 0 0;
}
.author-box img{width:64px;height:64px;border-radius:50%;object-fit:cover;background:var(--light);flex-shrink:0;}
/* The bio rule below needs !important to beat .art-body p; name and role are
   more specific !important rules so they keep their own type. */
.author-box .ab-name{font-family:'Bebas Neue',sans-serif;font-size:1.5rem !important;line-height:1.15 !important;color:var(--navy) !important;letter-spacing:0.02em;margin-bottom:4px !important;}
.author-box .ab-role{font-size:12px !important;line-height:1.6 !important;letter-spacing:0.05em;text-transform:uppercase;color:var(--red) !important;font-weight:600;margin-bottom:12px !important;}
.author-box p{font-size:14.5px !important;line-height:1.7 !important;color:var(--slate) !important;margin-bottom:0 !important;}
.author-box .ab-link{margin-top:10px !important;}
.author-box .ab-link a{color:var(--red);font-weight:600;text-decoration:underline;text-underline-offset:4px;text-decoration-color:rgba(190,67,70,0.45);}
.author-box .ab-link a:hover{text-decoration-color:var(--red);}

@media(max-width:600px){.author-box{flex-direction:column;gap:14px;padding:24px 22px;}}

/* Sources list */
.sources{margin:48px 0 0;padding-top:28px;border-top:1px solid rgba(46,64,87,0.12);}
.sources .src-label{font-size:10px;font-weight:700;letter-spacing:0.18em;text-transform:uppercase;color:var(--mist);margin-bottom:14px;}
.sources ul li{font-size:13.5px;line-height:1.65;color:var(--slate);margin-bottom:9px;padding-left:16px;}
.sources ul li::before{width:4px;height:4px;background:var(--mist);top:0.62em;}

/* --------------------------------------------------------------------------
   RELATED ARTICLES
   -------------------------------------------------------------------------- */
.related{background:var(--light);padding:88px 48px;}
.related-head{max-width:var(--measure);margin:0 auto 36px;}
.related-head h2{font-family:'Bebas Neue',sans-serif;font-size:clamp(1.9rem,3.6vw,2.6rem);line-height:1;color:var(--navy);}
.rel-grid{max-width:var(--measure);margin:0 auto;display:grid;grid-template-columns:1fr;gap:16px;}
.rel-card{
  display:block;
  background:var(--white);
  border:1px solid rgba(46,64,87,0.1);
  border-radius:8px;
  padding:24px 26px;
  text-decoration:none;
  transition:transform 0.25s,box-shadow 0.25s,border-color 0.25s;
}
.rel-card:hover{transform:translateY(-3px);box-shadow:0 18px 44px rgba(46,64,87,0.1);border-color:rgba(200,71,74,0.35);}
.rel-card .rc-tag{font-size:10px;font-weight:700;letter-spacing:0.16em;text-transform:uppercase;color:var(--red);margin-bottom:9px;}
.rel-card .rc-title{font-size:17px;font-weight:600;line-height:1.4;color:var(--navy);margin-bottom:7px;}
.rel-card .rc-sub{font-size:14px;line-height:1.6;color:var(--slate);}

@media(max-width:760px){.related{padding:64px 20px;}}

/* --------------------------------------------------------------------------
   CTA BLOCK
   -------------------------------------------------------------------------- */
.art-cta{background:var(--navy);padding:96px 48px;text-align:center;}
.art-cta h2{font-family:'Bebas Neue',sans-serif;font-size:clamp(2.2rem,5vw,3.6rem);line-height:1;color:#fff;margin-bottom:20px;}
.art-cta h2 em{font-family:'Instrument Serif',serif;font-style:italic;color:#E57274;}
.art-cta p{font-size:16px;line-height:1.75;color:rgba(255,255,255,0.6);max-width:480px;margin:0 auto 36px;}
.cta-btn{
  display:inline-flex;align-items:center;gap:10px;
  background:var(--red);color:#fff;
  font-size:14px;font-weight:600;letter-spacing:0.06em;text-transform:uppercase;
  text-decoration:none;padding:17px 40px;border-radius:2px;
  transition:background 0.2s,transform 0.2s;
}
.cta-btn:hover{background:var(--red2);transform:translateY(-2px);}
.cta-link{display:block;width:fit-content;margin:22px auto 0;font-size:15px;font-weight:600;color:rgba(255,255,255,0.82);text-decoration:underline;text-underline-offset:5px;text-decoration-color:rgba(224,85,88,0.7);}
.cta-link:hover{color:#fff;text-decoration-color:var(--red2);}
.cta-link + .cta-note{margin-top:14px;}
.cta-note{font-size:13px;color:rgba(255,255,255,0.35);margin-top:22px;}

@media(max-width:760px){.art-cta{padding:72px 20px;}}

/* --------------------------------------------------------------------------
   BLOG INDEX
   -------------------------------------------------------------------------- */
.blog-hero{padding:calc(var(--nav-h) + 90px) 48px 70px;text-align:center;}
.blog-hero .big-title{margin-bottom:22px;}
.blog-hero .sec-sub{font-size:17px;color:var(--slate);max-width:620px;margin:0 auto;line-height:1.75;}

.blog-list{padding:0 48px 110px;}
.pillar-grid{max-width:1060px;margin:0 auto 20px;display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:20px;}
.post-grid{max-width:1060px;margin:0 auto;display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:20px;}

.post-card{
  display:flex;flex-direction:column;
  background:var(--white);
  border:1px solid rgba(46,64,87,0.1);
  border-radius:8px;
  padding:30px 30px 28px;
  text-decoration:none;
  transition:transform 0.25s,box-shadow 0.25s,border-color 0.25s;
}
.post-card:hover{transform:translateY(-4px);box-shadow:0 22px 52px rgba(46,64,87,0.1);border-color:rgba(200,71,74,0.35);}
.post-card .pc-tag{font-size:10px;font-weight:700;letter-spacing:0.16em;text-transform:uppercase;color:var(--red);margin-bottom:14px;display:flex;align-items:center;gap:9px;}
.post-card .pc-tag::after{content:'';flex:1;height:1px;background:rgba(200,71,74,0.25);}
.post-card h2,.post-card h3{font-family:'Bebas Neue',sans-serif;font-size:1.65rem;line-height:1.05;color:var(--navy);letter-spacing:0.01em;margin-bottom:12px;}
.post-card p{font-size:14.5px;line-height:1.7;color:var(--slate);margin-bottom:20px;flex:1;}
.post-card .pc-foot{font-size:12px;color:var(--mist);display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:16px;border-top:1px solid rgba(46,64,87,0.08);}
.post-card .pc-read{color:var(--red);font-weight:600;letter-spacing:0.04em;}

.post-card.is-pillar{background:var(--navy);border-color:var(--navy);}
.post-card.is-pillar h2,.post-card.is-pillar h3{color:#fff;}
.post-card.is-pillar p{color:rgba(255,255,255,0.62);}
.post-card.is-pillar .pc-tag{color:#EEA3A5;}
.post-card.is-pillar .pc-tag::after{background:rgba(224,85,88,0.35);}
.post-card.is-pillar .pc-foot{color:rgba(255,255,255,0.7);border-top-color:rgba(255,255,255,0.14);}
.post-card.is-pillar .pc-read{color:#EEA3A5;}

@media(max-width:760px){
  .blog-hero{padding:calc(var(--nav-h) + 56px) 20px 48px;}
  .blog-list{padding:0 20px 80px;}
}

/* --------------------------------------------------------------------------
   FOOTER — matches website-development/index.html:221-228
   -------------------------------------------------------------------------- */
footer{background:var(--navy);padding:36px 48px;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:16px;}
.foot-logo{display:flex;align-items:center;gap:12px;}
.foot-logo img{height:26px;opacity:0.6;}
.foot-logo span{color:rgba(255,255,255,0.7);font-size:14px;}
.foot-links{display:flex;flex-wrap:wrap;gap:20px;}
footer p{color:rgba(255,255,255,0.6);font-size:12px;}
footer a{color:rgba(255,255,255,0.7);font-size:12px;text-decoration:none;transition:color 0.2s;}
footer a:hover{color:#fff;}

@media(max-width:760px){
  footer{padding:32px 20px;flex-direction:column;text-align:center;gap:18px;}
  .foot-links{justify-content:center;gap:14px 20px;}
}

/* WhatsApp float */
.wa{position:fixed;bottom:28px;right:28px;width:54px;height:54px;background:#25D366;border-radius:50%;display:flex;align-items:center;justify-content:center;box-shadow:0 8px 28px rgba(37,211,102,0.4);z-index:400;transition:transform 0.2s;}
.wa:hover{transform:scale(1.08);}

/* --------------------------------------------------------------------------
   Article body padding on mobile
   -------------------------------------------------------------------------- */
@media(max-width:760px){
  .art-body{padding:0 20px 32px;}
  .art-body h2{margin:48px 0 16px;}
  .art-body p,.art-body ul li,.art-body ol li{font-size:17px;}
  .answer{padding:18px 20px;font-size:17px !important;}
  .note{padding:20px 22px;}
  .table-wrap{margin:28px 0;}
}

/* Keep the WhatsApp float clear of body text on narrow screens, and make sure
   it never covers the last line of the page. */
@media(max-width:600px){
  .wa{width:48px;height:48px;bottom:18px;right:18px;}
  .wa svg{width:24px;height:24px;}
  [dir="rtl"] .wa{right:auto;left:18px;}
  footer{padding-bottom:80px;}
}

/* ==========================================================================
   RTL / ARABIC
   ========================================================================== */
[dir="rtl"] body,
[dir="rtl"] .art-body p,
[dir="rtl"] .art-body li{font-family:'Tajawal',sans-serif;}

[dir="rtl"] .big-title,
[dir="rtl"] .art-title,
[dir="rtl"] .art-body h2,
[dir="rtl"] .takeaways h2,
[dir="rtl"] .related-head h2,
[dir="rtl"] .art-cta h2,
[dir="rtl"] .post-card h2,
[dir="rtl"] .post-card h3,
[dir="rtl"] .author-box .ab-name,
[dir="rtl"] blockquote{font-family:'Almarai',sans-serif;font-weight:800;letter-spacing:0;line-height:1.35;}

/* Arabic has no italic — the accent becomes colour + weight */
[dir="rtl"] .big-title em,
[dir="rtl"] .art-title em,
[dir="rtl"] .art-body h2 em,
[dir="rtl"] .art-cta h2 em{font-family:'Almarai',sans-serif;font-style:normal;font-weight:800;color:var(--red);}
[dir="rtl"] .art-cta h2 em{color:#E57274;}
[dir="rtl"] blockquote{font-style:normal;font-weight:700;font-size:1.25rem;}

/* Arabic display type needs more line-height than Bebas */
[dir="rtl"] .art-title{font-size:clamp(1.9rem,4.4vw,3.1rem);line-height:1.4;}
[dir="rtl"] .big-title{font-size:clamp(2rem,4.8vw,3.4rem);line-height:1.4;}
[dir="rtl"] .art-body h2{font-size:clamp(1.4rem,2.8vw,1.85rem);line-height:1.5;}
[dir="rtl"] .takeaways h2{font-size:1.15rem !important;line-height:1.5;}
[dir="rtl"] .post-card h2,[dir="rtl"] .post-card h3{font-size:1.2rem;line-height:1.5;}
[dir="rtl"] .related-head h2,[dir="rtl"] .art-cta h2{font-size:clamp(1.6rem,3.4vw,2.4rem);line-height:1.45;}
[dir="rtl"] .author-box .ab-name{font-size:1.15rem !important;line-height:1.5 !important;}
[dir="rtl"] .author-box .ab-role{font-size:13px !important;letter-spacing:0;}

/* Mirrored borders and bullets */
[dir="rtl"] .answer,
[dir="rtl"] .note{border-left:none;border-right:3px solid var(--red);border-radius:6px 0 0 6px;}
[dir="rtl"] blockquote{border-left:none;border-right:2px solid var(--red);padding:0 26px 0 0;}
/* Markers are absolutely positioned, so RTL swaps the padding and the offset */
[dir="rtl"] .art-body ul,[dir="rtl"] .art-body ol{padding-right:0;}

[dir="rtl"] .art-body ul li{padding-left:0;padding-right:19px;}
[dir="rtl"] .art-body ul li::before{left:auto;right:0;}
[dir="rtl"] .sources ul li{padding-left:0;padding-right:16px;}

[dir="rtl"] .art-body ol li{padding-left:0;padding-right:32px;}
[dir="rtl"] .art-body ol li::before{left:auto;right:0;text-align:left;line-height:2.1;}

[dir="rtl"] .toc ol li{padding-left:0;padding-right:32px;}
[dir="rtl"] .toc ol li::before{left:auto;right:0;text-align:left;line-height:2;}

/* Tables */
[dir="rtl"] .art-body thead th,
[dir="rtl"] .art-body tbody td,
[dir="rtl"] .art-body tbody th,
[dir="rtl"] .art-body caption{text-align:right;}

/* FAQ chevron */
[dir="rtl"] .faq summary{padding:20px 24px 20px 54px;}
[dir="rtl"] .faq summary::after{right:auto;left:24px;}

/* Eyebrow / tag rules */
[dir="rtl"] .post-card .pc-tag::after{transform:scaleX(-1);}
[dir="rtl"] .takeaways h2::before{order:-1;}

/* Nav arrow points the other way in RTL */
[dir="rtl"] .nav-back svg{transform:scaleX(-1);}

/* WhatsApp float moves to the left edge */
[dir="rtl"] .wa{right:auto;left:28px;}

/* Arabic reads slightly larger for the same optical size */
[dir="rtl"] .art-body p{font-size:17px;line-height:1.95;}
[dir="rtl"] .art-body ul li,[dir="rtl"] .art-body ol li{font-size:17px;line-height:1.9;}
[dir="rtl"] .answer{font-size:17.5px !important;line-height:1.9 !important;}
[dir="rtl"] .art-standfirst{line-height:1.9;}
[dir="rtl"] .takeaways ul li{font-size:16px;line-height:1.9;}
[dir="rtl"] .faq summary{font-size:16px;line-height:1.7;}
[dir="rtl"] .faq .faq-a p{font-size:16px;line-height:1.9;}
[dir="rtl"] .art-body ul li::before{margin-top:12px;}

/* Latin numerals/currency inside Arabic prose stay LTR */
[dir="rtl"] .ltr{direction:ltr;display:inline-block;unicode-bidi:isolate;}

/* --------------------------------------------------------------------------
   Print
   -------------------------------------------------------------------------- */
@media print{
  nav,.wa,.art-cta,.related,#cur,#cur-ring{display:none !important;}
  body{background:#fff;cursor:auto;}
  html.js .reveal{opacity:1 !important;}
  .art-body{padding:0;}
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto;}
  html.js .reveal{opacity:1 !important;transform:none !important;}
  *{transition-duration:0.01ms !important;animation-duration:0.01ms !important;}
}
