/* Ghadirestan / Ghadir guide v1.0 — scoped article styles.
   Place next to the existing ghadirestan-estedad.woff2. No JavaScript. */
@font-face{font-family:GHGuide;src:url('./ghadirestan-estedad.woff2') format('woff2');font-weight:100 900;font-style:normal;font-display:swap}
#sp-main-body:has(#ghadir-guide){background:#f2efe5!important}
#sp-main-body:has(#ghadir-guide)>.container,
#sp-component:has(#ghadir-guide)>.sp-column,
article.item-page:has(#ghadir-guide),
.com-content-article__body:has(#ghadir-guide){background:transparent!important}
#ghadir-guide{--gg-green:#234e3c;--gg-ink:#303f36;--gg-muted:#626b5e;--gg-gold:#967342;--gg-line:#dcd7c7;--gg-paper:#fcfaf3;direction:rtl;text-align:right;isolation:isolate;container-type:inline-size;width:100%;max-width:1060px;min-width:0;margin:12px auto 38px;padding:0;color:var(--gg-ink);background:#f2efe5;font-family:GHGuide,Tahoma,sans-serif!important;font-size:16px;line-height:2.15;text-size-adjust:100%;-webkit-text-size-adjust:100%}
#ghadir-guide,#ghadir-guide *,#ghadir-guide *::before,#ghadir-guide *::after{box-sizing:border-box}
#ghadir-guide *{min-width:0;float:none;font-family:inherit}
#ghadir-guide :is(h1,h2,p,ul,ol,li,blockquote){margin:0;padding:0;letter-spacing:normal;white-space:normal;word-break:normal;overflow-wrap:break-word;text-transform:none}
#ghadir-guide :is(h1,h2){font-family:GHGuide,Tahoma,sans-serif!important;color:var(--gg-green)!important;font-weight:750!important;line-height:1.85!important}
#ghadir-guide p{font-size:16px!important;line-height:2.2!important;color:inherit}
#ghadir-guide p+p{margin-top:16px}
#ghadir-guide strong{font-weight:750;color:var(--gg-green)}
#ghadir-guide a{color:#285d42;text-decoration:underline;text-underline-offset:5px;text-decoration-thickness:1px;overflow-wrap:anywhere;transition:color .18s,background-color .18s,border-color .18s}
#ghadir-guide a:hover{color:#785523}
#ghadir-guide a:focus-visible{outline:3px solid #967342;outline-offset:4px;border-radius:4px}
#ghadir-guide :is(section,li[id]){scroll-margin-top:120px}
#ghadir-guide a[href^='#ghadir-source-']{display:inline-block;min-width:27px;text-align:center;font-size:.78em;font-weight:650;text-decoration:none;color:#85602d;white-space:nowrap}
#ghadir-guide .gg-hero{position:relative;padding:36px 44px 34px;border:1px solid #d5ccb6;border-radius:24px;background:radial-gradient(ellipse at 0 0,#dcd8b957,transparent 60%),linear-gradient(130deg,#f8f3e5,#f0eadb);box-shadow:0 12px 40px #334a3510;animation:gg-enter .4s ease-out both}
#ghadir-guide .gg-hero::before{content:'';position:absolute;top:-1px;right:44px;width:76px;height:3px;border-radius:4px;background:#a98950}
#ghadir-guide p.gg-eyebrow{display:flex;align-items:center;gap:10px;font-size:12px!important;font-weight:650;color:#6a624e;margin-bottom:12px;line-height:1.8!important}
#ghadir-guide .gg-eyebrow::before{content:'';width:8px;height:8px;background:#a98c52;transform:rotate(45deg);flex:none}
#ghadir-guide h1.gg-title{font-size:clamp(32px,5vw,47px)!important;margin-bottom:5px!important;line-height:1.65!important;letter-spacing:-1px!important}
#ghadir-guide p.gg-subtitle{font-size:17px!important;color:#68705d;font-weight:500;margin:0 0 24px!important}
#ghadir-guide .gg-lead{max-width:860px;padding-top:22px;border-top:1px solid #d5cbb5}
#ghadir-guide p.gg-intro-note{color:#646b5c;font-size:14px!important;line-height:2.1!important;margin-top:14px}
#ghadir-guide .gg-hero-links{display:flex;flex-wrap:wrap;gap:10px;margin-top:24px}
#ghadir-guide .gg-hero-links a{display:inline-flex;align-items:center;justify-content:center;gap:14px;min-height:45px;max-width:100%;padding:8px 18px;border:1px solid #bfc7af;border-radius:8px;font-size:13px;font-weight:650;line-height:1.9;text-decoration:none;background:#f8f6eb}
#ghadir-guide .gg-hero-links a:first-child{background:var(--gg-green);border-color:var(--gg-green);color:#fff9e9}
#ghadir-guide .gg-hero-links a::after{content:'←';font-family:Arial,sans-serif;font-size:18px;color:#a79061}
#ghadir-guide .gg-toc{margin:22px 0;padding:23px 28px 24px;border:1px solid var(--gg-line);border-radius:16px;background:#f9f7ee}
#ghadir-guide p.gg-toc-title{display:flex;align-items:center;gap:10px;font-size:15px!important;font-weight:750;color:var(--gg-green);margin-bottom:13px;line-height:1.8!important}
#ghadir-guide .gg-toc-title::before{content:'';width:18px;height:14px;flex:none;border-block:1px solid #967342;background:linear-gradient(#967342,#967342) center/100% 1px no-repeat}
#ghadir-guide .gg-toc ol{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px 26px;list-style:none!important;counter-reset:gg-toc}
#ghadir-guide .gg-toc li{display:block;list-style:none!important;counter-increment:gg-toc;margin:0!important;padding:0!important;border:0}
#ghadir-guide .gg-toc li::before,#ghadir-guide .gg-toc li::after,#ghadir-guide .gg-resources li::before,#ghadir-guide .gg-resources li::after{content:none!important}
#ghadir-guide .gg-toc a{display:flex;align-items:center;gap:10px;min-height:44px;padding:7px 4px;border-bottom:1px solid #e6e1d1;font-size:13px;font-weight:500;line-height:1.9;text-decoration:none;color:#455b49}
#ghadir-guide .gg-toc a::before{content:counter(gg-toc,decimal-leading-zero);direction:ltr;font:11px/1.5 Arial,sans-serif;color:#947849;flex:0 0 23px}
#ghadir-guide .gg-reading{padding:0 42px;border:1px solid var(--gg-line);border-radius:20px;background:var(--gg-paper)}
#ghadir-guide .gg-section{padding:32px 0 33px;border-bottom:1px solid #e3dece}
#ghadir-guide .gg-section:last-child{border-bottom:0}
#ghadir-guide .gg-section-head{display:flex;gap:16px;align-items:baseline;margin-bottom:15px}
#ghadir-guide .gg-section-no{flex:0 0 29px;color:#967342;font-size:13px;font-weight:550;line-height:1.8}
#ghadir-guide h2{font-size:clamp(19px,2.6vw,23px)!important;margin:0!important;padding:0!important;background:none!important;border:0!important;box-shadow:none!important}
#ghadir-guide .gg-copy{padding-inline-start:45px}
#ghadir-guide .gg-copy p{max-width:100%}
#ghadir-guide blockquote{position:relative;margin:24px 0!important;padding:32px 22px 27px!important;border:1px solid #c7d2be!important;border-radius:15px;background:linear-gradient(125deg,#e9efdf,#f5f5e9)!important;text-align:center;color:var(--gg-green);box-shadow:none}
#ghadir-guide blockquote::before{content:'';position:absolute;top:-1px;left:calc(50% - 24px);width:48px;height:3px;background:#a8894c}
#ghadir-guide blockquote::after{content:none!important}
#ghadir-guide blockquote p[lang='ar']{font-family:GHGuide,Tahoma,sans-serif!important;font-size:clamp(25px,3.5vw,35px)!important;font-weight:700;line-height:2!important;color:#234e3c}
#ghadir-guide blockquote p+p{margin-top:12px;font-size:14px!important;color:#52674e}
#ghadir-guide .gg-more{margin-top:22px;padding:30px 32px;border:1px solid #cbd2bd;border-radius:18px;background:#eaf0e2}
#ghadir-guide .gg-more>p{font-size:14px!important;margin-top:10px;color:#53614e}
#ghadir-guide .gg-resources{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:21px!important;list-style:none!important}
#ghadir-guide .gg-resources li{display:block!important;list-style:none!important;padding:0!important;margin:0!important}
#ghadir-guide .gg-resources a{display:flex;flex-direction:column;align-items:flex-start;gap:7px;height:100%;min-height:133px;padding:19px 20px;border:1px solid #cfd8c0;border-radius:12px;background:#fcfcf2;text-decoration:none;font-size:14px;font-weight:600;line-height:2.1}
#ghadir-guide .gg-resource-kind{display:flex;justify-content:space-between;align-items:center;width:100%;color:#737151;font-size:11px;font-weight:500}
#ghadir-guide .gg-resource-kind::after{content:'←';font-family:Arial,sans-serif;font-size:19px;color:#927747}
#ghadir-guide .gg-sources{margin:28px 0 0;padding:5px 12px 0}
#ghadir-guide .gg-sources h2{font-size:19px!important}
#ghadir-guide .gg-sources ol{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 36px;list-style:decimal!important;padding-inline-start:25px!important;margin-top:20px!important}
#ghadir-guide .gg-sources li{display:list-item!important;list-style:decimal!important;padding:0 0 12px!important;font-size:13px;line-height:2.1;border-bottom:1px solid #ddd7c6}
#ghadir-guide .gg-sources li::marker{color:#927747;font-weight:650}
#ghadir-guide .gg-sources li::before,#ghadir-guide .gg-sources li::after{content:none!important}
#ghadir-guide .gg-sources li:target{background:#fff4ce;outline:2px solid #ab8c51;outline-offset:4px;border-radius:3px}
#ghadir-guide .gg-bottom{display:flex;justify-content:flex-end;margin-top:20px;padding:0 8px}
#ghadir-guide .gg-bottom a{font-size:12px;min-height:44px;display:inline-flex;align-items:center;gap:9px;text-decoration:none}
#ghadir-guide .gg-bottom a::after{content:'↑';font-family:Arial,sans-serif;font-size:17px}
@keyframes gg-enter{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:none}}
@media(hover:hover){#ghadir-guide .gg-resources a:hover{background:#f3f3df;border-color:#a6b393}#ghadir-guide .gg-toc a:hover{background:#eeeede}#ghadir-guide .gg-hero-links a:hover{background:#e3e9d7}#ghadir-guide .gg-hero-links a:first-child:hover{background:#183e2e}}
@media(max-width:640px){
 #ghadir-guide{font-size:15px;margin:4px auto 24px}
 #ghadir-guide .gg-hero{padding:25px 20px 24px;border-radius:17px}
 #ghadir-guide .gg-hero::before{right:21px;width:54px}
 #ghadir-guide h1.gg-title{font-size:34px!important}
 #ghadir-guide p.gg-subtitle{font-size:14px!important;margin-bottom:18px!important}
 #ghadir-guide p{font-size:15px!important;line-height:2.2!important}
 #ghadir-guide p.gg-eyebrow{font-size:11px!important}
 #ghadir-guide .gg-lead{padding-top:17px}
 #ghadir-guide p.gg-intro-note{font-size:13px!important}
 #ghadir-guide .gg-hero-links{gap:8px;margin-top:19px}
 #ghadir-guide .gg-hero-links a{flex:1 1 140px;padding:9px 12px;font-size:12px}
 #ghadir-guide .gg-toc{margin:15px 0;padding:19px 19px 20px;border-radius:13px}
 #ghadir-guide .gg-toc ol{grid-template-columns:minmax(0,1fr)}
 #ghadir-guide .gg-reading{padding:0 19px;border-radius:15px}
 #ghadir-guide .gg-section{padding:25px 0}
 #ghadir-guide .gg-section-head{gap:10px;margin-bottom:12px}
 #ghadir-guide .gg-section-no{flex-basis:19px;font-size:11px}
 #ghadir-guide h2{font-size:19px!important}
 #ghadir-guide .gg-copy{padding-inline-start:0}
 #ghadir-guide blockquote{padding:25px 13px 22px!important;margin:20px 0!important}
 #ghadir-guide blockquote p[lang='ar']{font-size:25px!important}
 #ghadir-guide .gg-more{padding:23px 19px;margin-top:15px;border-radius:15px}
 #ghadir-guide .gg-resources{grid-template-columns:minmax(0,1fr);gap:10px}
 #ghadir-guide .gg-resources a{min-height:112px;padding:15px 17px;font-size:13px}
 #ghadir-guide .gg-sources{padding:0 5px;margin-top:25px}
 #ghadir-guide .gg-sources ol{grid-template-columns:minmax(0,1fr);gap:11px}
}
/* Also collapse grids when Joomla gives the article a narrow desktop column. */
@container(max-width:560px){#ghadir-guide .gg-toc ol,#ghadir-guide .gg-resources,#ghadir-guide .gg-sources ol{grid-template-columns:minmax(0,1fr)}#ghadir-guide .gg-hero{padding-inline:20px}#ghadir-guide .gg-reading{padding-inline:19px}#ghadir-guide .gg-copy{padding-inline-start:0}}
@media(prefers-reduced-motion:reduce){#ghadir-guide .gg-hero{animation:none}#ghadir-guide a{transition:none}}
@media print{#ghadir-guide{max-width:none;background:white;color:black;font-family:Tahoma,sans-serif!important;font-size:11pt;margin:0}#ghadir-guide .gg-hero,#ghadir-guide .gg-reading,#ghadir-guide .gg-more{background:white!important;border:0;box-shadow:none;padding:0}#ghadir-guide .gg-hero{animation:none}#ghadir-guide .gg-toc,#ghadir-guide .gg-hero-links,#ghadir-guide .gg-bottom{display:none}#ghadir-guide .gg-section{padding:18px 0}#ghadir-guide .gg-section-head{break-after:avoid}#ghadir-guide .gg-copy{padding:0}#ghadir-guide p{font-size:11pt!important}#ghadir-guide a{color:black}#ghadir-guide .gg-resources,#ghadir-guide .gg-sources ol{display:block}#ghadir-guide .gg-resources a{min-height:0;padding:12px;background:white}#ghadir-guide blockquote{break-inside:avoid}}
