/* Help Centre — frames help-centre (10:4) and mobile-help-centre (41:4). Numbers from gen.js / fig-outline.
 * One-off colours the frame uses on its white workspace: #e1e4e6 rules, #fafafa active rows,
 * #111315 (= --color-surface) as ink on white. */

/* ── 03 hero + search ─────────────────────────────────────────────────── */
.hc-hero { display: flex; flex-direction: column; align-items: center; gap: 28px; padding: 64px var(--container-pad); background: var(--color-purple); box-shadow: inset 0 -1px 0 var(--color-border); text-align: center; }
.hc-hero__head { display: flex; flex-direction: column; align-items: center; align-self: stretch; gap: 12px; }
.hc-hero__eyebrow { font-family: var(--font-mono); font-weight: 800; font-size: 12px; line-height: 16px; text-transform: uppercase; color: var(--color-brand); }
.hc-hero__title { font-family: var(--font-display); font-size: 48px; line-height: 52px; text-transform: uppercase; color: var(--color-text); }
.hc-hero__lead { max-width: 720px; font-size: 15px; line-height: 23px; color: var(--color-text); opacity: .85; }
.hc-search { display: flex; align-items: center; gap: 16px; width: 720px; max-width: 100%; min-height: 56px; padding: 0 20px; border-radius: var(--radius-sm); background: var(--color-card); box-shadow: inset 0 0 0 2px var(--color-brand); }
.hc-search:focus-within { box-shadow: inset 0 0 0 2px var(--color-brand), var(--focus-ring); }
.hc-search__icon { width: 20px; height: 20px; color: var(--color-surface); }
.hc-search__input { flex: 1; align-self: stretch; min-width: 0; padding: 0;   /* the whole 56px box is the tap zone */ border: 0; background: none; outline: none; font-size: 16px; line-height: 21px; color: var(--color-ink); }
.hc-search__input::placeholder { color: var(--color-gray-500); }
.hc-search__input::-webkit-search-cancel-button { appearance: none; }

/* ── 04 quick shortcuts ───────────────────────────────────────────────── */
.shortcuts { display: flex; gap: 1px; min-height: 45px; background: var(--color-border); }
.shortcuts__track { display: contents; }
.shortcuts__link {
  display: flex; align-items: center; justify-content: center; flex: 1; min-height: 45px; padding: 16px;
  background: var(--color-surface); font-family: var(--font-display); font-size: 12px; line-height: 13px; text-transform: uppercase; text-align: center; color: var(--color-text); text-decoration: none;
  transition: background-color var(--dur-fast) var(--ease);
}
.shortcuts__link:hover { background: var(--color-surface-2); }
.shortcuts__link:focus-visible { outline: none; box-shadow: var(--focus-ring); position: relative; }

