/* RestioX Help Center (roadmap #32, audit WEB-25): the hub /help and the articles /help/<slug>.
   assets/redesign/rx.css and pages/*.css are a built set and are not edited: what the help pages need on top of them lives
   here, loaded after them through $page_rx_css. Light purple only, no dark fills, 44 px targets, RTL-safe (logical properties). */

/* ── The hub: the filter ─────────────────────────────────────────────────────────────────────────────────────────── */
.hc-filter { width: 100%; max-width: 680px; margin-top: 6px; }
.hc-filter__field { position: relative; display: flex; align-items: center; gap: 10px; }
.hc-filter__icon { position: absolute; top: 50%; inset-inline-start: 18px; width: 22px; height: 22px; margin-top: -11px; color: var(--rx-ink-400); pointer-events: none; }
.hc-filter__input {
  flex: 1 1 auto; min-width: 0; height: 56px; padding: 0 18px; padding-inline-start: 50px;
  border: 1px solid var(--rx-line); border-radius: var(--rx-r-pill); background: var(--rx-white); box-shadow: var(--rx-shadow-card);
  color: var(--rx-ink-700); font: inherit; font-size: 17px;
}
.hc-filter__input::placeholder { color: var(--rx-ink-400); opacity: 1; }
.hc-filter__input:hover { border-color: var(--rx-violet-200); }
.hc-filter__btn { flex: none; min-height: 56px; padding-inline: 26px; }
.hc-filter__hint { margin: 12px 0 0; font-size: 14px; line-height: 22px; color: var(--rx-ink-500); }
/* with JavaScript the list filters as you type and the button is not needed */
html.rx-js .hc-filter__btn { display: none; }
@media (max-width: 640px) {
  .hc-filter__field { flex-direction: column; align-items: stretch; }
  .hc-filter__icon { top: 28px; }
  .hc-filter__btn { width: 100%; }
}
.hc-status { min-height: 26px; margin: 0 0 18px; font-size: 15px; line-height: 26px; color: var(--rx-ink-500); text-align: center; }
.hc-empty { max-width: 560px; margin: 8px auto 0; padding: 32px 24px; text-align: center; background: var(--rx-violet-50); border: 1px dashed var(--rx-violet-200); border-radius: 20px; }
.hc-empty p { margin: 8px 0 0; color: var(--rx-ink-500); }
.hc-cat[hidden], .hc-cat__item[hidden], .hc-empty[hidden] { display: none !important; }

/* ── The hub: categories, one card each, with its articles as a plain list of links ─────────────────────────────── */
.hc-cats { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) { .hc-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }
.hc-cat { margin: 0; padding: 24px 22px 18px; background: var(--rx-white); border: 1px solid var(--rx-line); border-radius: var(--rx-r-card); box-shadow: var(--rx-shadow-card); }
.hc-cat__head { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }
.hc-cat__icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--rx-violet-100); color: var(--rx-violet-600); }
.hc-cat__icon .rx-icon { width: 22px; height: 22px; }
.hc-cat__title { margin: 0; font-size: 22px; line-height: 30px; font-weight: 500; color: var(--rx-ink-900); }
.hc-cat__text { margin: 0 0 8px; font-size: 15px; line-height: 24px; color: var(--rx-ink-500); }
.hc-cat__list { list-style: none; margin: 0; padding: 0; }
.hc-cat__item { margin: 0; border-top: 1px solid var(--rx-line); }
.hc-cat__link { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 8px 4px; color: var(--rx-ink-700); font-size: 16px; line-height: 24px; text-decoration: none; border-radius: 10px; }
.hc-cat__link:hover { color: var(--rx-violet-700); background: var(--rx-violet-50); }
.hc-cat__link .rx-icon { flex: none; width: 16px; height: 16px; color: var(--rx-violet-600); }
[dir="rtl"] .hc-cat__link .rx-icon { transform: scaleX(-1); }

/* ── The hub: popular articles ───────────────────────────────────────────────────────────────────────────────────── */
.hc-popular .rx-card__text { font-size: 14px; line-height: 22px; }

