/* Help Centre — palmer-bets-help-centre 46:37 / -mobile 87:4 */

/* ── hero  46:71 ──────────────────────────────────────────────────────── */
.help-hero { background: var(--color-surface-2); box-shadow: inset 0 0 0 1px var(--color-border); }
.help-hero__inner { display: flex; flex-direction: column; align-items: center; gap: 24px; padding-block: 56px; text-align: center; }
.help-hero__text { display: flex; flex-direction: column; gap: 8px; max-width: 640px; }
.help-hero__title { font-family: var(--font-display); font-weight: 700; font-size: 38px; line-height: 51px; color: var(--color-text); }
.help-hero__lead { font-size: 15px; line-height: 20px; color: var(--color-muted); }
.help-search {
  display: flex; align-items: center; gap: 12px; width: min(100%, 680px); height: 50px; padding: 0 16px;
  background: #fff; border-radius: var(--radius-md); box-shadow: inset 0 0 0 1px var(--color-border-4);
  transition: box-shadow var(--dur-fast) var(--ease);
}
.help-search:focus-within { box-shadow: inset 0 0 0 1px var(--color-brand), var(--focus-ring); }
.help-search .icon { width: 18px; height: 18px; color: var(--color-muted-3); flex: none; }
.help-search input { flex: 1; min-width: 0; align-self: stretch; border: 0; background: none; font-size: 15px; line-height: 20px; color: var(--color-text); }   /* full 50px height is the tap zone */
.help-search input::placeholder { color: var(--color-muted-3); }
.help-search input:focus-visible { outline-offset: 0; }

/* ── topics + faq  46:92 ──────────────────────────────────────────────── */
.help-main { padding: 64px 0; background: #fff; }
.help-main__title { font-family: var(--font-display); font-weight: 700; font-size: 20px; line-height: 27px; color: var(--color-text); letter-spacing: .03em; margin-bottom: 32px; }
.help-grid { display: grid; grid-template-columns: 310px minmax(0, 1fr); gap: 40px; align-items: start; }
.topics { padding-right: 24px; box-shadow: inset -1px 0 0 var(--color-border); }
.topics__list { display: flex; flex-direction: column; gap: 4px; }
.topic {
  display: block; padding: 12px 16px; border-radius: var(--radius);
  font-weight: 500; font-size: 14px; line-height: 18px; color: var(--color-text); text-decoration: none;
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.topic:hover { background: var(--color-bg); }
.topic.is-active { background: var(--color-surface); box-shadow: inset 4px 0 0 var(--color-brand); font-weight: 700; color: var(--color-brand); }

.faq__topic { display: flex; flex-direction: column; gap: 24px; }
.faq__head { display: flex; flex-direction: column; gap: 4px; }
.faq__title { font-family: var(--font-display); font-weight: 700; font-size: 24px; line-height: 32px; color: var(--color-text); letter-spacing: .02em; }
.faq__lead { font-size: 14px; line-height: 18px; color: var(--color-muted); }
.faq__list { display: flex; flex-direction: column; }
.faq__item { box-shadow: inset 0 -1px 0 var(--color-border); }
.faq__item.is-open { background: var(--color-surface-4); }
.faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; padding: 16px 8px;
  border: 0; background: none; text-align: left; cursor: pointer;
  font-family: var(--font-body); font-weight: 500; font-size: 15px; line-height: 20px; color: var(--color-text);
  transition: color var(--dur-fast) var(--ease);
}
.faq__q:hover { color: var(--color-brand); }
.faq__q:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--radius); }
.faq__item.is-open .faq__q { font-weight: 700; color: var(--color-brand); }
.faq__icon { display: inline-flex; width: 16px; height: 16px; flex: none; color: var(--color-muted-3); }
.faq__icon .icon { width: 16px; height: 16px; }
.faq__icon-minus { display: none; }
.faq__item.is-open .faq__icon-plus { display: none; }
.faq__item.is-open .faq__icon-minus { display: block; color: var(--color-brand); }
.faq__a-inner { padding: 0 16px; }
.faq__a-inner > :last-child { padding-bottom: 20px; }   /* padding on the grandchild: a 0fr row cannot collapse a padded item */
.faq__steps { display: flex; flex-direction: column; gap: 10px; list-style: none; counter-reset: faq; }
.faq__steps li { display: flex; gap: 8px; font-size: 14px; line-height: 20px; color: var(--color-text); counter-increment: faq; }
.faq__steps li::before { content: counter(faq) "."; font-weight: 600; color: var(--color-muted); }
.faq__p { font-size: 14px; line-height: 20px; color: var(--color-text); }
.faq__p + .faq__p { margin-top: 10px; }
.faq__item.is-hidden { display: none; }
.faq__empty { padding: 24px 0; font-size: 14px; line-height: 20px; color: var(--color-muted); }
.faq__empty a { color: var(--color-brand); }

/* ── mobile  87:4 ─────────────────────────────────────────────────────── */
@media (max-width: 1199px) {
  .help-hero { box-shadow: none; }
  .help-hero__inner { gap: 20px; padding-block: 32px; text-align: left; align-items: stretch; }
  .help-hero__title { font-size: 26px; line-height: 35px; }
  .help-hero__lead { font-size: 14px; line-height: 20px; }
  .help-search { height: 48px; gap: 8px; padding: 0 12px; }
  .help-search input { font-size: 13px; line-height: 17px; }

  .help-main { padding: 0 0 32px; }
  .help-main__title { padding: 28px 0 12px; margin: 0; }
  .help-grid { grid-template-columns: 1fr; gap: 0; }
  .topics { padding: 4px 0 16px; box-shadow: none; margin-inline: calc(-1 * var(--container-pad-mobile)); padding-inline: var(--container-pad-mobile); overflow-x: auto; scrollbar-width: none; }
  .topics::-webkit-scrollbar { display: none; }
  .topics__list { flex-direction: row; gap: 8px; width: max-content; }
  .topic { padding: 10px 14px; background: var(--color-surface); font-size: 13px; line-height: 17px; white-space: nowrap; }
  .topic.is-active { background: var(--color-brand); color: #fff; box-shadow: none; }
  .faq__topic { gap: 0; }
  .faq__head { gap: 6px; padding: 12px 0 16px; }
  .faq__title { font-size: 22px; line-height: 30px; }
  .faq__lead { line-height: 20px; }
  .faq__q { padding: 16px 8px; font-size: 14px; line-height: 18px; }
  .faq__a-inner { padding: 0 8px; }
  .faq__a-inner > :last-child { padding-bottom: 16px; }
}
