/* Saman Academy 99 - Financial Wiki. Dedicated, mobile-first, RTL stylesheet. */
.sa-wiki{color:var(--sa99-ink);overflow:hidden}
.sa-wiki .section-heading{margin-bottom:25px}
.wiki-crumb{display:flex;align-items:center;flex-wrap:wrap;gap:8px;color:#6A7B74;font-size:.75rem;margin-bottom:14px;line-height:1.9}
.wiki-crumb a{color:#315D54;font-weight:700}
.wiki-crumb a:hover{color:var(--sa99-secondary)}
.wiki-crumb>span:last-child{max-width:70ch}
.wiki-hero{position:relative;overflow:hidden;background:radial-gradient(circle at 20% 38%,#EAF5EE 0%,#F8FBF8 42%,#fff 77%);border-bottom:1px solid #E8EEE8}
.wiki-hero__grid{display:grid;grid-template-columns:1fr;gap:16px;align-items:center;padding:36px 0 26px}
.wiki-hero__copy{position:relative;z-index:2}
.wiki-hero .eyebrow{font-size:.82rem;margin:0 0 5px}
.wiki-hero h1{font-size:clamp(2.45rem,7vw,3.6rem);font-weight:900;letter-spacing:-.05em;line-height:1.45;margin:0 0 14px}
.wiki-hero h1 span{position:relative}
.wiki-hero h1 span::after{content:"";position:absolute;right:0;left:0;bottom:-4px;height:6px;border-radius:50%;border-top:3px solid var(--sa99-gold)}
.wiki-hero__lead{font-size:.93rem;line-height:2.13;max-width:600px;color:#4C6358;margin:0 0 18px}
.wiki-hero__stats{display:flex;align-items:center;flex-wrap:wrap;gap:10px}
.wiki-hero__stat{display:inline-flex;align-items:center;gap:7px;border-radius:90px;padding:7px 11px;background:#fff;border:1px solid #DDE9E0;color:#3D6A57;font-size:.75rem;font-weight:740}
.wiki-hero__stat .sa-icon{width:17px;height:17px;color:#B08A23}
.wiki-hero__stat strong{font-size:.99rem;color:var(--sa99-primary)}
.wiki-hero__art{position:relative;justify-self:center;width:min(100%,420px);height:240px;isolation:isolate;display:flex;align-items:center;justify-content:center}
.wiki-hero__art::before{content:"";position:absolute;width:320px;height:320px;max-width:88vw;max-height:88vw;border:1px solid rgba(212,172,43,.35);border-radius:50%;top:-80px;left:5%;z-index:-1}
.wiki-hero__orb{position:absolute;border-radius:50%;filter:blur(9px);z-index:-1}
.wiki-hero__orb--one{height:130px;width:130px;background:#E7F2DF;right:13%;top:12%}
.wiki-hero__orb--two{height:110px;width:110px;background:#F3E6C3;left:10%;bottom:15%}
.wiki-hero__book{position:relative;width:225px;height:178px;display:grid;place-items:center;border-radius:11px 26px 26px 11px;background:linear-gradient(135deg,#0B3936,#1B7465);border-right:10px solid #C89D2E;box-shadow:-20px 20px 24px rgba(14,59,55,.18),inset -5px 0 12px rgba(3,27,25,.24);transform:rotate(-6deg);color:#E7C573}
.wiki-hero__book::before{content:"";position:absolute;inset:13px;border:1px solid rgba(233,211,136,.48);border-radius:6px 16px 16px 6px}
.wiki-hero__book>.sa-icon{width:102px;height:102px;stroke-width:.95}
.wiki-hero__book>i{position:absolute;top:34px;left:26px;right:26px;height:2px;background:rgba(232,206,128,.6)}
.wiki-hero__book-pages{position:absolute;left:0;right:0;bottom:-14px;display:flex;flex-direction:column;gap:3px;transform:skewX(-5deg)}
.wiki-hero__book-pages span{display:block;height:4px;border-radius:2px;background:#DED8C3;box-shadow:0 1px 1px #91A398}
.wiki-hero__book-pages span:nth-child(2){background:#D8B24F}
.wiki-hero__bubble{position:absolute;display:grid;place-items:center;width:66px;height:66px;border-radius:16px;box-shadow:0 9px 22px rgba(14,59,55,.12);background:#fff;color:#1E7966;z-index:2}
.wiki-hero__bubble .sa-icon{width:38px;height:38px;stroke-width:1.5}
.wiki-hero__bubble--one{left:8%;top:12%;transform:rotate(8deg)}
.wiki-hero__bubble--two{right:5%;bottom:13%;transform:rotate(-9deg);color:#A98220}
.wiki-hero__sparkle{position:absolute;width:15px;height:15px;background:#D4AC2B;border-radius:2px;top:0;right:26%;transform:rotate(45deg)}
.wiki-finder{position:relative;padding:31px 0 8px}
.wiki-finder__panel{position:relative;background:#fff;border:1px solid #E4EBE5;border-radius:19px;padding:21px 18px 19px;box-shadow:0 12px 38px rgba(14,59,55,.07)}
.wiki-finder__head{display:flex;align-items:end;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:14px}
.wiki-finder__head .eyebrow{margin:0}
.wiki-finder__head h2{font-size:1.25rem;font-weight:850;margin:0}
.wiki-finder__hint{font-size:.76rem;color:#77897E}
.wiki-search{display:flex;align-items:stretch;gap:7px;width:100%;position:relative}
.wiki-search__icon{display:none;position:absolute;right:12px;top:50%;transform:translateY(-50%);color:#6C8679;pointer-events:none}
.wiki-search__icon .sa-icon{width:21px;height:21px}
.wiki-search input{min-width:0;flex:1;min-height:47px;width:100%;border:1px solid #C9DAD1;border-radius:11px;padding:11px 13px;background:#FAFDFB;font:inherit;font-size:.82rem;color:var(--sa99-primary);outline-offset:3px}
.wiki-search input::placeholder{color:#889B92;opacity:1}
.wiki-search input:focus{border-color:#2A897B;background:#fff}
.wiki-search .btn{min-height:46px;padding:10px 12px;white-space:nowrap}
.wiki-finder__tags{display:flex;flex-wrap:wrap;gap:7px;margin-top:16px}
.wiki-tag{border:1px solid #DAE7DC;background:#F8FBF8;border-radius:90px;color:#536D60;font-weight:740;font-size:.73rem;line-height:1.5;padding:7px 12px;transition:background .17s,border-color .17s}
.wiki-tag:hover{background:#EAF3EC;border-color:#AFCBB6}
.wiki-tag.is-active,.wiki-tag.is-active:hover{background:var(--sa99-primary);color:#fff;border-color:var(--sa99-primary)}
.wiki-library{padding:44px 0 49px}
.wiki-library__heading{display:flex;align-items:end;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-bottom:21px}
.wiki-library__heading .eyebrow{margin:0}
.wiki-library__heading h2{font-size:clamp(1.4rem,3vw,1.8rem);font-weight:850;margin:0 0 2px}
.wiki-library__heading p:last-child{font-size:.84rem;color:#64776B;margin:0}
.wiki-reset{display:inline-flex;align-items:center;gap:8px;color:#A07720;background:#FFF8E7;border:1px solid #F2E1B5;border-radius:10px;padding:8px 12px;font-size:.77rem;font-weight:800}
.wiki-cards{display:grid;grid-template-columns:1fr;gap:17px}
.wiki-card{display:flex;flex-direction:column;border:1px solid #E3EAE3;border-radius:17px;background:#fff;box-shadow:0 9px 22px rgba(14,59,55,.055);overflow:hidden;transition:transform .17s ease,box-shadow .17s ease}
.wiki-card:hover{transform:translateY(-3px);box-shadow:0 13px 28px rgba(14,59,55,.11)}
.wiki-card__image{height:172px;display:flex;align-items:center;justify-content:center;overflow:hidden;background:linear-gradient(140deg,#F0F7F1,#FFFEFA);border-bottom:1px solid #EBF0E9;padding:9px}
.wiki-card__image img{width:100%;height:100%;object-fit:contain;display:block;transition:transform .22s ease}
.wiki-card:hover .wiki-card__image img{transform:scale(1.025)}
.wiki-card__image>.sa-icon{height:70px;width:70px;color:var(--sa99-secondary)}
.wiki-card__body{display:flex;flex-direction:column;gap:0;padding:17px 18px 18px;flex:1;min-width:0}
.wiki-card__kind{color:#AA831F;font-size:.7rem;font-weight:820;margin:0 0 4px}
.wiki-card h3{font-size:1.11rem;font-weight:850;line-height:1.68;margin:0 0 9px;overflow-wrap:anywhere}
.wiki-card__summary{font-size:.83rem;line-height:1.97;color:#5A6D60;margin:0 0 15px;flex:1;overflow-wrap:anywhere}
.wiki-card__meta{display:flex;align-items:center;justify-content:space-between;gap:9px;flex-wrap:wrap;margin-top:auto}
.wiki-card__topic{font-size:.71rem;font-weight:720;color:#316C5E;background:#EFF7F1;border-radius:8px;padding:4px 8px;max-width:100%;overflow-wrap:anywhere}
.wiki-card .text-link{white-space:nowrap;font-size:.78rem}
.wiki-pagination{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:7px;margin-top:29px}
.wiki-pagination .page-numbers{min-width:39px;min-height:39px;border:1px solid #DCE8E0;border-radius:10px;padding:7px 12px;background:#fff;display:inline-flex;align-items:center;justify-content:center;font-size:.79rem;font-weight:750;color:var(--sa99-primary)}
.wiki-pagination .page-numbers:hover{background:#F0F8F1}
.wiki-pagination .current{background:var(--sa99-primary);color:#fff;border-color:var(--sa99-primary)}
.wiki-empty{border:1px dashed #C6DACD;border-radius:16px;text-align:center;background:#FAFCFA;padding:43px 16px}
.wiki-empty>.sa-icon{color:#749887;width:45px;height:45px;margin-bottom:12px}
.wiki-empty h3{font-size:1.25rem;margin:0 0 8px}
.wiki-empty p{color:#69796E;font-size:.85rem;margin:0 0 18px}
.wiki-bottom{padding:0 0 51px}
.wiki-bottom__panel{display:flex;flex-direction:column;gap:12px;align-items:center;text-align:center;border:1px solid #DCECE1;border-radius:18px;background:linear-gradient(110deg,#EAF5EE,#FCFBF4);padding:25px 20px}
.wiki-bottom__icon{width:68px;height:68px;flex:none;border-radius:16px;background:#E0EFE3;display:grid;place-items:center;color:#246E60}
.wiki-bottom__icon .sa-icon{width:42px;height:42px}
.wiki-bottom__panel h2{font-size:1.3rem;margin:0 0 5px}
.wiki-bottom__panel p{font-size:.83rem;color:#596E62;line-height:1.95;margin:0}
.wiki-bottom__panel>.btn{flex:none}
/* Single glossary entry */
.wiki-article-hero{background:linear-gradient(145deg,#F5FAF5,#FFFEFA);border-bottom:1px solid #E7EEE9;padding:29px 0 31px}
.wiki-article-hero .wiki-crumb{margin-bottom:18px}
.wiki-entry-head{display:grid;grid-template-columns:1fr;gap:16px;align-items:center}
.wiki-entry-head h1{font-size:clamp(1.7rem,4.5vw,2.6rem);font-weight:850;line-height:1.7;margin:0 0 10px;overflow-wrap:anywhere}
.wiki-entry-head__summary{color:#4C695C;font-size:.95rem;line-height:2.1;max-width:710px;margin:0 0 15px}
.wiki-entry-head__meta{display:flex;flex-wrap:wrap;gap:10px 19px;color:#60776A;font-size:.77rem}
.wiki-entry-head__meta span,.wiki-entry-head__meta a{display:inline-flex;align-items:center;gap:6px}
.wiki-entry-head__meta .sa-icon{width:16px;height:16px;color:#B48B25}
.wiki-entry-head__image{width:min(100%,360px);justify-self:center;padding:12px;background:#fff;border:1px solid #E3ECE6;border-radius:16px;box-shadow:var(--sa99-shadow)}
.wiki-entry-head__image img{display:block;object-fit:contain;width:100%;max-height:230px}
.wiki-entry-section{padding:30px 0 43px}
.wiki-entry-layout{display:grid;grid-template-columns:1fr;gap:19px;align-items:start}
.wiki-entry{background:#fff;border:1px solid #E3EBE4;border-radius:18px;box-shadow:var(--sa99-shadow);padding:23px 20px;min-width:0}
.wiki-entry__eyebrow{display:flex;align-items:center;gap:10px;font-size:.81rem;font-weight:820;color:#527565;border-bottom:1px solid #E7EDE5;margin-bottom:17px;padding-bottom:12px}
.wiki-entry__eyebrow span{width:25px;height:3px;border-radius:9px;background:var(--sa99-gold)}
.wiki-entry__content{color:#273F35;font-size:.94rem;line-height:2.26;overflow-wrap:anywhere}
.wiki-entry__content>p:first-child{margin-top:0}
.wiki-entry__content p{margin-bottom:16px}
.wiki-entry__content a{color:#12715C;text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}
.wiki-entry__content h2{font-size:1.38rem}
.wiki-entry__content h3{font-size:1.15rem}
.wiki-entry__content ol,.wiki-entry__content ul{padding-inline-start:22px}
.wiki-entry__content table{display:block;overflow-x:auto;width:100%;border-collapse:collapse}
.wiki-entry__content td,.wiki-entry__content th{border:1px solid #D7E5DB;padding:8px}
.wiki-entry__tags{border-top:1px solid #E5ECE5;padding-top:17px;display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:28px}
.wiki-entry__tags strong{font-size:.78rem;font-weight:770;color:#5E7769;display:block;width:100%}
.wiki-entry__tags a{background:#F1F8F2;border:1px solid #E2EEE4;border-radius:80px;padding:6px 12px;color:#226858;font-size:.73rem;font-weight:700}
.wiki-entry__tags a:hover{background:#DDEFE2}
.wiki-entry__back{margin-top:23px}
.wiki-entry-sidebar{display:flex;flex-direction:column;gap:12px}
.wiki-entry-sidebar__panel{padding:24px 22px;background:#F8FBF7;border:1px solid #DFE8E0;border-radius:18px;text-align:center}
.wiki-entry-sidebar__icon{width:69px;height:69px;display:grid;place-items:center;border-radius:15px;margin:0 auto 9px;background:#E8F3E9;color:#186D59}
.wiki-entry-sidebar__icon svg{width:42px;height:42px}
.wiki-entry-sidebar h2{font-size:1.32rem;margin:0 0 8px}
.wiki-entry-sidebar p{font-size:.82rem;color:#567063;line-height:2.01;margin:0 0 15px}
.wiki-mini-search{position:relative;display:flex;align-items:center}
.wiki-mini-search input{width:100%;min-width:0;border:1px solid #C7D8CC;background:#fff;border-radius:10px;padding:10px 12px 10px 45px;min-height:44px;font-size:.79rem;outline-offset:3px}
.wiki-mini-search button{position:absolute;left:4px;top:4px;height:36px;width:36px;border:0;background:var(--sa99-primary);color:#fff;display:grid;place-items:center;border-radius:8px}
.wiki-mini-search button svg{width:20px;height:20px}
.wiki-entry-sidebar .wiki-entry-sidebar__note{margin:0;padding:15px;background:#FFFBF0;border:1px solid #F0E4C7;border-radius:12px;color:#726440;font-size:.75rem;line-height:2.01}
.wiki-related{padding:35px 0 60px;background:#FAFCF9;border-top:1px solid #EBEFE9}
.wiki-related__grid{display:grid;grid-template-columns:1fr;gap:11px}
.wiki-related-card{display:flex;align-items:center;gap:12px;padding:10px 13px;background:#fff;border:1px solid #E4ECE3;border-radius:13px;box-shadow:0 6px 17px rgba(14,59,55,.04)}
.wiki-related-card:hover{border-color:#ABC9B7}
.wiki-related-card__image{width:65px;height:56px;flex:none;display:grid;place-items:center;border-radius:8px;overflow:hidden;background:#F3F8F4}
.wiki-related-card__image img{width:100%;height:100%;object-fit:contain}
.wiki-related-card__image .sa-icon{width:31px;height:31px;color:var(--sa99-secondary)}
.wiki-related-card span{font-size:.86rem;font-weight:790;color:var(--sa99-primary);flex:1;overflow-wrap:anywhere}
.wiki-related-card>.sa-icon{color:#1F796F;width:18px;height:18px}
@media(min-width:520px){
 .wiki-hero__grid{grid-template-columns:1fr .85fr;min-height:325px}
 .wiki-hero__art{height:275px}
 .wiki-hero__book{width:190px;height:170px}
 .wiki-hero__bubble{width:53px;height:53px}
 .wiki-hero__bubble .sa-icon{width:30px;height:30px}
 .wiki-search__icon{display:block}
 .wiki-search input{padding-right:43px}
 .wiki-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
 .wiki-related__grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .wiki-bottom__panel{flex-direction:row;text-align:right;gap:17px;justify-content:space-between;padding:27px 24px}
 .wiki-bottom__panel>div:nth-child(2){flex:1}
}
@media(min-width:820px){
 .wiki-hero__grid{grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);min-height:350px}
 .wiki-hero__art{height:305px}
 .wiki-hero__book{width:230px;height:185px}
 .wiki-finder__panel{padding:26px 28px}
 .wiki-search .btn{padding:11px 24px}
 .wiki-cards{grid-template-columns:repeat(3,minmax(0,1fr))}
 .wiki-entry-head{grid-template-columns:minmax(0,1.5fr) minmax(220px,.55fr);gap:27px}
 .wiki-entry-layout{grid-template-columns:minmax(0,1fr) 260px;gap:21px}
 .wiki-entry{padding:30px}
 .wiki-entry-sidebar{position:sticky;top:24px}
}
@media(min-width:1120px){
 .wiki-hero__grid{min-height:390px}
 .wiki-hero__art{height:325px}
 .wiki-hero__book{width:265px;height:209px}
 .wiki-hero__bubble{width:67px;height:67px}
 .wiki-hero__bubble .sa-icon{width:38px;height:38px}
 .wiki-library{padding-top:55px}
 .wiki-entry-layout{grid-template-columns:minmax(0,1fr) 285px;gap:30px}
 .wiki-entry{padding:39px}
}
@media(max-width:390px){
 .wiki-hero__grid{padding-top:25px}
 .wiki-search{flex-wrap:wrap}
 .wiki-search input{flex-basis:100%}
 .wiki-search .btn{width:100%}
 .wiki-hero__art{height:205px}
 .wiki-hero__book{width:205px;height:152px}
 .wiki-hero__book>.sa-icon{height:78px;width:78px}
 .wiki-bottom__panel>.btn{width:100%}
}
@media(prefers-reduced-motion:reduce){
 .wiki-card,.wiki-card__image img{transition:none}
}