/* ── main workspace: topics + FAQ ─────────────────────────────────────── */
.help { display: flex; align-items: flex-start; gap: 48px; padding: 64px var(--container-pad); background: var(--color-card); }
.topics { display: flex; flex-direction: column; gap: 4px; flex: 0 0 310px; width: 310px; padding-right: 24px; box-shadow: inset -1px 0 0 #e1e4e6; }
.topics__title { font-family: var(--font-display); font-size: 14px; line-height: 15px; text-transform: uppercase; color: var(--color-surface); }
.topics__current { display: none; }
.topics__list { display: flex; flex-direction: column; gap: 4px; }
.topics__tab {
  display: flex; align-items: center; gap: 12px; min-height: 41px; padding: 12px 16px; border: 0; border-radius: var(--radius-sm);
  background: none; cursor: pointer; text-align: left;
  transition: background-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.topics__num { font-family: var(--font-mono); font-weight: 700; font-size: 12px; line-height: 16px; color: var(--color-gray-500); }
.topics__name { font-weight: 500; font-size: 13px; line-height: 17px; text-transform: uppercase; color: var(--color-surface); }
.topics__tab:hover { background: #fafafa; }
.topics__tab:focus-visible { outline: none; box-shadow: var(--focus-ring-light); }
.topics__tab[aria-selected="true"] { background: #fafafa; box-shadow: inset 4px 0 0 var(--color-brand); }
.topics__tab[aria-selected="true"] .topics__num, .topics__tab[aria-selected="true"] .topics__name { color: var(--color-purple); }
.topics__tab[aria-selected="true"] .topics__name { font-weight: 700; }

.help__content { display: flex; flex-direction: column; gap: 32px; flex: 1; min-width: 0; }
.topic { display: flex; flex-direction: column; gap: 32px; }
.topic__head { display: flex; flex-direction: column; gap: 8px; }
.topic__eyebrow { font-family: var(--font-mono); font-weight: 800; font-size: 11px; line-height: 14px; text-transform: uppercase; color: var(--color-gray-500); }
.topic__title { font-family: var(--font-display); font-size: 32px; line-height: 35px; text-transform: uppercase; color: var(--color-surface); }
.topic__lead { font-size: 15px; line-height: 20px; color: var(--color-muted-3); }

.faq { display: flex; flex-direction: column; }
.faq__item { display: flex; flex-direction: column; box-shadow: inset 0 -1px 0 #e1e4e6; transition: background-color var(--dur-fast) var(--ease); }
.faq__item:has(> .faq__q[aria-expanded="true"]) { background: #fafafa; }
.faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 56px; padding: 18px 8px;
  border: 0; background: none; cursor: pointer; text-align: left;
}
.faq__q:hover .faq__text { color: var(--color-purple); }
.faq__q:focus-visible { outline: none; box-shadow: var(--focus-ring-light); }
.faq__q-label { display: flex; align-items: center; gap: 16px; }
.faq__num { flex: none; font-family: var(--font-mono); font-size: 13px; line-height: 17px; color: var(--color-gray-500); }
.faq__text { font-weight: 600; font-size: 15px; line-height: 20px; color: var(--color-surface); transition: color var(--dur-fast) var(--ease); }
.faq__icon { position: relative; flex: none; width: 14px; height: 14px; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 3px; top: 6px; width: 8px; height: 2px; background: var(--color-gray-500); transition: transform var(--dur-fast) var(--ease); }
.faq__icon::after { transform: rotate(90deg); }
.faq__q[aria-expanded="true"] .faq__num { font-weight: 700; color: var(--color-purple); }
.faq__q[aria-expanded="true"] .faq__text { font-weight: 700; color: var(--color-purple); }
.faq__q[aria-expanded="true"] .faq__icon::before, .faq__q[aria-expanded="true"] .faq__icon::after { background: var(--color-purple); }
.faq__q[aria-expanded="true"] .faq__icon::after { transform: rotate(0); }
.faq__a { display: none; flex-direction: column; gap: 20px; padding: 0 16px 24px 36px; }
.faq__a.is-open { display: flex; }
.faq__steps { display: flex; flex-direction: column; gap: 12px; }
.faq__step { display: flex; gap: 12px; min-height: 20px; }
.faq__step-num { flex: none; width: 17px; font-family: var(--font-mono); font-weight: 700; font-size: 14px; line-height: 18px; color: var(--color-muted-3); }
.faq__step-text, .faq__p { font-size: 14px; line-height: 20px; color: var(--color-surface); }
.faq__p a { color: var(--color-purple); }
.feedback { display: flex; align-items: center; gap: 16px; width: 360px; max-width: 100%; padding: 12px; border-radius: var(--radius-sm); background: var(--color-card); box-shadow: inset 0 0 0 1px #e1e4e6; }
.feedback__q { font-size: 13px; line-height: 17px; text-transform: uppercase; color: var(--color-muted-3); }
.feedback__btns { display: flex; gap: 8px; }
.feedback__btn {
  display: inline-flex; align-items: center; justify-content: center; padding: 4px 12px; border: 0; border-radius: 3px; cursor: pointer;
  background: var(--color-card-2); box-shadow: inset 0 0 0 1px #e1e4e6; font-weight: 700; font-size: 12px; line-height: 16px; text-transform: uppercase; color: var(--color-surface);
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.feedback__btn:hover { background: var(--color-card-3); }
.feedback__btn:focus-visible { outline: none; box-shadow: inset 0 0 0 1px #e1e4e6, var(--focus-ring-light); }
.feedback__btn[aria-pressed="true"] { background: var(--color-purple); color: var(--color-text); box-shadow: none; }
.feedback__thanks { font-weight: 700; font-size: 12px; line-height: 16px; color: var(--color-purple); }
.related { display: flex; flex-direction: column; gap: 8px; }
.related__title { font-family: var(--font-display); font-size: 11px; line-height: 12px; text-transform: uppercase; color: var(--color-gray-500); }
.related__list { display: flex; flex-wrap: wrap; gap: 20px; align-self: flex-start; }
.related__item { display: flex; }
.related__link { font-size: 13px; line-height: 17px; color: var(--color-purple); text-decoration: none; }
.related__link:hover { text-decoration: underline; }
.help__empty { font-size: 15px; line-height: 20px; color: var(--color-muted-3); }

.escalate { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 24px; border-radius: var(--radius-sm); background: var(--color-card-2); box-shadow: inset 0 0 0 1px #e1e4e6; }
.escalate__head { display: flex; flex-direction: column; gap: 4px; }
.escalate__title { font-family: var(--font-display); font-size: 18px; line-height: 20px; text-transform: uppercase; color: var(--color-surface); }
.escalate__text { font-size: 14px; line-height: 18px; color: var(--color-muted-3); }
.escalate__actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.escalate__btn {
  display: inline-flex; align-items: center; justify-content: center; padding: 12px 21px;   /* 21: the arrow glyph renders 2px narrower than in the frame */
  font-family: var(--font-display); font-size: 13px; line-height: 14px; text-transform: uppercase; text-decoration: none; white-space: nowrap;
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.escalate__btn--primary { background: var(--color-purple); color: var(--color-text); }
.escalate__btn--primary:hover { background: var(--color-purple-btn); }
.escalate__btn--secondary { box-shadow: inset 0 0 0 1px var(--color-surface); color: var(--color-surface); }
.escalate__btn--secondary:hover { background: var(--color-card-3); }
.escalate__btn:focus-visible { outline: none; box-shadow: var(--focus-ring-light); }

/* ── responsible-wagering transition ──────────────────────────────────── */
.hc-rw { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 56px var(--container-pad); background: var(--color-purple); text-align: center; }
.hc-rw__eyebrow { font-family: var(--font-mono); font-weight: 800; font-size: 12px; line-height: 16px; text-transform: uppercase; color: var(--color-brand); }
.hc-rw__title { font-family: var(--font-display); font-size: 32px; line-height: 35px; text-transform: uppercase; color: var(--color-text); }
.hc-rw__text { font-size: 14px; line-height: 18px; color: var(--color-text); opacity: .85; }

/* ── mobile (390 frame) ───────────────────────────────────────────────── */
@media (max-width: 1199px) {
  .hc-hero { align-items: stretch; gap: 20px; padding: 32px var(--container-pad); box-shadow: none; text-align: left; }
  .hc-hero__head { display: contents; }
  .hc-hero__eyebrow { font-size: 11px; line-height: 14px; }
  .hc-hero__title { font-size: 32px; line-height: 36px; }
  .hc-hero__lead { max-width: none; font-size: 14px; line-height: 20px; opacity: .9; }
  .hc-search { width: auto; gap: 12px; min-height: 52px; padding: 0 16px; box-shadow: none; }
  .hc-search:focus-within { box-shadow: var(--focus-ring); }
  .hc-search__input { font-size: 14px; line-height: 18px; }
  .hc-search__input::placeholder { color: var(--color-muted); }

  .shortcuts { display: block; min-height: 0; padding: 16px var(--container-pad); background: var(--color-surface); box-shadow: inset 0 -1px 0 var(--color-border); overflow-x: auto; scrollbar-width: none; }
  .shortcuts::-webkit-scrollbar { display: none; }
  .shortcuts__track { display: inline-flex; width: max-content; gap: 8px; }
  .shortcuts__link:last-child { margin-right: 2px; }   /* the frame's track is 719: the pills render 2px narrower */
  .shortcuts__link { flex: none; min-height: 32px; padding: 10px 14px; border-radius: 22px; background: var(--color-bg); box-shadow: inset 0 0 0 1px var(--color-border); font-size: 11px; line-height: 12px; }

  .help { display: block; padding: 0; background: var(--color-card-2); }
  .topics { position: relative; flex: none; width: auto; gap: 8px; padding: 20px var(--container-pad) 12px; box-shadow: none; }
  .topics__title { font-size: 11px; line-height: 12px; color: var(--color-muted-3); }
  .topics__current {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 41px; padding: 12px 16px;
    border: 0; border-radius: var(--radius-sm); background: var(--color-card); cursor: pointer; text-align: left;
    box-shadow: inset 4px 0 0 var(--color-brand), 0 1px 2px rgba(0, 0, 0, .031);
  }
  .topics__current:focus-visible { outline: none; box-shadow: inset 4px 0 0 var(--color-brand), var(--focus-ring-light); }
  .topics__current-label { display: flex; align-items: center; gap: 12px; }
  .topics__current .topics__num { font-size: 13px; line-height: 17px; color: var(--color-purple-btn); }
  .topics__current .topics__name { font-weight: 700; font-size: 13px; line-height: 17px; color: var(--color-purple-btn); }
  .topics__chev { width: 12px; height: 12px; color: var(--color-purple-btn); transition: transform var(--dur-fast) var(--ease); }
  .topics__current[aria-expanded="true"] .topics__chev { transform: rotate(180deg); }
  .topics__list { display: none; position: absolute; left: var(--container-pad); right: var(--container-pad); top: 100%; z-index: 50; margin-top: -8px; padding: 8px; border-radius: var(--radius-sm); background: var(--color-card); box-shadow: 0 8px 24px rgba(0, 0, 0, .12), inset 0 0 0 1px #e1e4e6; }
  .topics__list.is-open { display: flex; }
  .topics__tab { min-height: 40px; }

  .help__content { display: block; }
  .topic { display: block; }
  .topic__head { gap: 8px; padding: 12px var(--container-pad) 20px; }
  .topic__eyebrow { color: var(--color-muted-3); }
  .topic__title { font-size: 28px; line-height: 30px; }
  .topic__lead { font-size: 14px; line-height: 20px; }
  .faq__q { gap: 12px; min-height: 54px; padding: 18px var(--container-pad); }
  .faq__q-label { gap: 12px; }
  .faq__num { color: var(--color-muted-3); }
  .faq__text { font-size: 14px; line-height: 18px; }
  .faq__item:has(> .faq__q[aria-expanded="true"]) { background: var(--color-card); }
  .faq__q[aria-expanded="true"] .faq__num, .faq__q[aria-expanded="true"] .faq__text { color: var(--color-purple-btn); }
  .faq__q[aria-expanded="true"] .faq__icon::before, .faq__q[aria-expanded="true"] .faq__icon::after { background: var(--color-purple-btn); }
  .faq__a { padding: 0 var(--container-pad) 24px; }
  .faq__step { min-height: 40px; }
  .feedback { flex-direction: column; align-items: stretch; gap: 12px; width: auto; padding: 16px; background: var(--color-card-2); }
  .feedback__q { font-weight: 700; font-size: 12px; line-height: 16px; }
  .feedback__btn { flex: 1; min-height: 41px; padding: 12px 0; border-radius: var(--radius-sm); background: var(--color-card); font-size: 13px; line-height: 17px; }
  .related { gap: 12px; }
  .related__title { color: var(--color-muted-3); }
  .related__list { flex-direction: column; align-self: stretch; gap: 8px; }
  .related__item { display: flex; align-items: center; min-height: 41px; padding: 12px 0; box-shadow: inset 0 -1px 0 #e1e4e6; }
  .related__link { font-weight: 600; color: var(--color-purple-btn); }
  .help__empty { padding: 24px var(--container-pad); }

  .escalate { align-items: stretch; gap: 24px; padding: 40px var(--container-pad); border-radius: 0; background: var(--color-bg); box-shadow: none; }
  .escalate__head { gap: 8px; }
  .escalate__title { font-size: 20px; line-height: 22px; color: var(--color-text); }
  .escalate__text { font-size: 14px; line-height: 20px; color: var(--color-muted); }
  .escalate__actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .escalate__btn { min-height: 42px; padding: 14px 0; border-radius: var(--radius-sm); }
  .escalate__btn--primary { background: var(--color-brand); color: var(--color-surface); }
  .escalate__btn--primary:hover { background: var(--color-brand-hover); }
  .escalate__btn--secondary { box-shadow: inset 0 0 0 1px var(--color-text); color: var(--color-text); }
  .escalate__btn--secondary:hover { background: var(--color-surface); }

  .hc-rw { align-items: stretch; gap: 12px; padding: 40px var(--container-pad); text-align: left; }
  .hc-rw__eyebrow { font-size: 11px; line-height: 14px; }
  .hc-rw__title { font-size: 28px; line-height: 32px; }
  .hc-rw__text { line-height: 20px; }
}

.hc-search:focus-within { box-shadow: var(--focus-ring-light); }   /* the borderless input's focus shows on its box */
@media (max-width: 1199px) {
  .hc-search { box-shadow: inset 0 0 0 1px var(--color-brand); }   /* the mobile frame keeps a 1px brand border */
}
