/*
 * v2.13.1 — compact layout (loaded last, after typography.css).
 * 1) Smaller, calmer type scale.  2) Narrower content width (1140px).  3) Images sized to the new boxes.
 * Change the whole look from the variables below.
 */
:root{
 --site-width:1140px;
 /* headings */
 --fs-display:clamp(22px,.9vw + 18.5px,31px);   /* home hero H1 */
 --fs-h1:clamp(22px,.55vw + 20px,28px);         /* page / archive / post H1 */
 --fs-h2:clamp(19px,.4vw + 17.5px,24px);        /* section titles */
 --fs-h3:clamp(15px,.15vw + 14.5px,17px);       /* card titles */
 --fs-h3-lg:clamp(16px,.3vw + 15px,19px);
 --fs-h4:clamp(14px,.1vw + 13.7px,15px);
 /* text */
 --fs-lead:clamp(14px,.1vw + 13.6px,15px);
 --fs-body:14px;
 --fs-article:clamp(15px,.1vw + 14.6px,16px);
 --fs-sm:13px;
 --fs-xs:12px;
 --fs-eyebrow:12px;
 --fs-btn:14px;
 --lh-article:2;
}

/* ---- Width: every container shrinks to the same 1140px column ---- */
body .container,body .ex-container{max-width:var(--site-width)!important}
.ex-container{width:calc(100% - 48px)}
@media(max-width:600px){.ex-container{width:calc(100% - 32px)}body .container{padding-inline:16px}}
#compare .ex-compare-shell{max-width:100%}
.enfejar-home .ex-faq-band .ex-faq-v2{max-width:var(--site-width);width:calc(100% - 48px)}
@media(max-width:600px){.enfejar-home .ex-faq-band .ex-faq-v2{width:calc(100% - 32px)}}

/* ---- Header ---- */
.ex-header-inner{min-height:72px}
.ex-brand a{font-size:26px!important}
.ex-brand .ex-brand-rocket{font-size:24px!important}
body .ex-primary-nav .menu a{font-size:13px!important;padding:8px 11px}
.custom-logo{max-height:46px}

/* ---- Hero ---- */
.ex-hero{height:auto!important;min-height:440px;padding:40px 0}
.ex-hero-layout{min-height:360px}
.ex-hero h1{font-weight:900;letter-spacing:-.4px;margin-bottom:14px!important}
.ex-hero-eyebrow{margin-bottom:6px}
.ex-hero-summary{max-width:500px;margin-bottom:20px!important}
.ex-hero .ex-btn{min-height:46px;padding:10px 22px}
.ex-hero-perks{margin-top:22px!important;gap:22px}
.ex-hero-perks .icon{width:22px;height:22px}
.ex-hero-image{height:360px!important;top:40px!important}
/* live demo card */
@media(min-width:901px){.ex-live{left:max(20px,calc((100% - var(--site-width)) / 2))!important;width:min(40%,440px)!important;padding:14px!important}}
.ex-live-stage{height:190px!important}
.ex-live-mult{font-size:44px!important}
.ex-live-badge{font-size:12px;padding:3px 10px}
.ex-live-cta{font-size:14px!important;padding:10px 14px!important}
.ex-live-cta small{font-size:11px!important}
@media(max-width:900px){.ex-live-stage{height:170px!important}.ex-live-mult{font-size:36px!important}}
@media(max-width:600px){.ex-hero{padding:24px 0}.ex-live-mult{font-size:34px!important}}

/* ---- Sections rhythm ---- */
.enfejar-home .ex-section{margin-bottom:56px}
.ex-main-sections{padding-top:56px}
.ex-section-title{margin-bottom:22px}
.ex-shortcuts a{padding-block:16px}
.ex-shortcuts .icon{width:20px;height:20px}
@media(max-width:600px){.enfejar-home .ex-section{margin-bottom:40px}.ex-main-sections{padding-top:36px}}

