div:has(> .initiative-logo-frame) {background:#fdfdf8;}

.initiative-logo-frame {
    --logo-ratio:1;
    display:block; position:relative; flex:none; overflow:hidden;
    max-width:100%; aspect-ratio:var(--logo-ratio);
}
.initiative-logo-frame[data-placement="card"] {height:100%; max-height:170px;}
.initiative-logo-frame[data-placement="detail"] {width:min(100%,calc(280px * var(--logo-ratio)));}

.initiative-logo-frame img {
    display:block; width:100%; height:100%; object-fit:contain; pointer-events:none;
}
/* Crop only the measured paper margins of these specific source files. */
.initiative-logo-frame[data-art] img {
    position:absolute; width:var(--image-width,100%); height:auto; max-width:none;
    left:var(--image-left,0%); top:var(--image-top,0%);
}
.initiative-logo-frame[data-art="aman"] {
    --logo-ratio:.75; --image-width:314.96%; --image-left:-107.48%; --image-top:-10.34%;
}
.initiative-logo-frame[data-art="basma"] {
    --logo-ratio:.75; --image-width:106.13%; --image-left:-3.11%; --image-top:-3%;
}
.initiative-logo-frame[data-art="ehdena"] {
    --logo-ratio:.7811; --image-width:152.23%; --image-left:-26.75%; --image-top:-6.96%;
}
.initiative-logo-frame[data-art="futuwwa"] {
    --logo-ratio:.78495; --image-width:132.19%; --image-left:-18.49%; --image-top:-3.76%;
    mix-blend-mode:multiply;
}
.initiative-logo-frame[data-art="hayat"] {
    --logo-ratio:1.373; --image-width:123.46%; --image-left:-11.73%; --image-top:-34.58%;
    mix-blend-mode:multiply;
}
.initiative-logo-frame[data-art="digital-awareness"] {
    --logo-ratio:.645; --image-width:133.88%; --image-left:-16.94%; --image-top:-27.18%;
    mix-blend-mode:multiply;
}
.initiative-logo-frame[data-art="digital-awareness"] img {filter:brightness(1.15);}
/* Use the same introduction, logo panel, and goal icons as the other initiatives. */
[data-initiative-profile] {
    --profile-ink:#0b674e; --profile-border:#d2e4db; --profile-paper:#f4f8f5;
    --profile-gold:#805b20; --profile-gold-line:#eadcbd; --profile-gold-paper:#fbf7ed;
    display:grid; grid-template-columns:1fr; align-items:stretch;
}
[data-initiative-profile="night"] {
    --profile-ink:#89d7b4; --profile-border:#34534a; --profile-paper:#182e2b;
    --profile-gold:#f0c87d; --profile-gold-line:#584c38; --profile-gold-paper:#2b2926;
}
[data-initiative-profile]>div {min-width:0; width:auto;}
.profile-overview>p {margin-block:0 1.1rem;}
.profile-detail {padding:.8rem 1rem; border:1px solid var(--profile-border); border-radius:.85rem; background:var(--profile-paper);}
.profile-detail+.profile-detail {margin-block-start:.7rem;}
.profile-detail h3 {margin-block:0 .35rem; font-size:1.05rem; color:var(--profile-ink);}
.profile-detail:nth-of-type(2) {background:var(--profile-gold-paper); border-color:var(--profile-gold-line);}
.profile-detail:nth-of-type(2) h3 {color:var(--profile-gold);}
.profile-detail p,.profile-goals li {line-height:1.85;}
.profile-goals {grid-column:1/-1; padding:clamp(1.5rem,3vw,2.5rem) clamp(1.5rem,4vw,3rem); border-block-start:1px solid var(--profile-border);}
.profile-goals ol {padding:0; margin:1rem 0 0; list-style:none; display:grid; gap:.65rem 2rem;}
.profile-goals li {display:flex; align-items:flex-start; gap:.7rem;}
.profile-goals li svg {flex:none; margin-block-start:.35rem; color:var(--profile-ink);}
@media(min-width:768px) {
    [data-initiative-profile] {grid-template-columns:repeat(2,minmax(0,1fr));}
    .profile-goals ol {grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:767px) {
    [data-initiative-profile]>div:has(>.initiative-logo-frame) {min-height:0; padding-block:1.5rem;}
    [data-initiative-profile] .initiative-logo-frame[data-placement="detail"] {max-height:160px; width:auto; height:160px;}
}

.initiative-logo-frame[data-art="meraj"] {mix-blend-mode:multiply;}
/* Follow the gold outer edge, excluding the patterned paper around the seal. */
.initiative-logo-frame[data-art="meraj"] img {
    clip-path:polygon(50.2% 2.8%,65% 17%,84.4% 17%,84.4% 36.2%,98% 50.3%,84.4% 64.7%,84.4% 84.4%,64.7% 84.4%,50.2% 98%,35.6% 84.4%,16.1% 84.4%,16.1% 64.7%,2.6% 50.3%,16.1% 36.2%,16.1% 17%,35.6% 17%);
}
