/* LinkEase help center - 2026-10-18. Every class is prefixed hc-. RTL-safe (logical properties), dark mode follows the theme's Bootstrap variables. */
.hc{--hc-line:rgba(128,128,128,.28);--hc-soft:color-mix(in srgb,var(--bs-primary) 8%,transparent);--hc-soft2:color-mix(in srgb,var(--bs-primary) 16%,transparent);--hc-card:var(--bs-body-bg,#fff);--hc-muted:rgba(128,128,128,1);--hc-ok:#198754;--hc-warn:#d97706;line-height:1.7}
.hc *,.hc *::before,.hc *::after{box-sizing:border-box}
.hc a{text-decoration:none}

/* hero + search */
.hc-hero{padding:clamp(2rem,6vw,4rem) clamp(1rem,4vw,2.5rem);border-radius:1.5rem;border:1px solid color-mix(in srgb,var(--bs-primary) 25%,transparent);background:linear-gradient(135deg,var(--hc-soft2),var(--hc-soft));text-align:center;margin-block:1.5rem 2rem}
.hc-hero h1{font-size:clamp(1.7rem,4.5vw,2.6rem);font-weight:800;line-height:1.3;margin:0 0 .5rem}
.hc-hero p{color:var(--hc-muted);margin:0 auto 1.5rem;max-width:620px;font-size:1.1rem}
.hc-search{display:flex;align-items:center;gap:.5rem;max-width:720px;margin-inline:auto;padding:.5rem .6rem;border-radius:50rem;background:var(--hc-card);border:1px solid var(--hc-line);box-shadow:0 6px 24px rgba(0,0,0,.08)}
.hc-search i{margin-inline:.75rem .25rem;color:var(--hc-muted)}
.hc-search input{flex:1;min-width:0;border:0;background:transparent;color:inherit;font-size:1.1rem;padding:.6rem .25rem;outline:0;font-family:inherit}
.hc-search button{border-radius:50rem;padding:.65rem 1.6rem;font-weight:700;white-space:nowrap}
.hc-hero .hc-search--lg input{font-size:1.2rem;padding-block:.8rem}

/* headings */
.hc-h2{font-size:1.5rem;font-weight:800;margin:2.5rem 0 1rem}
.hc-crumbs{display:flex;flex-wrap:wrap;gap:.35rem;list-style:none;padding:0;margin:1rem 0;font-size:.95rem;color:var(--hc-muted)}
.hc-crumbs li+li::before{content:"/";margin-inline-end:.35rem;opacity:.6}

/* category cards */
.hc-cats{display:grid;gap:1rem;grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr))}
.hc-cat{position:relative;display:flex;gap:1rem;align-items:flex-start;padding:1.25rem;border-radius:1.1rem;border:1px solid var(--hc-line);background:var(--hc-card);color:inherit;box-shadow:0 2px 10px rgba(0,0,0,.04);transition:transform .15s,box-shadow .15s,border-color .15s}
.hc-cat:hover{transform:translateY(-2px);box-shadow:0 8px 22px rgba(0,0,0,.1);border-color:var(--bs-primary);color:inherit}
.hc-ico{flex:none;width:3.1rem;height:3.1rem;border-radius:.9rem;background:var(--hc-soft2);color:var(--bs-primary);display:grid;place-items:center;font-size:1.35rem}
.hc-cat h3{font-size:1.15rem;font-weight:800;margin:0 0 .25rem}
.hc-cat p{margin:0 0 .4rem;font-size:.95rem;opacity:.8;line-height:1.55}
.hc-count{display:inline-block;font-size:.82rem;font-weight:700;padding:.1rem .65rem;border-radius:50rem;background:var(--hc-soft);color:var(--bs-primary)}

/* article lists */
.hc-list{display:grid;gap:.75rem;grid-template-columns:repeat(auto-fill,minmax(min(100%,340px),1fr))}
.hc-item{position:relative;display:block;padding:1rem 1.15rem;border-radius:1rem;border:1px solid var(--hc-line);background:var(--hc-card);color:inherit;transition:border-color .15s,box-shadow .15s}
.hc-item:hover{border-color:var(--bs-primary);box-shadow:0 6px 18px rgba(0,0,0,.08);color:inherit}
.hc-item b{display:block;font-size:1.05rem;font-weight:800;margin-bottom:.25rem;color:var(--bs-primary)}
.hc-item span{display:block;font-size:.93rem;opacity:.8;line-height:1.55}
.hc-chip{display:inline-block;font-size:.78rem;font-weight:700;padding:.05rem .6rem;border-radius:50rem;background:var(--hc-soft2);color:var(--bs-primary);margin-bottom:.4rem}
.hc-chips{display:flex;flex-wrap:wrap;gap:.5rem;margin:1rem 0}
.hc-chips a{padding:.35rem .9rem;border-radius:50rem;border:1px solid var(--hc-line);color:inherit;font-weight:600;font-size:.95rem;background:var(--hc-card)}
.hc-chips a:hover,.hc-chips a.on{background:var(--hc-soft2);border-color:var(--bs-primary);color:var(--bs-primary)}
.hc-empty{padding:2rem;text-align:center;border:1px dashed var(--hc-line);border-radius:1rem;color:var(--hc-muted)}

