/* THE HELP CENTRE (roadmap 13.4) — on the redesigned site's shell and tokens (redesign.css), loaded only by the
 * help pages. Logical properties throughout, so Arabic mirrors. Each product section sets --rd-tone like its
 * product page: Learn blue, Tutor violet, Enterprise navy, ERP green, Account ink. */

.rd.hc-learn   { --rd-tone: #0757D5; --rd-tone-ink: #0646AD; --rd-tone-bg: #EEF5FF; --rd-tone-glow: rgba(7, 87, 213, .22); }
.rd.hc-tutor   { --rd-tone: #7C3AED; --rd-tone-ink: #5B21B6; --rd-tone-bg: #F5F3FF; --rd-tone-glow: rgba(124, 58, 237, .22); }
.rd.hc-ent     { --rd-tone: #1E40AF; --rd-tone-ink: #1E3A8A; --rd-tone-bg: #EFF6FF; --rd-tone-glow: rgba(59, 130, 246, .3); }
.rd.hc-erp     { --rd-tone: #047857; --rd-tone-ink: #065F46; --rd-tone-bg: #ECFDF5; --rd-tone-glow: rgba(16, 185, 129, .22); }
.rd.hc-account { --rd-tone: #172023; --rd-tone-ink: #172023; --rd-tone-bg: #F1F4F8; --rd-tone-glow: rgba(23, 32, 35, .18); }

/* ---------------------------------------------------------------- the search hero */
.hc-hero { position: relative; overflow: hidden; padding-block: clamp(44px, 7vw, 84px) clamp(36px, 5vw, 60px);
           background: radial-gradient(1100px 380px at 50% -40%, var(--rd-tone-bg), transparent 70%), var(--rd-soft);
           border-bottom: 1px solid var(--rd-line); }
.hc-hero .rd-wrap { max-width: calc(820px + 2 * var(--rd-gutter)); text-align: center; }
.hc-hero h1 { margin: 10px 0 8px; font-family: var(--rd-display); font-weight: 800; letter-spacing: -.025em; color: var(--rd-ink);
              font-size: clamp(2rem, 4.4vw, 3.1rem); line-height: 1.08; text-wrap: balance; }
.hc-hero p.hc-lede { margin: 0 auto; max-width: 56ch; color: var(--rd-muted); font-size: 1.06rem; }
.hc-search { position: relative; margin: 26px auto 0; max-width: 640px; }
.hc-search form { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 18px; padding-inline: 18px 8px; background: #fff;
                  border: 1px solid var(--rd-line); border-radius: 16px; box-shadow: var(--rd-shadow-2); transition: border-color .15s, box-shadow .15s; }
.hc-search form:focus-within { border-color: var(--rd-tone); box-shadow: 0 0 0 4px var(--rd-tone-glow), var(--rd-shadow-2); }
.hc-search svg { flex: none; width: 20px; height: 20px; color: var(--rd-faint); }
.hc-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 1.05rem; color: var(--rd-ink); padding-block: 10px; }
.hc-search input::placeholder { color: var(--rd-faint); }
.hc-search button { flex: none; min-height: 44px; padding-inline: 18px; border: 0; border-radius: 11px; background: var(--rd-tone); color: #fff;
                    font: inherit; font-weight: 700; cursor: pointer; }
.hc-search button:focus-visible, .hc-chip:focus-visible, .hc-card:focus-visible, .hc-row:focus-visible { outline: 3px solid var(--rd-tone-glow); outline-offset: 2px; }
.hc-suggest { position: absolute; inset-inline: 0; top: calc(100% + 8px); z-index: 20; display: none; text-align: start; background: #fff;
              border: 1px solid var(--rd-line); border-radius: 14px; box-shadow: var(--rd-shadow-3); overflow: hidden; }
.hc-suggest.is-open { display: block; }
.hc-suggest a { display: block; padding: 12px 16px; text-decoration: none; color: var(--rd-ink); border-bottom: 1px solid var(--rd-line-2); }
.hc-suggest a:last-child { border-bottom: 0; }
.hc-suggest a:hover, .hc-suggest a[aria-selected="true"] { background: var(--rd-soft); }
.hc-suggest small { display: block; color: var(--rd-muted); font-size: .84rem; margin-top: 2px; }
.hc-suggest .hc-prod { display: inline-block; margin-inline-end: 6px; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--rd-tone-ink); }
.hc-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
.hc-chip { display: inline-flex; align-items: center; min-height: 34px; padding-inline: 14px; border-radius: 999px; border: 1px solid var(--rd-line);
           background: #fff; color: var(--rd-ink-2); font-size: .9rem; text-decoration: none; transition: border-color .15s, color .15s; }
.hc-chip:hover { border-color: var(--rd-tone); color: var(--rd-tone-ink); }

/* ---------------------------------------------------------------- product doors */
.hc-section { padding-block: clamp(40px, 6vw, 72px); }
.hc-section h2 { margin: 0 0 6px; font-family: var(--rd-display); font-weight: 800; letter-spacing: -.02em; color: var(--rd-ink); font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.hc-section .hc-sub { margin: 0 0 24px; color: var(--rd-muted); }
.hc-doors { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
.hc-door { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 22px; border: 1px solid var(--rd-line); border-radius: var(--rd-r);
           background: #fff; box-shadow: var(--rd-shadow-1); transition: transform .2s var(--rd-ease), box-shadow .2s var(--rd-ease), border-color .2s; }
.hc-door::before { content: ""; position: absolute; inset-inline: 22px; top: -1px; height: 3px; border-radius: 0 0 3px 3px; background: var(--d-tone, var(--rd-blue)); }
.hc-door:hover { transform: translateY(-2px); box-shadow: var(--rd-shadow-2); border-color: color-mix(in srgb, var(--d-tone, var(--rd-blue)) 30%, var(--rd-line)); }
.hc-door .hc-who { font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--d-tone, var(--rd-blue)); }
html[dir="rtl"] .hc-door .hc-who { letter-spacing: 0; }
.hc-door h3 { margin: 0; font-family: var(--rd-display); font-size: 1.25rem; font-weight: 800; color: var(--rd-ink); }
.hc-door h3 a { color: inherit; text-decoration: none; }
.hc-door h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.hc-door p { margin: 0; color: var(--rd-muted); font-size: .95rem; }
.hc-door ul { position: relative; z-index: 1; list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 2px; }
.hc-door li a { display: block; padding: 6px 0; color: var(--rd-ink-2); text-decoration: none; font-size: .93rem; border-top: 1px solid var(--rd-line-2); }
.hc-door li a:hover { color: var(--d-tone, var(--rd-blue)); }
.hc-door .hc-count { margin-top: auto; padding-top: 6px; font-size: .84rem; color: var(--rd-faint); font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- still stuck */
.hc-stuck { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.hc-stuck > * { display: flex; gap: 14px; align-items: flex-start; padding: 20px; border-radius: var(--rd-r); background: var(--rd-soft); border: 1px solid var(--rd-line);
                text-decoration: none; color: var(--rd-ink-2); text-align: start; font: inherit; cursor: pointer; }
.hc-stuck > *:hover { border-color: var(--rd-tone); }
.hc-stuck .hc-ic { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #fff; color: var(--rd-tone); box-shadow: var(--rd-shadow-1); }
.hc-stuck .hc-ic svg { width: 20px; height: 20px; }
.hc-stuck strong { display: block; color: var(--rd-ink); font-size: 1rem; margin-bottom: 2px; }
.hc-stuck span { font-size: .9rem; color: var(--rd-muted); }

/* ---------------------------------------------------------------- product page and article */
.hc-crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 14px; font-size: .88rem; color: var(--rd-faint); }
.hc-crumbs a { color: var(--rd-muted); text-decoration: none; }
.hc-crumbs a:hover { color: var(--rd-tone-ink); }
.hc-layout { display: grid; gap: clamp(24px, 4vw, 48px); grid-template-columns: minmax(0, 1fr); padding-block: clamp(28px, 4vw, 48px) clamp(48px, 6vw, 80px); }
@media (min-width: 960px) { .hc-layout { grid-template-columns: 260px minmax(0, 1fr); } }
.hc-rail { align-self: start; }
@media (min-width: 960px) { .hc-rail { position: sticky; top: 84px; } }
.hc-rail h2 { margin: 0 0 10px; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--rd-faint); }
.hc-rail nav { display: flex; gap: 4px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
@media (min-width: 960px) { .hc-rail nav { flex-direction: column; overflow: visible; } }
.hc-rail nav a { flex: none; scroll-snap-align: start; padding: 8px 12px; border-radius: 10px; color: var(--rd-ink-2); text-decoration: none; font-size: .94rem; white-space: nowrap; }
@media (min-width: 960px) { .hc-rail nav a { white-space: normal; } }
.hc-rail nav a:hover { background: var(--rd-soft); }
.hc-rail nav a[aria-current="page"], .hc-rail nav a.is-on { background: var(--rd-tone-bg); color: var(--rd-tone-ink); font-weight: 600; }
.hc-phead h1 { margin: 6px 0 6px; font-family: var(--rd-display); font-weight: 800; letter-spacing: -.02em; color: var(--rd-ink); font-size: clamp(1.7rem, 3.4vw, 2.4rem); line-height: 1.12; text-wrap: balance; }
.hc-phead p { margin: 0; color: var(--rd-muted); font-size: 1.04rem; max-width: 62ch; }
.hc-group { margin-top: 32px; }
.hc-group h2 { margin: 0 0 10px; font-family: var(--rd-display); font-size: 1.1rem; font-weight: 800; color: var(--rd-ink); }
.hc-list { display: grid; gap: 10px; }
.hc-row { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid var(--rd-line); border-radius: 14px; background: #fff;
          text-decoration: none; color: var(--rd-ink-2); transition: border-color .15s, box-shadow .15s; }
.hc-row:hover { border-color: var(--rd-tone); box-shadow: var(--rd-shadow-1); }
.hc-row strong { display: block; color: var(--rd-ink); font-weight: 650; }
.hc-row span { display: block; color: var(--rd-muted); font-size: .9rem; margin-top: 2px; }
.hc-row svg { flex: none; width: 18px; height: 18px; margin-inline-start: auto; color: var(--rd-faint); }
html[dir="rtl"] .hc-row svg { transform: scaleX(-1); }

.hc-article { max-width: 760px; }
.hc-article .hc-summary { font-size: 1.12rem; color: var(--rd-ink-2); margin: 8px 0 0; }
.hc-note-lang { display: flex; gap: 10px; align-items: center; margin: 16px 0 0; padding: 10px 14px; border-radius: 12px; background: #FFF7ED; color: #9A3412; font-size: .9rem; }
.hc-shot { margin: 24px 0 0; border-radius: var(--rd-r); border: 1px solid var(--rd-line); background: var(--rd-soft); padding: 10px; box-shadow: var(--rd-shadow-2); }
.hc-shot img { display: block; width: 100%; height: auto; border-radius: 10px; }
.hc-shot figcaption { padding: 8px 4px 2px; font-size: .84rem; color: var(--rd-faint); }
.hc-steps { counter-reset: hcstep; list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.hc-steps li { position: relative; padding-inline-start: 48px; min-height: 34px; color: var(--rd-ink-2); line-height: 1.6; }
.hc-steps li::before { counter-increment: hcstep; content: counter(hcstep); position: absolute; inset-inline-start: 0; top: 0; display: grid; place-items: center;
                       width: 32px; height: 32px; border-radius: 10px; background: var(--rd-tone-bg); color: var(--rd-tone-ink); font-weight: 800; font-variant-numeric: tabular-nums; }
.hc-tips { margin: 28px 0 0; padding: 16px 18px; border-radius: 14px; background: var(--rd-soft); border: 1px solid var(--rd-line); }
.hc-tips h2 { margin: 0 0 8px; font-size: .95rem; font-weight: 700; color: var(--rd-ink); }
.hc-tips ul { margin: 0; padding-inline-start: 1.1em; display: grid; gap: 6px; color: var(--rd-ink-2); }
.hc-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hc-vote { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--rd-line); color: var(--rd-ink-2); }
.hc-vote button { min-height: 38px; padding-inline: 16px; border: 1px solid var(--rd-line); border-radius: 10px; background: #fff; font: inherit; cursor: pointer; color: var(--rd-ink-2); }
.hc-vote button:hover { border-color: var(--rd-tone); color: var(--rd-tone-ink); }
.hc-vote [role="status"] { color: var(--rd-ok); font-weight: 600; }
.hc-related { margin-top: 40px; }
.hc-related h2 { margin: 0 0 12px; font-family: var(--rd-display); font-size: 1.1rem; font-weight: 800; color: var(--rd-ink); }
.hc-empty { padding: 28px; border: 1px dashed var(--rd-line); border-radius: var(--rd-r); text-align: center; color: var(--rd-muted); }

@media (prefers-reduced-motion: reduce) { .hc-door, .hc-row { transition: none; } .hc-door:hover { transform: none; } }
