/* Final visual polish: Arabic typography + premium light theme. Loaded last. */

/* Arabic rhythm and GE SS Two treatment */
html[dir="rtl"] body{
  font-family:var(--font-arabic)!important;
  line-height:1.85;
}
html[dir="rtl"] .site-header .brand-copy strong{font-size:14px!important;font-weight:700!important;}
html[dir="rtl"] .site-header .brand-copy small{font-size:10px!important;letter-spacing:0!important;}
html[dir="rtl"] .site-header .site-nav a,
html[dir="rtl"] .site-header .language-link{font-size:12px!important;font-weight:600!important;letter-spacing:0!important;}
html[dir="rtl"] .v4-hero-copy h1{line-height:1.22!important;letter-spacing:0!important;font-weight:700!important;}
html[dir="rtl"] .v4-title{font-size:17px!important;line-height:1.6!important;letter-spacing:0!important;}
html[dir="rtl"] .v4-lead{font-size:15px!important;line-height:1.95!important;}
html[dir="rtl"] .v4-kicker{font-size:11px!important;line-height:1.7!important;letter-spacing:0!important;}
html[dir="rtl"] .v4-section-head h2{line-height:1.35!important;letter-spacing:0!important;}
html[dir="rtl"] .v4-section-head>span{font-size:10px!important;line-height:1.8!important;letter-spacing:0!important;}
html[dir="rtl"] .v4-section-intro{font-size:13px!important;line-height:1.95!important;}
html[dir="rtl"] .v4-profile-copy p,
html[dir="rtl"] .v4-profile-copy p:first-child{font-size:13.5px!important;line-height:2!important;}
html[dir="rtl"] .v4-profile-pillars h3{font-size:18px!important;line-height:1.55!important;}
html[dir="rtl"] .v4-profile-pillars p{font-size:11.5px!important;line-height:1.9!important;}
html[dir="rtl"] .v4-timeline-item h3{font-size:17px!important;line-height:1.55!important;}
html[dir="rtl"] .v4-timeline-item strong{font-size:11.5px!important;line-height:1.65!important;}
html[dir="rtl"] .v4-timeline-item p{font-size:11.5px!important;line-height:1.9!important;}
html[dir="rtl"] .v4-company-sector,
html[dir="rtl"] .enriched-company-sector,
html[dir="rtl"] .company-sector-overlay{letter-spacing:0!important;text-transform:none!important;}
html[dir="rtl"] .v4-company-copy h3{font-size:18px!important;line-height:1.5!important;}
html[dir="rtl"] .v4-company-copy>p{font-size:11.5px!important;line-height:1.9!important;}
html[dir="rtl"] .v4-achievement-copy h3{font-size:19px!important;line-height:1.55!important;}
html[dir="rtl"] .v4-achievement-copy p{font-size:11.5px!important;line-height:1.9!important;}
html[dir="rtl"] .approved-companies-hero p,
html[dir="rtl"] .enriched-page-hero p{font-size:14px!important;line-height:2!important;}
html[dir="rtl"] .enriched-company-summary,
html[dir="rtl"] .enriched-company-impact li,
html[dir="rtl"] .experience-context-box p,
html[dir="rtl"] .experience-mandate p,
html[dir="rtl"] .experience-delivery li{font-size:11.5px!important;line-height:1.95!important;}
html[dir="rtl"] .enriched-company-content h2,
html[dir="rtl"] .enriched-experience-body>h2{line-height:1.5!important;letter-spacing:0!important;}

/* Three-company homepage presentation */
.enriched-home .v4-company-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:16px!important;}
.enriched-home .v4-company-card{height:100%;}
.enriched-home .v4-company-copy{min-height:230px!important;}
.enriched-home .v4-company-copy>p{-webkit-line-clamp:6!important;}