/* article layout */
.hc-layout{display:grid;gap:2rem;grid-template-columns:minmax(0,1fr);align-items:start}
@media (min-width:992px){.hc-layout{grid-template-columns:minmax(0,1fr) 280px}}
.hc-main{min-width:0}
.hc-article{max-width:780px;font-size:1.06rem}
.hc-title{font-size:clamp(1.65rem,4vw,2.3rem);font-weight:800;line-height:1.3;margin:.25rem 0 .5rem}
.hc-meta{color:var(--hc-muted);font-size:.9rem;margin-bottom:1.5rem}
.hc-side{position:sticky;inset-block-start:90px;display:flex;flex-direction:column;gap:1.25rem}
@media (max-width:991.98px){.hc-side{position:static}}
.hc-box{padding:1rem 1.15rem;border-radius:1rem;border:1px solid var(--hc-line);background:var(--hc-card)}
.hc-box h4{font-size:.9rem;font-weight:800;text-transform:uppercase;letter-spacing:.04em;color:var(--hc-muted);margin:0 0 .6rem}
.hc-toc{list-style:none;margin:0;padding:0;font-size:.95rem}
.hc-toc li{margin:0}
.hc-toc a{display:block;padding:.25rem .6rem;border-inline-start:3px solid transparent;color:inherit;opacity:.85}
.hc-toc a:hover,.hc-toc a.on{border-inline-start-color:var(--bs-primary);color:var(--bs-primary);opacity:1}
.hc-toc .l3 a{padding-inline-start:1.5rem;font-size:.9rem}
.hc-rel{list-style:none;padding:0;margin:0}
.hc-rel li{margin:0 0 .45rem}
.hc-rel a{color:var(--bs-primary);font-weight:600}
.hc-stuck{padding:1.25rem;border-radius:1.1rem;background:linear-gradient(135deg,var(--hc-soft2),var(--hc-soft));border:1px solid color-mix(in srgb,var(--bs-primary) 25%,transparent);text-align:center;margin-top:2.5rem}
.hc-stuck h4{font-weight:800;margin:0 0 .35rem}
.hc-stuck p{margin:0 0 .9rem;color:var(--hc-muted)}
.hc-toc-m{display:none}
@media (max-width:991.98px){.hc-toc-box{display:none}.hc-toc-m{display:block;margin-bottom:1.25rem}}

