/* The help centre. Loaded after /assets/site.css (the landing page's own tokens, header, footer,
   buttons and the .window screen frame) and /assets/pages.css. Tokens only: no new colours,
   faces or shapes. */
.help { padding-block: 48px 72px; }
.help h1 { font-weight: 600; font-size: clamp(30px, 4.4vw, 40px); line-height: 1.2; letter-spacing: -.02em; margin: 12px 0 8px; }
html[lang="ar"] .help h1 { letter-spacing: 0; line-height: 1.35; }
.help-top { max-width: 760px; margin-bottom: 40px; }
.help-lede { color: var(--text-2); font-size: 17px; line-height: 1.7; margin: 0 0 24px; }

/* Search */
.help-search { position: relative; }
.help-search svg { position: absolute; inset-inline-start: 14px; top: 14px; width: 20px; height: 20px; color: var(--muted); pointer-events: none; }
.help-search input {
	width: 100%; font: 400 16px/1.4 inherit; font-family: inherit; color: var(--text);
	background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--r-input);
	padding: 13px 14px; padding-inline-start: 44px; box-shadow: var(--shot-shadow);
}
.help-search input:focus { outline: none; border-color: var(--primary); }
.help-results { list-style: none; margin: 8px 0 0; padding: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); box-shadow: var(--shot-shadow); }
.help-results a { display: block; padding: 10px 12px; border-radius: var(--r-button); text-decoration: none; color: var(--text); }
.help-results a:hover, .help-results a:focus, .help-results li.on a { background: var(--primary-subtle); outline: none; }
.help-results small { display: block; color: var(--text-3); font-size: 13px; margin-top: 2px; }
.help-none { color: var(--text-3); margin: 10px 2px 0; }

/* The index: one card per section */
.help-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.help-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); padding: 20px 22px; }
.help-card h2 { font-size: 18px; font-weight: 600; margin: 0 0 6px; }
.help-card p { color: var(--text-3); font-size: 14px; line-height: 1.6; margin: 0 0 12px; }
.help-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.help-card a { display: block; padding: 6px 0; color: var(--primary); text-decoration: none; font-weight: 500; font-size: 15px; }
.help-card a:hover { color: var(--primary-hover); text-decoration: underline; }

/* An article */
.help-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.help-crumbs a { color: var(--primary); text-decoration: none; }
.help-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
@media (min-width: 960px) { .help-layout { grid-template-columns: minmax(0, 760px) 260px; justify-content: space-between; } }
.help-summary { color: var(--text-2); font-size: 17px; line-height: 1.7; margin: 0 0 28px; }
.help-article h2 { font-size: 20px; font-weight: 600; line-height: 1.35; margin: 36px 0 10px; }
.help-article h3 { font-size: 17px; font-weight: 600; margin: 24px 0 8px; }
.help-article p, .help-article li { color: var(--text-2); line-height: 1.75; }
html[lang="ar"] .help-article p, html[lang="ar"] .help-article li { line-height: 1.9; }
.help-article ol, .help-article ul { padding-inline-start: 24px; }
.help-article li { margin-block: 6px; }
.help-article strong { color: var(--text); font-weight: 600; }
.help-article a { color: var(--primary); font-weight: 500; }
.help-article .ltr { direction: ltr; unicode-bidi: isolate; }
.help-article kbd, .help-article .ui { font: inherit; font-weight: 600; color: var(--text); }
.help-article figure { margin: 20px 0 24px; }
.help-article figure.window img { display: block; }
.help-article figcaption { padding: 10px 14px; font-size: 14px; color: var(--text-3); border-top: 1px solid var(--border); background: var(--surface); }
.help-article .note { background: var(--notice-bg); color: var(--notice-ink); border-radius: var(--r-card); padding: 12px 16px; margin: 20px 0; }
.help-article .note p { color: inherit; margin: 0; }
.help-related { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); }
.help-related h2 { margin-top: 0; }
.help-related ul { list-style: none; padding: 0; }
.help-related a { text-decoration: none; }
.help-pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 32px; }
.help-pager a { flex: 1; max-width: 48%; text-decoration: none; color: var(--primary); font-weight: 500; border: 1px solid var(--border); border-radius: var(--r-card); padding: 12px 16px; background: var(--surface); }
.help-pager a:hover { border-color: var(--primary); }
.help-pager .next { text-align: end; margin-inline-start: auto; }
.help-pager small { display: block; color: var(--muted); font-weight: 400; font-size: 13px; margin-bottom: 2px; }
.help-side { align-self: start; }
@media (min-width: 960px) { .help-side { position: sticky; top: 92px; } }
.help-side h2 { font: 500 12px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
html[lang="ar"] .help-side h2 { font-family: var(--arabic); letter-spacing: 0; text-transform: none; font-size: 13px; }
.help-side ul { list-style: none; margin: 0; padding: 0; border-inline-start: 1px solid var(--border); }
.help-side a { display: block; padding: 7px 14px; margin-inline-start: -1px; border-inline-start: 2px solid transparent; color: var(--text-2); text-decoration: none; font-size: 14px; }
.help-side a:hover { color: var(--primary); }
.help-side a[aria-current="page"] { color: var(--primary); border-inline-start-color: var(--primary); font-weight: 600; }