/* Premium light theme. The dark theme remains the executive navy version. */
html[data-theme="light"] body{
  background:#f4f2ec!important;
  color:#102536!important;
}
html[data-theme="light"] .site-header{
  background:rgba(249,248,244,.94)!important;
  border-bottom:1px solid rgba(16,37,54,.12)!important;
  box-shadow:0 8px 28px rgba(20,43,58,.06)!important;
}
html[data-theme="light"] .site-header .editorial-wordmark{color:#a77a25!important;}
html[data-theme="light"] .site-header .brand-copy strong{color:#102536!important;}
html[data-theme="light"] .site-header .brand-copy small{color:#6f818a!important;}
html[data-theme="light"] .site-header .site-nav a,
html[data-theme="light"] .site-header .language-link{color:#263f4e!important;}
html[data-theme="light"] .site-header .site-nav a:hover{color:#9b711f!important;}
html[data-theme="light"] .site-header .editorial-nav-contact{
  color:#805d1f!important;
  border-color:#c49a47!important;
  background:rgba(220,184,107,.08)!important;
}
html[data-theme="light"] .theme-toggle{
  background:#fff!important;
  border-color:rgba(16,37,54,.18)!important;
  color:#243e4c!important;
}

html[data-theme="light"] .home-v4{background:#f4f2ec!important;color:#102536!important;}
html[data-theme="light"] .v4-hero{
  background:
    radial-gradient(circle at 78% 18%,rgba(111,168,199,.26) 0,rgba(207,226,235,.38) 26%,transparent 52%),
    linear-gradient(135deg,#fbfaf6 0%,#eef3f4 58%,#e5ecef 100%)!important;
  border-bottom:1px solid rgba(16,37,54,.12)!important;
}
html[data-theme="light"] .v4-hero:before{
  background:linear-gradient(90deg,rgba(255,255,255,.32),rgba(255,255,255,0) 48%,rgba(255,255,255,.18))!important;
}
html[data-theme="light"] .v4-city{opacity:.10!important;filter:saturate(.65) contrast(.92)!important;}
html[data-theme="light"] .v4-kicker{color:#a57924!important;}
html[data-theme="light"] .v4-kicker:after{background:#bd9140!important;}
html[data-theme="light"] .v4-hero-copy h1{color:#102536!important;}
html[data-theme="light"] .v4-title{color:#9b711f!important;}
html[data-theme="light"] .enriched-home .v4-lead{color:#465e6b!important;}
html[data-theme="light"] .v4-btn{
  color:#183446!important;
  border-color:#b88c38!important;
  background:rgba(255,255,255,.56)!important;
}
html[data-theme="light"] .v4-btn:hover{background:#fff!important;box-shadow:0 8px 22px rgba(28,53,69,.08)!important;}
html[data-theme="light"] .v4-btn-primary{
  background:linear-gradient(135deg,#e7c77d,#c69a43)!important;
  color:#102536!important;
  box-shadow:0 12px 28px rgba(173,128,42,.18)!important;
}
html[data-theme="light"] .v4-metrics{
  border-top:1px solid rgba(16,37,54,.13)!important;
  background:rgba(255,255,255,.44)!important;
  backdrop-filter:blur(8px);
}
html[data-theme="light"] .v4-metrics>div{border-inline-end-color:rgba(16,37,54,.12)!important;}
html[data-theme="light"] .v4-metrics strong{color:#9b711f!important;}
html[data-theme="light"] .v4-metrics span{color:#5d717c!important;}

html[data-theme="light"] .v4-section{border-bottom-color:rgba(16,37,54,.10)!important;}
html[data-theme="light"] .v4-profile-section{
  background:linear-gradient(180deg,#faf9f5,#f1f4f3)!important;
}
html[data-theme="light"] .v4-section-head h2{color:#102536!important;}
html[data-theme="light"] .v4-section-head h2:after{background:#bd9140!important;}
html[data-theme="light"] .v4-section-head>span{color:#748791!important;}
html[data-theme="light"] .v4-section-intro{color:#5d707b!important;}
html[data-theme="light"] .v4-profile-copy p{color:#506671!important;}
html[data-theme="light"] .v4-profile-copy p:first-child{color:#203a49!important;}
html[data-theme="light"] .v4-profile-pillars article{
  border-color:rgba(19,42,56,.11)!important;
  background:linear-gradient(145deg,#ffffff,#f7f8f5)!important;
  box-shadow:0 14px 34px rgba(26,49,63,.07)!important;
}
html[data-theme="light"] .v4-profile-pillars article>span{color:#a77a25!important;}
html[data-theme="light"] .v4-profile-pillars h3{color:#173243!important;}
html[data-theme="light"] .v4-profile-pillars p{color:#60737d!important;}

html[data-theme="light"] .v4-experience{
  background:linear-gradient(180deg,#f1f4f3,#fbfaf7)!important;
}
html[data-theme="light"] .v4-timeline{border-top-color:rgba(16,37,54,.22)!important;}
html[data-theme="light"] .v4-timeline-item:not(:last-child){border-inline-end-color:rgba(16,37,54,.10)!important;}
html[data-theme="light"] .v4-timeline-item i{background:#f6f4ed!important;border-color:#b88a35!important;}
html[data-theme="light"] .v4-timeline-item time{color:#9b711f!important;}
html[data-theme="light"] .v4-timeline-item h3{color:#102536!important;}
html[data-theme="light"] .v4-timeline-item strong{color:#31566d!important;}
html[data-theme="light"] .v4-timeline-item small{color:#7b8e98!important;}
html[data-theme="light"] .v4-timeline-item p{color:#5a6e79!important;}
html[data-theme="light"] .v4-section-link a{color:#91691d!important;border-bottom-color:rgba(145,105,29,.35)!important;}

html[data-theme="light"] .v4-companies{
  background:linear-gradient(180deg,#edf2f3 0%,#f8f8f4 100%)!important;
}
html[data-theme="light"] .v4-company-card{
  background:#fff!important;
  border-color:rgba(16,37,54,.11)!important;
  box-shadow:0 15px 34px rgba(27,53,68,.07)!important;
}
html[data-theme="light"] .v4-company-card:hover{border-color:rgba(176,132,47,.44)!important;}
html[data-theme="light"] .v4-company-top{border-bottom-color:rgba(16,37,54,.10)!important;}
html[data-theme="light"] .v4-company-sector{color:#788a94!important;}
html[data-theme="light"] .v4-company-copy h3{color:#102536!important;}
html[data-theme="light"] .v4-company-copy>strong{color:#9b711f!important;}
html[data-theme="light"] .v4-company-copy>small{color:#7c8e97!important;}
html[data-theme="light"] .v4-company-copy>p{color:#566b76!important;}

html[data-theme="light"] .v4-achievements{background:#fbfaf7!important;}
html[data-theme="light"] .v4-achievement-card{
  background:#fff!important;
  border-color:rgba(16,37,54,.11)!important;
  box-shadow:0 15px 34px rgba(27,53,68,.07)!important;
}
html[data-theme="light"] .v4-achievement-copy>span{color:#758b96!important;}
html[data-theme="light"] .v4-achievement-copy h3{color:#102536!important;}
html[data-theme="light"] .v4-achievement-copy strong{color:#9b711f!important;}
html[data-theme="light"] .v4-achievement-copy p{color:#596e79!important;}

/* Keep one deliberate dark executive band in light mode. */
html[data-theme="light"] .v4-cta{
  background:linear-gradient(90deg,#0b283d,#123f59 58%,#071d2d)!important;
}
html[data-theme="light"] .v4-cta h2{color:#fff!important;}
html[data-theme="light"] .v4-cta p{color:#c8d5dc!important;}
html[data-theme="light"] .v4-cta .v4-kicker{color:#f0d18d!important;}
html[data-theme="light"] .v4-cta .v4-btn{color:#fff!important;background:rgba(255,255,255,.04)!important;}
html[data-theme="light"] .v4-cta .v4-btn-primary{color:#102536!important;background:linear-gradient(135deg,#f1d99c,#d7aa52)!important;}

html[data-theme="light"] .v4-contact-form-section{background:#eef2f2!important;}
html[data-theme="light"] .v4-contact-copy h2{color:#102536!important;}
html[data-theme="light"] .v4-contact-copy p{color:#5f737d!important;}
html[data-theme="light"] .v4-contact-links a{color:#29495b!important;}
html[data-theme="light"] .v4-contact-form-section .contact-panel{
  background:#fff!important;
  color:#102536!important;
  border:1px solid rgba(16,37,54,.10)!important;
  box-shadow:0 18px 45px rgba(24,49,65,.08)!important;
}

/* Full companies page in light mode */
html[data-theme="light"] .approved-companies,
html[data-theme="light"] .portfolio-page{background:#f4f2ec!important;color:#102536!important;}
html[data-theme="light"] .approved-companies-hero{background:linear-gradient(135deg,#f9f8f4,#eaf0f1)!important;}
html[data-theme="light"] .approved-companies-hero h1{color:#102536!important;}
html[data-theme="light"] .approved-companies-hero p{color:#536974!important;}
html[data-theme="light"] .enriched-company-card{
  background:linear-gradient(145deg,#ffffff,#f7f8f5)!important;
  border-color:rgba(16,37,54,.11)!important;
  box-shadow:0 18px 42px rgba(24,48,63,.07)!important;
}
html[data-theme="light"] .enriched-company-sector{color:#71858f!important;}
html[data-theme="light"] .enriched-company-content h2{color:#102536!important;}
html[data-theme="light"] .approved-company-roles span{background:#eef2f2!important;color:#29485a!important;}
html[data-theme="light"] .approved-company-meta{color:#9b711f!important;}
html[data-theme="light"] .enriched-company-summary{color:#566c77!important;}
html[data-theme="light"] .enriched-company-impact{border-top-color:rgba(16,37,54,.10)!important;}
html[data-theme="light"] .enriched-company-impact>span{color:#9b711f!important;}
html[data-theme="light"] .enriched-company-impact ul{color:#566c77!important;}
html[data-theme="light"] .approved-company-link{color:#8e671e!important;}
html[data-theme="light"] .approved-company-link.muted{color:#6e818b!important;}

/* Experience and content pages */
html[data-theme="light"] .experience-context-box{
  background:#fbf5e7!important;
  border-inline-start-color:#bd9140!important;
}
html[data-theme="light"] .experience-context-box>span,
html[data-theme="light"] .experience-mandate>span,
html[data-theme="light"] .experience-delivery>span{color:#91691d!important;}
html[data-theme="light"] .experience-context-box p,
html[data-theme="light"] .experience-mandate p{color:#536974!important;}
html[data-theme="light"] .enriched-experience-entry .experience-meta em{color:#748791!important;}
html[data-theme="light"] .experience-closing{
  border-color:rgba(255,255,255,.10)!important;
  background:linear-gradient(135deg,#0b3049,#071d2d)!important;
  box-shadow:0 18px 45px rgba(24,48,63,.10)!important;
}
html[data-theme="light"] .experience-closing h2{color:#fff!important;}
html[data-theme="light"] .experience-closing p{color:#c5d2d9!important;}

html[data-theme="light"] .site-footer{
  background:#0a1d2a!important;
  border-top-color:rgba(255,255,255,.08)!important;
}
html[data-theme="light"] .site-footer a,
html[data-theme="light"] .site-footer p,
html[data-theme="light"] .site-footer span{color:#b8c7cf!important;}

@media(max-width:900px){
  .enriched-home .v4-company-grid{grid-template-columns:1fr 1fr!important;}
  html[dir="rtl"] .v4-hero-copy h1{font-size:clamp(42px,11vw,62px)!important;}
}

@media(max-width:620px){
  .enriched-home .v4-company-grid{grid-template-columns:1fr!important;}
  .enriched-home .v4-company-copy{min-height:0!important;}
  html[dir="rtl"] .v4-hero-copy h1{font-size:42px!important;line-height:1.3!important;}
  html[dir="rtl"] .v4-lead{font-size:14px!important;line-height:1.95!important;}
  html[dir="rtl"] .v4-section-head h2{font-size:29px!important;}
}


/* Responsive brand behavior */
.responsive-monogram {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 54px;
    min-height: 54px;
}

    .responsive-monogram .monogram-default,
    .responsive-monogram .monogram-compact {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .responsive-monogram .monogram-compact {
        display: none;
        width: 42px;
        height: 42px;
        border: 1px solid currentColor;
        border-radius: 10px;
        font-size: 15px;
        font-weight: 800;
        letter-spacing: .04em;
        line-height: 1;
    }

.brand-copy .brand-name-short {
    display: none;
}

@media (max-width: 1180px) {
    .brand-copy .brand-name-full {
        display: none;
    }

    .brand-copy .brand-name-short {
        display: inline;
    }
}

@media (max-width: 760px) {
    .site-header .brand-copy small {
        display: none;
    }
}

@media (max-width: 560px) {
    .site-header .brand-copy {
        display: none;
    }

    .responsive-monogram .monogram-default {
        display: none;
    }

    .responsive-monogram .monogram-compact {
        display: inline-flex;
    }

    .site-header .editorial-brand {
        gap: 0 !important;
    }
}

/* Arabic fine tuning */
html[dir="rtl"] .brand-copy .brand-name-full,
html[dir="rtl"] .brand-copy .brand-name-short {
    letter-spacing: 0 !important;
}
