/* Imdify content pages (guides, Arabic PDF help, templates, hubs). Loaded after site.css; uses its tokens only. */
.content-page { padding-block: var(--s-8) var(--section-y); }
.content-page__wrap { display: grid; grid-template-columns: minmax(0, 46rem); gap: var(--s-8); justify-content: start; }
.content-head { display: grid; gap: var(--s-4); }
.content-head .page-head__title { max-width: 24em; font-size: clamp(1.75rem, 1.35rem + 1.6vw, 2.5rem); line-height: 1.2; letter-spacing: -0.015em; }
:lang(ar) .content-head .page-head__title { line-height: 1.45; letter-spacing: 0; }
.content-head .doc-meta { margin: 0; }

.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-2); color: var(--ink-3); font-size: var(--t-caption); }
.crumbs li { display: inline-flex; align-items: center; gap: var(--s-2); min-width: 0; }
.crumbs li + li::before { content: "›"; color: var(--ink-3); }
[dir="rtl"] .crumbs li + li::before { content: "‹"; }
.crumbs a { color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.crumbs a:hover { color: var(--accent-text); }
.crumbs [aria-current="page"] { color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60vw; }

.prose a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.prose ol { list-style: none; padding: 0; counter-reset: step; gap: var(--s-5); }
.prose ol > li { display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: var(--s-3); align-items: start; }
.prose ol > li > .cstep { display: grid; gap: var(--s-4); padding-block-start: 3px; min-width: 0; }
.prose ol > li > .cstep > p { margin: 0; }
.prose ol > li::before { counter-increment: step; content: counter(step); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-tint); color: var(--accent-text); font: 600 .875rem/1 var(--font-latin); }
.prose .notice { font-size: .9375rem; line-height: 1.6; }
:lang(ar) .prose .notice { line-height: 1.8; }

.shot { margin: 0; display: grid; justify-items: start; }
.shot .phone { width: min(260px, 70vw); }

.download-box { display: grid; gap: var(--s-3); justify-items: start; padding: var(--s-6); border-radius: var(--r-card); background: var(--surface); box-shadow: var(--e1); }
.download-box .btn .icon { width: 20px; height: 20px; }
.download-box .caption { color: var(--ink-3); margin: 0; }

.end-box { display: grid; gap: var(--s-4); justify-items: start; padding: var(--s-6); border-radius: var(--r-card); background: var(--accent-tint); }
.end-box p { margin: 0; color: var(--ink); font-size: 1.0625rem; font-weight: 600; line-height: 1.5; }
:lang(ar) .end-box p { line-height: 1.7; }

.related { display: grid; gap: var(--s-3); padding-block-start: var(--s-6); border-block-start: 1px solid var(--line); }
.related ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.related a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }

.hub-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); }
.hub-list a { display: grid; gap: var(--s-2); height: 100%; padding: var(--s-5) var(--s-6); border-radius: var(--r-card); background: var(--surface); box-shadow: var(--e1); color: inherit; text-decoration: none; }
.hub-list a:hover { box-shadow: 0 0 0 1.5px var(--accent-ring); }
.hub-list strong { color: var(--ink); font-weight: 600; font-size: 1.0625rem; line-height: 1.4; }
:lang(ar) .hub-list strong { line-height: 1.6; }
.hub-list span { color: var(--ink-2); font-size: .9375rem; line-height: 1.55; }
.content-page .hub-list { grid-template-columns: minmax(0, 1fr); }

@media (max-width: 719px) {
  .hub-list { grid-template-columns: minmax(0, 1fr); }
  .content-page { padding-block-start: var(--s-6); }
}
.prose ol > li > .cstep > ul { margin: 0; padding-inline-start: 1.2em; display: grid; gap: .4em; }