/* ── An article ──────────────────────────────────────────────────────────────────────────────────────────────────── */
.hc-crumbs { margin: 0 0 6px; }
.hc-crumbs ol { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 8px; list-style: none; margin: 0; padding: 0; font-size: 14px; line-height: 22px; color: var(--rx-ink-500); }
.hc-crumbs li + li::before { content: "›"; margin-inline-end: 8px; color: var(--rx-ink-400); }
[dir="rtl"] .hc-crumbs li + li::before { content: "‹"; }
.hc-crumbs a { color: var(--rx-violet-650); text-decoration: underline; text-underline-offset: 2px; display: inline-flex; align-items: center; min-height: 24px; }
.hc-crumbs [aria-current="page"] { color: var(--rx-ink-700); }
.hc-article { max-width: 760px; }
.hc-article .hc-plan { margin: 0 0 1.4em; }
/* numbered steps: the number sits in a soft violet disc, the text reads as a paragraph */
.hc-article ol.hc-steps { list-style: none; counter-reset: hcstep; margin: 0 0 1.4em; padding: 0; }
.hc-article ol.hc-steps > li { position: relative; counter-increment: hcstep; margin: 0 0 .8em; padding: 2px 0 2px 0; padding-inline-start: 46px; min-height: 32px; }
.hc-article ol.hc-steps > li::before {
  content: counter(hcstep); position: absolute; inset-inline-start: 0; top: 1px; display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: 50%; background: var(--rx-violet-100); color: var(--rx-violet-700); font-weight: 500; font-size: 15px; line-height: 1;
}
.hc-article .hc-good { margin: 0 0 1.4em; padding: 18px 22px 8px; background: var(--rx-violet-50); border: 1px solid var(--rx-violet-200); border-inline-start: 3px solid var(--rx-violet-600); border-radius: var(--rx-r-card); }
.hc-article .hc-good > h2 { margin: 0 0 .5em; font-size: 22px; line-height: 30px; }
.hc-article .hc-good ul { margin: 0 0 .6em; }
.hc-article .hc-faq h3 { margin: 0; }
.hc-diagram { margin: 0 0 1.6em; padding: 16px; background: var(--rx-white); border: 1px solid var(--rx-line); border-radius: var(--rx-r-card); }
.hc-diagram svg { display: block; width: 100%; height: auto; margin-inline: auto; }
/* a wide drawing from 640 px up, a tall one below it: the words stay readable on a phone */
.hc-diagram .hc-diagram__wide { display: none; max-width: 640px; }
.hc-diagram .hc-diagram__tall { display: block; max-width: 300px; }
@media (min-width: 640px) {
  .hc-diagram .hc-diagram__wide { display: block; }
  .hc-diagram .hc-diagram__tall { display: none; }
}
.hc-diagram figcaption { margin-top: 8px; font-size: 14px; line-height: 22px; color: var(--rx-ink-500); text-align: center; }
.hc-diagram .d-box { fill: var(--rx-violet-50); stroke: var(--rx-violet-200); stroke-width: 1.5; }
.hc-diagram .d-box--on { fill: var(--rx-violet-100); stroke: var(--rx-violet-400); }
.hc-diagram .d-text { fill: var(--rx-ink-700); font: 500 14px var(--rx-font); }
.hc-diagram .d-sub { fill: var(--rx-ink-500); font: 400 12px var(--rx-font); }
.hc-diagram .d-line { fill: none; stroke: var(--rx-violet-400); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hc-diagram .d-head { fill: var(--rx-violet-400); }
.hc-reviewed { margin: 2em 0 0; padding-top: 14px; border-top: 1px solid var(--rx-line); font-size: 14px; line-height: 22px; color: var(--rx-ink-500); }
.hc-after { max-width: 760px; margin-inline: auto; }
.hc-after .rx-chips { margin-top: 12px; }
.hc-after h2 { margin: 0 0 10px; font-size: 22px; line-height: 30px; font-weight: 500; color: var(--rx-ink-900); }
.hc-after > * + * { margin-top: 28px; }
/* on the article page the layout is the legal pages' one: the contents rail from 1024 px beside a 760 px column */
.hc-body.rx-legal { padding-bottom: 8px; }
@media (max-width: 767px) {
  .hc-article .hc-good { padding: 16px 16px 6px; }
  .hc-cat { padding: 20px 16px 12px; }
}
