/* Help center (incilog.com/help). Colours and font of the site (landing.css). */
:root {
  --brand: #00A884; --brand-mid: #008069; --brand-dark: #006B58; --brand-soft: #E6F6F1;
  --ink: #111B21; --ink-2: #3B4A54; --muted: #667781; --line: #E9EDEF; --line-strong: #D1D7DB;
  --bg: #FFFFFF; --bg-subtle: #F6F8F7; --hero: #0A1512;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 Inter, "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif; }
img { max-width: 100%; }
a { color: var(--brand-mid); }
.h-wrap { max-width: 1120px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

/* Header */
.h-top { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 20; }
.h-top-inner { display: flex; align-items: center; gap: 22px; min-height: 64px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.h-logo { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); }
.h-logo img { border-radius: 8px; }
.h-logo-name { font-weight: 800; font-size: 21px; letter-spacing: -0.4px; }
.h-tag { font-size: 13px; font-weight: 600; color: var(--brand-mid); background: var(--brand-soft); border-radius: 20px; padding: 2px 10px; }
.h-nav { display: flex; gap: 18px; font-size: 15px; font-weight: 500; }
.h-nav a { color: var(--ink-2); text-decoration: none; }
.h-nav a:hover { color: var(--brand-mid); }
.h-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }
.h-lang { position: relative; }
.h-lang summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; border: 1px solid var(--line-strong); border-radius: 10px; padding: 7px 11px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.h-lang summary::-webkit-details-marker { display: none; }
.h-lang ul { position: absolute; inset-inline-end: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.1); list-style: none; margin: 0; padding: 6px; min-width: 150px; z-index: 30; }
.h-lang li a { display: block; padding: 7px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); font-size: 15px; }
.h-lang li a:hover { background: var(--bg-subtle); }
.h-lang li a[aria-current="page"] { color: var(--brand-dark); font-weight: 700; }
.h-btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 12px; padding: 9px 16px; font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: inherit; }
.h-btn-primary { background: var(--brand); color: #fff; }
.h-btn-primary:hover { background: var(--brand-mid); }
.h-btn-ghost { background: #fff; color: var(--brand-dark); border-color: var(--line-strong); }

/* Home: hero and search */
.h-hero { background: radial-gradient(1200px 420px at 50% -80px, #11352B, var(--hero)); color: #fff; text-align: center; padding: 52px 0 58px; }
.h-hero h1 { font-size: clamp(28px, 4.4vw, 42px); margin: 0 0 8px; letter-spacing: -0.8px; text-wrap: balance; }
.h-hero p { margin: 0 0 24px; color: #A9C3BA; }
.h-search { max-width: 620px; margin: 0 auto; position: relative; }
.h-search input { width: 100%; border: none; border-radius: 14px; padding: 15px 18px; padding-inline-start: 46px; font: 16px Inter, "Segoe UI", system-ui, sans-serif; color: var(--ink); outline: 3px solid transparent; }
.h-search input:focus { outline-color: rgba(0,168,132,.45); }
.h-search svg { position: absolute; inset-inline-start: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.h-results { max-width: 620px; margin: 10px auto 0; text-align: start; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 16px 40px rgba(0,0,0,.25); }
.h-results a { display: block; padding: 11px 18px; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.h-results a:first-child { border-top: none; }
.h-results a:hover, .h-results a:focus { background: var(--brand-soft); }
.h-results small { display: block; color: var(--muted); font-size: 13px; }
.h-results p { margin: 0; padding: 12px 18px; color: var(--ink-2); }

.h-section { padding: 38px 0 6px; }
.h-section h2 { font-size: 22px; margin: 0 0 16px; letter-spacing: -0.3px; }
.h-guides { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.h-guide { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; text-decoration: none; color: var(--ink); background: #fff; transition: box-shadow .2s, transform .2s; }
.h-guide:hover { box-shadow: 0 12px 40px rgba(0,0,0,.08); transform: translateY(-2px); }
.h-guide-thumb { position: relative; height: 200px; background: linear-gradient(135deg, var(--brand), var(--brand-dark)); overflow: hidden; }
.h-guide-thumb.member { background: linear-gradient(135deg, #34D399, var(--brand-mid)); }
.h-guide-thumb img { position: absolute; width: 130px; inset-inline-start: 28px; top: 22px; border-radius: 12px; box-shadow: 0 12px 30px rgba(0,0,0,.25); }
.h-guide-thumb img + img { inset-inline-start: 176px; top: 40px; }
.h-guide-body { padding: 16px 20px 20px; }
.h-guide h3 { margin: 0 0 4px; font-size: 19px; }
.h-guide p { margin: 0; color: var(--muted); font-size: 15px; }
.h-guide .h-meta { margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--brand-mid); }
.h-topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.h-topic { border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; text-decoration: none; color: var(--ink); background: #fff; transition: border-color .2s; }
.h-topic:hover { border-color: var(--brand); }
.h-topic-ico { width: 40px; height: 40px; border-radius: 10px; background: var(--brand-soft); display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 10px; }
.h-topic h3 { margin: 0 0 2px; font-size: 16px; }
.h-topic p { margin: 0; color: var(--muted); font-size: 14px; }
.h-popular { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 28px; }
.h-popular a { display: flex; gap: 10px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
/* Chevron drawn with two borders: points to the reading direction (left on Arabic pages). */
.h-chev, .h-popular a::before { content: ""; display: inline-block; flex-shrink: 0; width: 6px; height: 6px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); }
[dir="rtl"] .h-chev, [dir="rtl"] .h-popular a::before { transform: translateY(-2px) rotate(-135deg); }
.h-popular a::before { color: var(--brand); }
.h-chev { margin: 0 6px; color: var(--muted); }
.h-popular a:hover { color: var(--brand-mid); }
.h-band { margin: 40px 0 0; background: var(--bg-subtle); border-radius: 20px; padding: 24px 26px; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.h-band div { flex: 1; min-width: 220px; }
.h-band h3 { margin: 0 0 4px; font-size: 19px; }
.h-band p { margin: 0; color: var(--muted); }
.h-hint { margin: 18px 0 0; font-size: 14px; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.h-hint b { width: 22px; height: 22px; border-radius: 50%; background: var(--brand-mid); color: #fff; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* Breadcrumbs, guide, topic, contact */
.h-crumbs { font-size: 14px; color: var(--muted); padding-top: 22px; }
.h-crumbs a { text-decoration: none; }
.h-page-head { margin: 8px 0 18px; display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; }
.h-page-head h1 { font-size: clamp(25px, 3.4vw, 34px); margin: 0; letter-spacing: -0.6px; flex: 1; min-width: 260px; text-wrap: balance; }
.h-lead { color: var(--ink-2); margin: 0 0 6px; max-width: 70ch; }
.h-note { color: var(--muted); font-size: 14px; margin: 0 0 6px; max-width: 70ch; }
.h-video { display: block; width: 100%; max-width: 880px; aspect-ratio: 16 / 9; border-radius: 18px; background: #0A1512; margin: 18px 0 0; box-shadow: 0 12px 36px rgba(0,0,0,.12); }
.h-guide-layout { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 36px; margin-top: 26px; }
.h-toc { position: sticky; top: 84px; align-self: start; font-size: 14px; border-inline-start: 2px solid var(--line); padding-inline-start: 14px; }
.h-toc b { display: block; margin-bottom: 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.h-toc a { display: block; padding: 4px 0; color: var(--ink-2); text-decoration: none; }
.h-toc a:hover { color: var(--brand-mid); }
.h-step { display: grid; grid-template-columns: minmax(0, 1fr) 210px; gap: 26px; padding: 24px 0; border-top: 1px solid var(--line); align-items: start; scroll-margin-top: 84px; }
.h-step:first-child { border-top: none; padding-top: 0; }
.h-step-n { width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.h-step h2 { margin: 0 0 6px; font-size: 19px; }
.h-where { display: inline-block; font-size: 13px; font-weight: 600; color: var(--brand-mid); background: var(--brand-soft); border-radius: 8px; padding: 2px 10px; margin-bottom: 8px; }
.h-step p { margin: 0; color: var(--ink-2); }
.h-shot { width: 100%; max-width: 210px; border-radius: 16px; border: 1px solid var(--line); box-shadow: 0 8px 24px rgba(0,0,0,.08); display: block; }
.h-shot.wide { max-width: 100%; }
.h-after { margin-top: 28px; background: var(--bg-subtle); border-radius: 16px; padding: 16px 20px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.h-after span { flex: 1; min-width: 220px; color: var(--ink-2); }
.h-topic-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 36px; margin-top: 18px; }
.h-side a { display: flex; gap: 8px; align-items: center; padding: 7px 10px; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-size: 15px; }
.h-side a[aria-current="page"] { background: var(--brand-soft); color: var(--brand-dark); font-weight: 600; }
.h-group { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 22px 0 10px; }
.h-qa { border: 1px solid var(--line); border-radius: 14px; padding: 0 18px; margin-bottom: 10px; background: #fff; scroll-margin-top: 84px; }
.h-qa[open] { border-color: var(--brand); }
.h-qa summary { cursor: pointer; padding: 15px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.h-qa summary::-webkit-details-marker { display: none; }
.h-qa summary::after { content: "+"; color: var(--brand); font-weight: 700; font-size: 20px; line-height: 1; }
.h-qa[open] summary::after { content: "−"; }
.h-qa div { padding: 0 0 16px; color: var(--ink-2); }
.h-contact { max-width: 660px; padding-bottom: 20px; }
.h-mail { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; border: 1px solid var(--line-strong); border-radius: 14px; padding: 14px 16px; margin: 18px 0; font-size: 18px; font-weight: 700; }
.h-mail a { text-decoration: none; color: var(--brand-dark); word-break: break-all; }
.h-mail button { margin-inline-start: auto; }

/* Footer */
.h-foot { margin-top: 56px; border-top: 1px solid var(--line); padding: 20px 0; color: var(--muted); font-size: 14px; }
.h-foot-inner { display: flex; gap: 18px; flex-wrap: wrap; }
.h-foot a { color: var(--muted); text-decoration: none; }
.h-foot a:hover { color: var(--brand-mid); }

@media (max-width: 860px) {
  .h-top { position: static; }
  .h-guide-layout, .h-topic-layout { grid-template-columns: 1fr; }
  .h-toc { display: none; }
  .h-side { display: flex; overflow-x: auto; gap: 4px; padding-bottom: 4px; }
  .h-side a { white-space: nowrap; }
  .h-step { grid-template-columns: 1fr; }
  .h-shot { max-width: 230px; }
  .h-nav { order: 3; width: 100%; }
}
