/* Dar Naba V13 | Global Almarai and project/logo contrast
   Loaded last on EVERY public/admin page. V12 features remain intact.
   Typeface loaded from Google Fonts; internet access is required for that CDN.
*/
:root{
  --dnm-display-ar:'Almarai',system-ui,sans-serif;
  --dnm-copy-ar:'Almarai',system-ui,sans-serif;
  --dnm-font-en:'Almarai',system-ui,sans-serif;
  --dnm-site-font:'Almarai',system-ui,sans-serif;
  --font-ar:'Almarai',system-ui,sans-serif;
  --font-en:'Almarai',system-ui,sans-serif;
  --font-body:'Almarai',system-ui,sans-serif;
  --font-display:'Almarai',system-ui,sans-serif;
}
/* High-specificity universal typography overcomes older important font shorthands
   without altering size, colour, line height, font weight or icon SVG content. */
html, html body,
html body :not(#dnm-v13-font-exemption-unused),
html body :not(#dnm-v13-font-exemption-unused)::before,
html body :not(#dnm-v13-font-exemption-unused)::after{
  font-family:var(--dnm-site-font)!important;
}
html body :is(input,textarea,button,select,option,fieldset,legend),
html body :is(input,textarea)::placeholder{
  font-family:var(--dnm-site-font)!important;
}
html[lang="ar"] body { letter-spacing:normal!important; }
/* Project composition: logical column one is text (right in RTL, left in LTR);
   column two is logo (left in RTL, right in LTR). No logo behind the heading. */
html[dir="rtl"] #projects.dnm-v9-sequential>a.project-card,
html[dir="ltr"] #projects.dnm-v9-sequential>a.project-card,
html[dir="rtl"] body.dnm-work-page .work-feature,
html[dir="ltr"] body.dnm-work-page .work-feature{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
  grid-template-rows:minmax(0,1fr)!important;
  column-gap:clamp(20px,5vw,92px)!important;
  direction:inherit!important;
  isolation:isolate!important;
  overflow:hidden!important;
  border:0!important;
  box-shadow:none!important;
}
html[dir="rtl"] #projects.dnm-v9-sequential>a.project-card,
html[dir="rtl"] body.dnm-work-page .work-feature{
  /* light desaturated sage at LEFT where original green logos appear */
  background:linear-gradient(90deg,#789690 0%,#375e70 30%,#173958 57%,#0a1d3c 100%)!important;
}
html[dir="ltr"] #projects.dnm-v9-sequential>a.project-card,
html[dir="ltr"] body.dnm-work-page .work-feature{
  background:linear-gradient(270deg,#789690 0%,#375e70 30%,#173958 57%,#0a1d3c 100%)!important;
}
/* Retain the dark chapter joins rather than a visible horizontal stripe. */
#projects.dnm-v9-sequential>a.project-card::before,
body.dnm-work-page .work-feature::after{
  background:linear-gradient(to bottom,#0a1d3c 0%,rgba(10,29,60,0) 24%,rgba(10,29,60,0) 75%,#0a1d3c 100%)!important;
  pointer-events:none!important;
}
html body #projects.dnm-v9-sequential>a.project-card>.project-meta,
html body.dnm-work-page .work-feature>div{
  grid-column:1!important;grid-row:1!important;
  position:relative!important;inset:auto!important;
  width:100%!important;max-width:100%!important;
  align-self:center!important;justify-self:stretch!important;
  z-index:5!important;min-width:0!important;
  text-align:start!important;overflow-wrap:anywhere!important;
}
html body #projects.dnm-v9-sequential>a.project-card>.project-art,
html body.dnm-work-page .work-feature>.work-picture{
  grid-column:2!important;grid-row:1!important;
  position:relative!important;inset:auto!important;
  min-width:0!important;width:100%!important;
  height:clamp(300px,55svh,660px)!important;
  max-height:70svh!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
  background:transparent!important;border:0!important;box-shadow:none!important;
  z-index:4!important;transform:none!important;overflow:visible!important;
}
/* Remove the obsolete glowing white oval behind every project logo. */
html body #projects.dnm-v9-sequential>a.project-card>.project-art::before,
html body #projects.dnm-v9-sequential>a.project-card>.project-art::after,
html body.dnm-work-page .work-feature .work-picture::before,
html body.dnm-work-page .work-feature .work-picture::after{
  content:none!important;display:none!important;background:none!important;
  box-shadow:none!important;filter:none!important;
}
html body #projects.dnm-v9-sequential>a.project-card .project-art img,
html body.dnm-work-page .work-feature .work-picture img,
html[dir="rtl"] body.dnm-work-page .work-feature .work-picture img,
html[dir="ltr"] body.dnm-work-page .work-feature .work-picture img{
  position:relative!important;inset:auto!important;
  display:block!important;width:100%!important;height:100%!important;
  max-width:100%!important;max-height:100%!important;
  padding:clamp(8px,2vw,30px)!important;margin:auto!important;
  object-fit:contain!important;object-position:center!important;
  -webkit-mask-image:none!important;mask-image:none!important;
  filter:none!important;transform:none!important;opacity:1!important;
}
/* ABOUT › 'Our Work Speaks': a real light backing across the whole project
   card, not a stark white radial blob. Logos remain true-colour and unmasked. */
html body.dnm-about-page [data-about-section="impact"]{
  background:linear-gradient(180deg,#f7fafc 0%,#eef3f4 54%,#f4f7fb 100%)!important;
  color:#17365c!important;
}
html body.dnm-about-page [data-about-section="impact"] :is(.dnm-about-title,.dnm-about-copy){
  color:#17365c!important;
}
html body.dnm-about-page .dnm-about-projects>a,
html body.dnm-about-page .dnm-about-projects>a:nth-child(n){
  background:linear-gradient(148deg,#fff 0%,#f5f9f8 42%,#e0eae6 100%)!important;
  border:0!important;box-shadow:none!important;outline:0!important;
  color:#0b2c4d!important;isolation:isolate!important;
}
html body.dnm-about-page .dnm-about-projects>a::before,
html body.dnm-about-page .dnm-about-projects>a::after{
  content:none!important;display:none!important;background:none!important;
}
html body.dnm-about-page .dnm-about-projects>a .dnm-about-workimage{
  position:absolute!important;inset:0!important;width:100%!important;
  height:100%!important;background:transparent!important;
  display:flex!important;justify-content:center!important;align-items:center!important;
  overflow:hidden!important;padding:0!important;
}
html body.dnm-about-page .dnm-about-projects>a .dnm-about-workimage img{
  position:relative!important;inset:auto!important;
  width:100%!important;height:82%!important;max-width:100%!important;
  max-height:82%!important;
  object-fit:contain!important;object-position:center!important;
  padding:clamp(14px,3.5vw,44px)!important;
  -webkit-mask-image:none!important;mask-image:none!important;
  filter:none!important;transform:none!important;
}
html body.dnm-about-page .dnm-about-projects>a strong{
  position:relative!important;z-index:3!important;
  color:#12345c!important;text-align:start!important;
  text-shadow:none!important;
}
/* Small screens: logo first, copy follows; no shared stacking/overlap. */
@media(max-width:760px){
 html[dir="rtl"] #projects.dnm-v9-sequential>a.project-card,
 html[dir="ltr"] #projects.dnm-v9-sequential>a.project-card,
 html[dir="rtl"] body.dnm-work-page .work-feature,
 html[dir="ltr"] body.dnm-work-page .work-feature{
   grid-template-columns:minmax(0,1fr)!important;
   grid-template-rows:minmax(230px,45svh) auto!important;
   row-gap:clamp(10px,2svh,28px)!important;
   min-height:clamp(590px,92svh,880px)!important;
   padding:clamp(80px,12svh,125px) clamp(22px,6vw,35px) clamp(70px,10svh,100px)!important;
   background:linear-gradient(to bottom,#779690 0%,#365c6c 41%,#153654 59%,#0a1d3c 100%)!important;
 }
 html body #projects.dnm-v9-sequential>a.project-card>.project-art,
 html body.dnm-work-page .work-feature>.work-picture{
   grid-column:1!important;grid-row:1!important;
   width:100%!important;height:100%!important;max-height:100%!important;
 }
 html body #projects.dnm-v9-sequential>a.project-card>.project-meta,
 html body.dnm-work-page .work-feature>div{
   grid-column:1!important;grid-row:2!important;
   width:100%!important;max-width:100%!important;
   align-self:start!important;
 }
 html body.dnm-about-page .dnm-about-projects>a{min-height:clamp(330px,102vw,480px)!important}
}
@media(prefers-reduced-motion:reduce){
 html body.dnm-about-page .dnm-about-projects>a .dnm-about-workimage img{transition:none!important}
}