/* «What is» image + feature icons */
.ex-intro-art img{max-height:340px;width:auto;margin-inline:auto;object-fit:contain}
.ex-intro-feature-icon{width:52px!important;height:52px!important}
.ex-intro-feature-icon .icon{width:24px!important;height:24px!important}

/* Steps & guide cards: smaller icons/padding */
.ex-step-icon{width:60px!important;height:60px!important}
.ex-step-icon .icon{width:28px!important;height:28px!important}
.ex-guide>.icon{width:34px!important;height:34px!important}
.ex-criterion-icon .icon{width:26px!important;height:26px!important}

/* ---- Compare: search only ---- */
#compare .ex-compare-filters--search{display:block;padding:10px;margin-bottom:14px;border-radius:14px}
#compare .ex-compare-filters--search .ex-filter-search{width:100%;height:48px}
#compare .ex-filter-search input{font-size:14px!important}
#compare .ex-compare-card{border-radius:14px}

/* ---- App guides: image fits inside its box ---- */
.ex-appguide{min-height:0!important;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr)!important;border-radius:18px!important}
.ex-appguide-body{padding:28px 22px!important}
.ex-appguide-icon{width:72px!important;height:72px!important;margin-bottom:14px!important}
.ex-appguide-icon .icon{width:36px!important;height:36px!important}
.ex-appguide h3{font-size:var(--fs-h3-lg)!important;margin-bottom:8px!important}
.ex-appguide p{font-size:var(--fs-sm)!important;margin-bottom:18px!important}
.ex-appguide-btn{min-width:0!important;min-height:44px!important;padding:10px 22px!important;font-size:14px!important;border-radius:12px!important}
.ex-appguide-media{display:flex;align-items:center;justify-content:center;padding:20px 16px;height:auto!important}
.ex-appguide-media img{position:static!important;width:auto!important;max-width:100%!important;height:auto!important;max-height:230px;object-fit:contain;-webkit-mask-image:none!important;mask-image:none!important}
@media(max-width:700px){
 .ex-appguide{grid-template-columns:1fr!important}
 .ex-appguide-media{order:-1;padding:18px 16px 0}
 .ex-appguide-media img{max-height:180px}
}

/* ---- Articles ---- */
.ex-article-image{aspect-ratio:16/9}
.ex-article-image img{width:100%;height:100%;object-fit:cover}

/* ---- FAQ ---- */
.enfejar-home .ex-faq-band .ex-faq-v2 .ex-faq-list details p{font-size:14px!important;line-height:1.95}
.ex-faq-v2 .ex-faq-num{width:34px;height:34px;font-size:13px}
.ex-faq-help strong{font-size:16px}

/* ---- Footer ---- */
.ex-footer-brand{font-size:24px!important}
.ex-footer-brand span{font-size:22px!important}

/* ---- Single posts & pages: same calmer headings ---- */
body .entry-content h2{font-size:clamp(19px,.4vw + 17.5px,23px)!important}
body .entry-content h3{font-size:clamp(16px,.2vw + 15.3px,19px)!important}
.ex-post-article .entry-content h2{margin:34px 0 14px}
/* base stylesheet sets nowrap on every th/td: let long cells wrap */
.entry-content th,.entry-content td{white-space:normal}