/* article content (the HTML stored in the database) */
.hc-article h2{font-size:1.5rem;font-weight:800;margin:2.4rem 0 .9rem;scroll-margin-top:90px}
.hc-article h3{font-size:1.2rem;font-weight:800;margin:1.5rem 0 .5rem;scroll-margin-top:90px}
.hc-article p{margin:0 0 1rem}
.hc-article ul,.hc-article ol{padding-inline-start:1.4rem;margin:0 0 1rem}
.hc-article li{margin-bottom:.35rem}
.hc-article code{direction:ltr;unicode-bidi:isolate;padding:.1rem .4rem;border-radius:.4rem;background:var(--hc-soft);font-size:.92em}
.hc-article a{color:var(--bs-primary);font-weight:600}
.hc-ltr{direction:ltr;unicode-bidi:isolate;display:inline-block}
.hc-intro{font-size:1.15rem;opacity:.9;margin-bottom:1.25rem}
.hc-need{display:flex;flex-wrap:wrap;gap:.6rem;list-style:none;padding:0!important;margin:0 0 1.5rem!important}
.hc-need li{display:inline-flex;align-items:center;gap:.45rem;padding:.4rem .95rem;border-radius:50rem;border:1px solid var(--hc-line);background:var(--hc-card);font-weight:600;font-size:.95rem;margin:0}
.hc-need li i{color:var(--bs-primary)}
.hc-need li.free i{color:var(--hc-ok)}
.hc-steps{list-style:none;padding:0!important;margin:0 0 1.5rem!important;counter-reset:hcs}
.hc-steps>li{position:relative;padding-inline-start:3rem;margin:0 0 1.75rem;counter-increment:hcs}
.hc-steps>li::before{content:counter(hcs);position:absolute;inset-inline-start:0;inset-block-start:0;width:2.1rem;height:2.1rem;border-radius:50%;background:#ff3b5c;color:#fff;font-weight:800;display:grid;place-items:center;border:3px solid var(--hc-card);box-shadow:0 2px 8px rgba(0,0,0,.25)}
.hc-steps>li>h3{margin:.1rem 0 .4rem;font-size:1.15rem}
.hc-fig{margin:.9rem 0 0}
.hc-fig img{display:block;max-width:100%;height:auto;border-radius:.9rem;border:1px solid var(--hc-line);box-shadow:0 4px 18px rgba(0,0,0,.08);background:#fff}
.hc-fig figcaption{font-size:.85rem;color:var(--hc-muted);margin-top:.4rem}
.hc-figs{display:grid;gap:.9rem;grid-template-columns:minmax(0,1fr)}
@media (min-width:700px){.hc-figs.two{grid-template-columns:minmax(0,1fr) 190px;align-items:start}}
.hc-fig.phone img{max-width:260px}
.hc-tip,.hc-warn{display:flex;gap:.75rem;padding:.9rem 1.1rem;border-radius:1rem;margin:1.1rem 0;border-inline-start:5px solid var(--bs-primary);background:var(--hc-soft)}
.hc-warn{border-inline-start-color:var(--hc-warn);background:color-mix(in srgb,var(--hc-warn) 11%,transparent)}
.hc-tip>i{color:var(--bs-primary);margin-top:.3rem}.hc-warn>i{color:var(--hc-warn);margin-top:.3rem}
.hc-tip>div,.hc-warn>div{min-width:0}
.hc-tip p:last-child,.hc-warn p:last-child{margin:0}
.hc-q{border:1px solid var(--hc-line);border-radius:.9rem;background:var(--hc-card);margin:0 0 .65rem;overflow:hidden}
.hc-q summary{cursor:pointer;padding:.8rem 1.1rem;font-weight:700;list-style:none;display:flex;justify-content:space-between;gap:1rem}
.hc-q summary::-webkit-details-marker{display:none}
.hc-q summary::after{content:"+";font-weight:800;color:var(--bs-primary)}
.hc-q[open] summary::after{content:"\2212"}
.hc-q[open] summary{background:var(--hc-soft)}
.hc-q>div{padding:.8rem 1.1rem}
.hc-q>div p:last-child{margin:0}
.hc-table{width:100%;border-collapse:collapse;margin:0 0 1.25rem;font-size:.97rem;display:block;overflow-x:auto}
.hc-table th,.hc-table td{padding:.55rem .8rem;border:1px solid var(--hc-line);text-align:start;vertical-align:top}
.hc-table th{background:var(--hc-soft)}
.hc-related{list-style:none;padding:0!important;display:grid;gap:.5rem;margin:0 0 1rem!important}
.hc-related li{margin:0}
.hc-related a{display:block;padding:.65rem 1rem;border:1px solid var(--hc-line);border-radius:.9rem;background:var(--hc-card)}
.hc-related a:hover{border-color:var(--bs-primary)}
@media (max-width:575.98px){
  .hc-steps>li{padding-inline-start:2.6rem}
  .hc-steps>li::before{width:1.9rem;height:1.9rem;font-size:.95rem}
  .hc-search button span{display:none}
  .hc-search button{padding:.65rem 1rem}
}
.hc-marks{list-style:none;padding:0!important;margin:.5rem 0 0!important}
.hc-marks li{display:flex;gap:.6rem;align-items:flex-start;margin:0 0 .4rem}
.hc-n{flex:none;display:inline-grid;place-items:center;width:1.45rem;height:1.45rem;border-radius:50%;background:#ff3b5c;color:#fff;font-weight:800;font-size:.8rem;border:2px solid var(--hc-card);box-shadow:0 1px 4px rgba(0,0,0,.3);margin-top:.15rem;line-height:1}
p .hc-n{margin-inline:.15rem;vertical-align:baseline;position:relative;inset-block-start:-.05rem}
/* code blocks: one clean block, never per-line backgrounds; always LTR (also in Arabic) */
.hc-article pre{direction:ltr;text-align:left;unicode-bidi:isolate;display:block;margin:0 0 1.25rem;padding:.9rem 1.1rem;border-radius:.9rem;border:1px solid var(--hc-line);background:var(--hc-soft);color:inherit;overflow-x:auto;white-space:pre;line-height:1.6;font-size:.92rem;tab-size:2}
.hc-article pre *,.hc-article pre code,.hc-article pre span,.hc-article pre div,.hc-article pre p{background:transparent!important;box-shadow:none!important;border:0!important;border-radius:0!important;padding:0!important;margin:0!important;display:inline;font:inherit;color:inherit;direction:ltr;unicode-bidi:isolate}
.hc-article pre code{display:block;white-space:pre}
[dir="rtl"] .hc-article pre{text-align:left}

/* long inline URLs must wrap on phones */
.hc-article :not(pre)>code,.hc-article .hc-ltr{overflow-wrap:anywhere;word-break:break-word;max-width:100%}
.hc-article :not(pre)>code{white-space:normal}

/* Copy button on code blocks (single.php wraps each pre in .hc-code). Code is always LTR, so the button is physically on the right, also in Arabic. */
.hc-code{position:relative;margin:0 0 1.25rem;max-width:100%}
.hc-code pre{margin:0!important}
.hc-copy{position:absolute;inset-block-start:.45rem;right:.45rem;left:auto;z-index:1;border:1px solid var(--hc-line);background:var(--hc-card);color:inherit;border-radius:.6rem;padding:.2rem .7rem;font-size:.8rem;font-weight:600;line-height:1.4;cursor:pointer;opacity:.9}
.hc-copy:hover,.hc-copy:focus-visible{opacity:1;border-color:#0a84ff}
.hc-copy.on{background:#12b76a;border-color:#12b76a;color:#fff}
.hc-code pre{padding-right:4.6rem!important}