/* FAQ band: full-bleed background via a pseudo element (the old box-shadow trick left a light strip on the right) */
.ex-faq-band{position:relative;isolation:isolate;background:none!important;box-shadow:none!important;clip-path:none!important;padding-block:56px!important}
.ex-faq-band::before{content:"";position:absolute;top:0;bottom:0;left:calc(50% - 50vw);right:calc(50% - 50vw);z-index:-1;background:radial-gradient(900px 420px at 85% 0,#0b3a66 0,transparent 70%),radial-gradient(700px 380px at 0 100%,#0a3d2c55 0,transparent 70%),#04182c}

/* Tablet (601–900px): stack the live demo under the hero text instead of overlapping it */
@media(min-width:601px) and (max-width:900px){
 .ex-hero.has-live .ex-hero-layout{flex-direction:column;align-items:stretch;justify-content:center}
 .ex-hero.has-live .ex-hero-content{width:100%!important;padding-right:0}
 .ex-hero.has-live .ex-live{position:relative;left:auto!important;top:auto;transform:none;width:100%!important;max-width:560px;margin:24px auto 0;order:2}
}
@media(min-width:1081px){.ex-hero-image{left:max(20px,calc((100% - var(--site-width)) / 2))!important;width:min(46%,540px)!important}}

/* ---- Compare section: ranking table (15 sites, editable in Appearance → تنظیمات صفحه اصلی → مقایسه سایت‌ها) ---- */
#compare .ex-rank-table{display:grid;gap:10px}
#compare .ex-rank-head,#compare .ex-rank-row{display:grid;grid-template-columns:88px minmax(0,1.15fr) minmax(0,1.3fr) minmax(0,1.6fr) 150px;align-items:center;column-gap:0}
#compare .ex-rank-head{padding:0 16px;color:#5f7189;font-size:13px;font-weight:800}
#compare .ex-rank-head>span{padding:0 12px}
#compare .ex-rank-row{background:#fff;border:1px solid #e2eaf6;border-radius:14px;box-shadow:0 4px 16px rgba(20,60,105,.04);padding:12px 16px;transition:border-color .15s,box-shadow .15s}
#compare .ex-rank-row:hover{border-color:#bcd7f3;box-shadow:0 8px 22px rgba(20,60,105,.08)}
#compare .ex-rank-row[hidden]{display:none!important}
#compare .ex-rank-row--gold{border-color:#f3dc9a;background:linear-gradient(90deg,#fff 70%,#fffaf0)}
#compare .ex-rank-cell{min-width:0;padding:0 12px;font-size:14px;line-height:1.8;color:#2b4561}
#compare .ex-rank-cell+.ex-rank-cell{border-right:1px solid #eef2f8}
#compare .ex-rank-pos{display:flex;align-items:center;gap:6px;white-space:nowrap;font-weight:800;color:#17253b}
#compare .ex-rank-medal{font-size:20px;line-height:1}
#compare .ex-rank-label{font-weight:600;color:#6a7f97;font-size:12px}
#compare .ex-rank-site{display:flex;align-items:center;gap:10px}
#compare .ex-rank-site .ex-compare-logo{width:40px;height:40px;border-width:2px;font-size:18px!important;flex:none}
#compare .ex-rank-site .ex-compare-logo-img{width:100%;height:100%;object-fit:cover;border-radius:50%}
#compare .ex-rank-site-copy{min-width:0;display:flex;flex-direction:column}
#compare .ex-rank-site-copy h3{margin:0;font-size:15px!important;line-height:1.5!important;font-weight:850;color:#17253b}
#compare .ex-rank-site-copy small{font-size:12px;color:#8a9cb4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:right}
#compare .ex-rank-feature span{font-weight:700;color:#1b3858}
#compare .ex-rank-feature i{font-style:normal}
#compare .ex-rank-cap{display:none;font-size:11px;color:#8195ad;font-weight:700}
#compare .ex-rank-btn{margin:0;min-height:42px;font-size:13px!important;border-radius:10px;padding:6px 10px;white-space:nowrap}
@media(max-width:900px){
 #compare .ex-rank-head{display:none}
 #compare .ex-rank-row{grid-template-columns:auto minmax(0,1fr);grid-template-areas:'pos site' 'feature feature' 'audience audience' 'action action';row-gap:10px;padding:14px}
 #compare .ex-rank-cell{padding:0}
 #compare .ex-rank-cell+.ex-rank-cell{border-right:0}
 #compare .ex-rank-pos{grid-area:pos;padding-left:12px}
 #compare .ex-rank-site{grid-area:site}
 #compare .ex-rank-feature{grid-area:feature}
 #compare .ex-rank-audience{grid-area:audience}
 #compare .ex-rank-action{grid-area:action}
 #compare .ex-rank-feature,#compare .ex-rank-audience{background:#f7faff;border:1px solid #edf3fa;border-radius:10px;padding:8px 12px}
 #compare .ex-rank-cap{display:block}
 #compare .ex-rank-btn{width:100%}
}

/* Hero perks: each perk on one line, wrap as whole items on small screens */
.ex-hero-perks{flex-wrap:wrap;row-gap:10px}
.ex-hero-perks>span{white-space:nowrap}
.ex-hero-perks .ex-perk-text{white-space:nowrap}
@media(max-width:600px){.ex-hero-perks{justify-content:flex-start!important;gap:8px 16px!important}.ex-hero-perks>span{font-size:12px!important}}
.ex-hero-perks{gap:10px 18px!important}
.ex-hero-perks>span{gap:6px!important;font-size:12.5px!important}
.ex-hero-perks .icon{width:19px!important;height:19px!important}

/* ---- Logo (inc-logo.php) ---- */
.ex-logo-link{display:inline-flex;align-items:center;line-height:0}
.ex-logo-img{display:block;height:var(--logo-h,60px);width:auto;max-width:220px}
/* square logo with empty space above/below: show the middle band only */
.ex-logo-img.is-cropped{width:calc(var(--logo-h,60px) * 1.9);height:var(--logo-h,60px);max-width:none;object-fit:cover;object-position:center}
.ex-logo-img--footer{--logo-h:54px;height:54px}
.ex-logo-img--footer.is-cropped{width:calc(54px * 1.9);height:54px}
.ex-footer-about .ex-logo-link{margin-bottom:14px}
@media(max-width:600px){.ex-logo-img{height:calc(var(--logo-h,60px) * .8)}.ex-logo-img.is-cropped{width:calc(var(--logo-h,60px) * .8 * 1.9);height:calc(var(--logo-h,60px) * .8)}}

/* Compare section: same 1140px column as the rest of the page (it used to span up to 1510px) */
.ex-compare-fullwidth{max-width:var(--site-width);width:calc(100% - 48px);margin-inline:auto;padding-inline:0!important}
@media(max-width:600px){.ex-compare-fullwidth{width:calc(100% - 32px)}}
#compare .ex-compare-shell{max-width:100%!important;padding-inline:0}
#compare .ex-rank-domain{font-size:12px;color:#5b86b5;text-decoration:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:right}
#compare .ex-rank-domain:hover{color:var(--accent);text-decoration:underline}

/* ---- Mobile bottom bar (inc-mobile-bar.php) — phones only ---- */
.ex-mbar,.ex-mbar-sheet{display:none}
@media(max-width:767px){
 body.has-mbar{padding-bottom:calc(72px + env(safe-area-inset-bottom))}
 .ex-mbar{display:block;position:fixed;inset:auto 0 0;z-index:999;background:var(--mbar-bg);color:var(--mbar-fg);padding-bottom:env(safe-area-inset-bottom);box-shadow:0 -6px 24px rgba(0,0,0,.25)}
 .ex-mbar ul{display:flex;margin:0;padding:0;list-style:none;height:68px;align-items:stretch}
 .ex-mbar-item{flex:1;position:relative;display:flex}
 .ex-mbar-link{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;background:none;border:0;padding:6px 2px;color:var(--mbar-fg)!important;text-decoration:none;font:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}
 .ex-mbar-icon{display:grid;place-items:center;line-height:0}
 .ex-mbar-icon .icon{width:24px;height:24px;stroke-width:2}
 .ex-mbar-label{font-size:12px;font-weight:700;line-height:1.3;white-space:nowrap}
 .ex-mbar-link:active{opacity:.75}
 .ex-mbar-link:focus-visible{outline:2px solid var(--mbar-fg);outline-offset:-4px;border-radius:12px}
 /* raised center tab */
 .ex-mbar-item.is-featured{flex:1.25}
 .ex-mbar-item.is-featured::before{content:"";position:absolute;inset:-14px 2px 0;background:var(--mbar-tab);border-radius:26px 26px 0 0;border:1px solid rgba(255,255,255,.08);border-bottom:0;box-shadow:0 -6px 16px rgba(0,0,0,.18)}
 .ex-mbar-item.is-featured .ex-mbar-link{position:relative;margin-top:-14px}
 .ex-mbar-item.is-featured .ex-mbar-icon .icon{width:27px;height:27px}
 /* hide the old front-page bar and the floating back-to-top button when the new bar is on */
 body.has-mbar .ex-mobile-bar{display:none!important}
 body.has-mbar #back-to-top{bottom:calc(84px + env(safe-area-inset-bottom))}
 /* menu sheet */
 .ex-mbar-sheet:not([hidden]){display:block;position:fixed;inset:0;z-index:1000}
 .ex-mbar-backdrop{position:absolute;inset:0;background:rgba(3,10,20,.55)}
 .ex-mbar-panel{position:absolute;inset:auto 0 0;max-height:78vh;overflow:auto;background:var(--mbar-bg);color:var(--mbar-fg);border-radius:20px 20px 0 0;padding:14px 16px calc(20px + env(safe-area-inset-bottom));box-shadow:0 -10px 30px rgba(0,0,0,.35)}
 .ex-mbar-panel-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}
 .ex-mbar-panel-head strong{font-size:16px}
 .ex-mbar-close{width:40px;height:40px;border-radius:12px;border:1px solid rgba(255,255,255,.15);background:rgba(255,255,255,.06);color:var(--mbar-fg);font-size:16px;cursor:pointer}
 .ex-mbar-menu ul{list-style:none;margin:0;padding:0}
 .ex-mbar-menu .sub-menu{padding-right:14px}
 .ex-mbar-menu a{display:block;padding:12px 10px;border-bottom:1px solid rgba(255,255,255,.08);color:var(--mbar-fg)!important;font-size:15px;font-weight:600;text-decoration:none}
 .ex-mbar-menu .current-menu-item>a{color:#7cc4ff!important}
 html.ex-mbar-locked{overflow:hidden}
}

/* ---- v2.13.7 responsive polish ---- */
/* Shortcuts on phones: one swipeable row instead of an uneven 3+2 grid */
@media(max-width:600px){
 .ex-shortcuts{display:flex!important;grid-template-columns:none!important;overflow-x:auto;scroll-snap-type:x proximity;gap:8px;padding:10px!important;-webkit-overflow-scrolling:touch;scrollbar-width:none}
 .ex-shortcuts::-webkit-scrollbar{display:none}
 .ex-shortcuts a{flex:0 0 auto;scroll-snap-align:start;flex-direction:row!important;gap:6px;white-space:nowrap;padding:10px 14px!important;border:1px solid #e6eef7!important;border-radius:999px;background:#f7faff}
 .ex-shortcuts a+a{border-inline-start:1px solid #e6eef7!important}
 .ex-shortcuts .icon{width:18px;height:18px}
}
/* Ranking cards — tablet (601–900px): two compact rows per site */
@media(min-width:601px) and (max-width:900px){
 #compare .ex-rank-row{grid-template-columns:auto minmax(0,1fr) 170px;grid-template-areas:'pos site action' 'feature audience audience'!important;column-gap:12px}
 #compare .ex-rank-feature,#compare .ex-rank-audience{background:none;border:0;padding:0}
 #compare .ex-rank-audience{border-right:1px solid #eef2f8!important;padding-right:12px}
 #compare .ex-rank-btn{width:100%}
}
/* Ranking cards — phones: lighter and shorter */
@media(max-width:600px){
 #compare .ex-rank-table{gap:8px}
 #compare .ex-rank-row{row-gap:6px;padding:12px}
 #compare .ex-rank-feature,#compare .ex-rank-audience{background:none;border:0;padding:0}
 #compare .ex-rank-cap{display:inline;margin-left:4px}
 #compare .ex-rank-cap::after{content:":"}
 #compare .ex-rank-cell{font-size:13px;line-height:1.75}
 #compare .ex-rank-feature{padding-top:8px;border-top:1px solid #eef2f8}
 #compare .ex-rank-btn{min-height:40px;margin-top:4px}
}


/* ---- v2.13.9 phones: one card per row (articles, guides, review criteria) ---- */
@media(max-width:767px){
 .enfejar-home .ex-article-grid,.enfejar-home .ex-guide-grid,.enfejar-home .ex-criteria-grid,.ex-archive-grid,.ex-post-related-grid{display:grid!important;grid-template-columns:1fr!important;gap:14px!important}
 .enfejar-home .ex-article-grid>*,.enfejar-home .ex-guide-grid>*,.enfejar-home .ex-criteria-grid>*{grid-column:auto!important;width:auto!important;max-width:none!important}
 .ex-article-image,.card-image{aspect-ratio:16/9}
 .ex-article-body,.card-body{padding:14px 16px!important}
 .ex-guide{padding:22px 18px!important}
 .ex-guide p{min-height:0!important}
}

/* ---- About / Contact pages: page content in a card ---- */
.ex-page-body{background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:0 10px 34px rgba(19,53,92,.05);padding:32px 36px;margin-bottom:28px}
.ex-page-body .entry-content>:first-child{margin-top:0}
.ex-page-body .entry-content>:last-child{margin-bottom:0}
.ex-page-body .entry-content h2{margin:28px 0 12px}
.ex-page-body iframe{max-width:100%;border-radius:12px}
@media(max-width:600px){.ex-page-body{padding:20px 16px;border-radius:14px}}

/* ---- v2.14.1 ---- */
/* Header 851–1180px: long menus + search did not fit (horizontal scroll). The search collapses to an icon and opens on tap. */
@media(min-width:851px) and (max-width:1180px){
 .ex-header-inner{gap:14px}
 body .ex-primary-nav .menu a{font-size:12.5px!important;padding:8px 9px}
 .ex-header-search{width:44px!important;flex:none;position:relative}
 .ex-header-search .search-form{width:44px;height:40px;transition:width .2s;position:absolute;left:0;top:50%;transform:translateY(-50%);z-index:5;background:#0b2a4a}
 .ex-header-search input{width:0;padding:0!important;opacity:0}
 .ex-header-search .search-form:focus-within{width:240px}
 .ex-header-search .search-form:focus-within input{width:100%;padding:9px 12px!important;opacity:1}
}
.ex-primary-nav{min-width:0}

/* Archive pages */
.ex-archive-hero .archive-intro{max-width:760px;margin-inline:auto}
.ex-archive-seo{margin-top:32px}
.ex-archive-seo .entry-content h2{margin:30px 0 12px!important}
.ex-archive-seo .entry-content h3{margin:22px 0 8px!important}
.ex-archive-seo .entry-content figure{margin:20px 0}
.ex-archive-seo .entry-content img{border-radius:12px;height:auto}
@media(min-width:768px) and (max-width:1180px){.ex-archive-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
/* cards: category on one line, tidy meta row */
.card-category{display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}
.card-meta{flex-wrap:wrap;row-gap:4px;column-gap:10px;justify-content:flex-start!important}
.card-meta>*{white-space:nowrap}
.card-meta .ex-card-author{margin-inline-start:auto}
.ex-archive-hero .archive-intro{margin-inline:0}
/* header & footer containers: keep side gutters below 1188px (they touched the screen edges) */
body .container{width:calc(100% - 48px);margin-inline:auto}
@media(max-width:600px){body .container{width:calc(100% - 32px);padding-inline:0!important}}
.ex-footer-bottom>.container{width:calc(100% - 48px)!important;max-width:var(--site-width)}
@media(max-width:600px){.ex-footer-bottom>.container{width:calc(100% - 32px)!important}}

/* Footer highlight box button */
.ex-footer-box-btn{display:inline-flex;align-items:center;gap:8px;margin-top:12px;padding:9px 16px;border-radius:10px;background:var(--accent);color:#fff!important;font-size:13px;font-weight:800;text-decoration:none!important}
.ex-footer-box-btn:hover{filter:brightness(1.08)}

/* ---- Single post: sidebar table of contents (H2 only) ---- */
.ex-post-side{top:90px!important}
.ex-toc-box{padding:0!important;overflow:hidden;border-color:#dbe7f3!important}
.ex-toc-head{display:flex;align-items:center;gap:10px;padding:16px 18px 12px}
.ex-toc-icon{display:grid;place-items:center;width:36px;height:36px;border-radius:10px;background:#e8f3ff;color:var(--accent);flex:none}
.ex-toc-icon .icon{width:19px;height:19px}
.ex-toc-head h2{margin:0!important;font-size:16px!important;color:#0a1a33;cursor:pointer;flex:1}
.ex-toc-count{font-size:12px;font-weight:700;color:#5b7591;background:#f1f6fb;border-radius:999px;padding:2px 9px;white-space:nowrap}
.ex-toc-toggle{display:none;width:32px;height:32px;border:1px solid #e1ebf5;border-radius:9px;background:#fff;color:#45627f;cursor:pointer;place-items:center;padding:0}
.ex-toc-toggle .icon{width:16px;height:16px;transform:rotate(90deg);transition:transform .2s}
.ex-toc-box.is-collapsed .ex-toc-toggle .icon{transform:rotate(-90deg)}
.ex-toc-progress{height:3px;background:#eef3f9;margin:0 18px}
.ex-toc-progress i{display:block;height:100%;width:0;background:linear-gradient(90deg,#22c55e,var(--accent));border-radius:3px;transition:width .15s linear}
.ex-toc-links{max-height:calc(100vh - 260px);overflow:auto;padding:10px 10px 14px;scrollbar-width:thin;display:block!important}
.ex-toc-links ol{list-style:none;margin:0;padding:0;display:grid;gap:2px}
.ex-toc-links a{display:flex!important;align-items:flex-start;gap:10px;padding:8px 10px!important;border:0!important;border-radius:10px!important;font-size:13px!important;line-height:1.75!important;color:#3b5672!important;text-decoration:none;transition:background-color .15s,color .15s}
.ex-toc-links a b{flex:none;display:grid;place-items:center;width:24px;height:24px;margin-top:1px;border-radius:7px;background:#f1f6fb;color:#5b7591;font-size:12px;font-weight:800;transition:background-color .15s,color .15s}
.ex-toc-links a:hover{background:#f3f8ff;color:var(--accent)!important}
.ex-toc-links a.is-active{background:#eaf4ff;color:#0a5fc0!important;font-weight:700}
.ex-toc-links a.is-active b{background:var(--accent);color:#fff}
.ex-toc-box.is-collapsed .ex-toc-links,.ex-toc-box.is-collapsed .ex-toc-progress{display:none!important}
@media(max-width:900px){
 .ex-toc-toggle{display:grid}
 .ex-toc-links{max-height:none}
 .ex-post-side{top:auto!important}
}

/* ---- Header CTA button (desktop only) ---- */
.ex-header-cta{flex:none;display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 18px;border-radius:999px;background:linear-gradient(90deg,#16a34a,#22c55e);color:#fff!important;font-size:14px;font-weight:800;white-space:nowrap;text-decoration:none!important;box-shadow:0 8px 20px rgba(34,197,94,.28);transition:transform .15s,filter .15s}
.ex-header-cta:hover{transform:translateY(-1px);filter:brightness(1.07)}
.ex-header-cta .icon{width:19px;height:19px;stroke-width:2}
@media(min-width:851px) and (max-width:1180px){.ex-header-cta{padding:0 13px;font-size:12.5px;min-height:40px;gap:6px}.ex-header-cta .icon{width:16px;height:16px}}
@media(max-width:850px){.ex-header-cta{display:none}}
/* hamburger next to the CTA (left side) when the menu is collapsed */
.ex-header-inner .nav-toggle{margin-inline-start:auto}
.ex-header-inner .nav-toggle+.ex-primary-nav+.ex-header-cta{margin-inline-start:0}
