/* ==========================================================================
   Help Centre page
   Desktop: hero 528 · directory layout 1122 · RG hub 408
   Mobile:  hero 260 · topic selector 93 · dropdown 569 · topic header 103 · FAQ 824 · RG 619
   Figma strokes are "inside" strokes (no layout cost) → drawn with inset box-shadows.
   ========================================================================== */
.page-help {
  --hc-ink: #1f1914;
  --hc-muted: #61574f;
  --hc-orange: #e55b1c;
  --hc-hero-bg: #f3ede2;
  --hc-open-bg: #f8f3ea;
}

/* Hero ------------------------------------------------------------------- */
.hc-hero {
  position: relative; overflow: hidden;
  background: var(--hc-hero-bg);
  box-shadow: inset 0 1px 0 var(--cream), inset 0 -1px 0 var(--cream);
  padding: 96px var(--gutter);
}
.hc-hero__mark {
  position: absolute; right: 120px; top: 8px; height: 512px; width: 191px;
  font-family: var(--f-head); font-weight: 700; font-size: 380px; line-height: 512px;
  color: #fdfbf7; opacity: .4; pointer-events: none; user-select: none; white-space: nowrap;
}
.hc-hero__content { position: relative; width: 800px; max-width: 100%; display: flex; flex-direction: column; gap: 24px; }
.hc-hero__title { font-family: var(--f-head); font-weight: 700; font-size: 120px; line-height: .85; color: var(--hc-ink); }
.hc-search {
  display: flex; align-items: center; gap: 16px; height: 60px; padding: 0 24px;
  background: var(--white); border-radius: 12px; box-shadow: inset 0 0 0 2px var(--line);
}
.hc-search__icon { width: 24px; height: 24px; flex: 0 0 24px; color: var(--hc-orange); }
.hc-search__input {
  flex: 1 1 auto; min-width: 0; height: 24px; -webkit-appearance: none; appearance: none;
  font-family: var(--f-body); font-size: 18px; line-height: 23px; color: var(--hc-ink);
}
.hc-search__input::placeholder { color: var(--hc-muted); }
.hc-search__input::-webkit-search-cancel-button, .hc-search__input::-webkit-search-decoration { -webkit-appearance: none; display: none; }
.hc-hero__desc { font-family: var(--f-body); font-size: 16px; line-height: 24px; color: var(--hc-muted); }

/* Mobile topic selector + dropdown (hidden on desktop via .only-m) ------- */
.hc-topic { display: flex; flex-direction: column; gap: 4px; padding: 20px var(--mobile-gutter) 8px; }
.hc-topic__label { font-family: var(--f-body); font-weight: 700; font-size: 10px; line-height: 13px; letter-spacing: 1px; color: var(--muted); }
.hc-topic__btn {
  display: flex; justify-content: space-between; align-items: center; height: 48px; padding: 0 16px; width: 100%;
  background: var(--white); border: 1px solid #ead6c3; border-radius: 8px;
  font-family: var(--f-body); font-weight: 700; font-size: 14px; line-height: 18px; color: var(--ink);
}
.hc-topic__caret { font-size: 14px; line-height: 18px; transition: transform .2s ease; }
.hc-topic__btn:not(.is-open) .hc-topic__caret { transform: rotate(180deg); }
.hc-dropdown { display: none; padding: 0 var(--mobile-gutter) 20px; }
.hc-dropdown.is-open { display: block; }
.hc-dropdown__card {
  background: var(--white); border-radius: 8px; padding: 8px 0;
  box-shadow: inset 0 0 0 1px #ead6c3, 0 4px 12px rgba(28, 20, 14, .06);
}
.hc-dropdown__row {
  display: flex; justify-content: space-between; align-items: center; gap: 8px; width: 100%; padding: 12px 16px;
  background: var(--white); box-shadow: inset 0 -1px 0 var(--paper);
  font-family: var(--f-body); font-weight: 500; font-size: 13px; line-height: 17px; color: var(--ink); white-space: nowrap;
}
.hc-dropdown__row.is-active { background: var(--paper); font-weight: 700; }
.hc-dropdown__check { display: none; width: 14px; height: 14px; flex: 0 0 14px; color: var(--orange); }
.hc-dropdown__row.is-active .hc-dropdown__check { display: block; }

/* Directory layout ------------------------------------------------------- */
.hc-main { display: flex; gap: 80px; padding: 80px var(--gutter) 96px; }
.hc-sidebar { flex: 0 0 300px; width: 300px; }
.hc-sidebar__list { display: flex; flex-direction: column; gap: 6px; }
.hc-cat {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; border-radius: 8px;
  transition: background-color .15s ease;
}
.hc-cat:hover { background: rgba(31, 25, 20, .06); }
.hc-cat__num { flex: 0 0 auto; font-family: var(--f-head); font-weight: 700; font-size: 14px; line-height: 19px; color: var(--hc-muted); }
.hc-cat__label { flex: 1 1 auto; min-width: 0; font-family: var(--f-head); font-weight: 700; font-size: 16px; line-height: 22px; letter-spacing: .5px; color: var(--hc-ink); }
.hc-cat__chev { display: none; width: 14px; height: 14px; flex: 0 0 14px; color: var(--hc-orange); }
.hc-cat.is-active { background: var(--hc-ink); }
.hc-cat.is-active .hc-cat__num { color: #ecc543; }
.hc-cat.is-active .hc-cat__label { color: var(--white); }
.hc-cat.is-active .hc-cat__chev { display: block; }

.hc-content { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 40px; }
.hc-topic-head { display: flex; flex-direction: column; gap: 8px; }
.hc-topic-head__title { font-family: var(--f-head); font-weight: 700; font-size: 40px; line-height: 54px; color: var(--hc-ink); }
.hc-topic-head__desc { font-family: var(--f-body); font-size: 16px; line-height: 21px; color: var(--hc-muted); }

/* FAQ accordion ---------------------------------------------------------- */
.hc-faq { display: flex; flex-direction: column; gap: 16px; }
.hc-faq__item {
  background: var(--white); border-radius: 12px; overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--cream);
  transition: background-color .15s ease, box-shadow .15s ease;
}
.hc-faq__item.is-open { background: var(--hc-open-bg); box-shadow: inset 0 0 0 2px var(--hc-orange); }
.hc-faq__h { font: inherit; }
.hc-faq__q { display: flex; justify-content: space-between; align-items: center; gap: 16px; width: 100%; padding: 20px; }
.hc-faq__text { font-family: var(--f-body); font-weight: 700; font-size: 16px; line-height: 21px; color: var(--hc-ink); }
.hc-faq__ico { flex: 0 0 20px; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; }
.hc-faq__plus, .hc-faq__minus { width: 20px; height: 20px; }
.hc-faq__plus { color: var(--hc-ink); }
.hc-faq__minus { display: none; color: var(--hc-orange); }
.hc-faq__item.is-open .hc-faq__plus { display: none; }
.hc-faq__item.is-open .hc-faq__minus { display: block; }
.hc-faq__glyph { display: none; }
.hc-faq__a {
  display: flex; flex-direction: column; gap: 16px; padding: 0 20px 24px;
  box-shadow: inset 0 1px 0 var(--cream);
}
.hc-faq__intro { font-family: var(--f-body); font-weight: 600; font-size: 15px; line-height: 20px; color: var(--hc-ink); }
.hc-steps { display: flex; flex-direction: column; gap: 12px; }
.hc-steps__item { display: flex; align-items: flex-start; gap: 12px; }
.hc-steps__n { flex: 0 0 20px; width: 20px; font-family: var(--f-body); font-weight: 700; font-size: 15px; line-height: 20px; color: var(--hc-orange); }
.hc-steps__t { flex: 1 1 auto; min-width: 0; font-family: var(--f-body); font-size: 15px; line-height: 23px; color: var(--hc-ink); }

/* Responsible gambling hub (page variant of the shared .rg-hub) ------------ */
.hc-rg .rg-hub__title { font-size: 36px; line-height: 48px; color: var(--hc-ink); }
.hc-rg .rg-hub__sub { font-size: 16px; line-height: 21px; color: var(--hc-ink); opacity: 1; }
.hc-rg .rg-card { border: 0; gap: 16px; }
.hc-rg .rg-card:nth-child(2) { box-shadow: inset 0 0 0 1px var(--line); }
.hc-rg .rg-card__title { color: var(--hc-ink); }
.hc-rg .rg-card__text { font-size: 14px; line-height: 21px; color: var(--hc-muted); }
.hc-rg .rg-card__link { line-height: 17px; color: var(--hc-orange); }
.hc-rg .rg-card__link:hover { text-decoration: underline; }

/* ==========================================================================
   Mobile (≤767px)
   ========================================================================== */
@media (max-width: 767px) {
  .page-help { --hc-ink: var(--ink); --hc-muted: var(--muted); --hc-orange: var(--orange); }

  .hc-hero { padding: 32px var(--mobile-gutter) 24px; box-shadow: none; }
  .hc-hero__mark {
    right: -10px; top: 10px; width: 120px; height: 120px;
    font-size: 140px; line-height: 189px; color: var(--sand); opacity: .15;
  }
  .hc-hero__content { width: auto; gap: 16px; }
  .hc-hero__title { font-size: 44px; line-height: 44px; }
  .hc-search { height: 48px; padding: 0 12px; gap: 8px; border-radius: 8px; box-shadow: inset 0 0 0 1px #ead6c3; }
  .hc-search__icon { width: 18px; height: 18px; flex-basis: 18px; }
  .hc-search__input { height: 18px; font-size: 13px; line-height: 17px; text-overflow: ellipsis; }
  .hc-hero__desc { font-size: 13px; line-height: 18px; }

  .hc-main { display: block; padding: 0; }
  .hc-content { display: block; }
  .hc-topic-head { gap: 6px; padding: 0 var(--mobile-gutter) 16px; }
  .hc-topic-head__title { font-size: 32px; line-height: 43px; }
  .hc-topic-head__desc { font-size: 14px; line-height: 19px; }

  .hc-faq { gap: 12px; padding: 0 var(--mobile-gutter) 32px; }
  .hc-faq__item { border-radius: 8px; box-shadow: inset 0 0 0 1px #ead6c3; padding: 16px; }
  .hc-faq__item.is-open { box-shadow: inset 0 0 0 1px var(--orange); }
  .hc-faq__q { padding: 0; gap: 0; }
  .hc-faq__text { font-size: 15px; line-height: 20px; }
  .hc-faq__ico { flex-basis: auto; width: auto; height: auto; }
  .hc-faq__plus, .hc-faq__minus { display: none !important; }
  .hc-faq__glyph { font-family: var(--f-body); font-weight: 700; }
  .hc-faq__glyph--plus { display: block; font-size: 18px; line-height: 23px; color: var(--muted); }
  .hc-faq__glyph--minus { font-size: 20px; line-height: 26px; color: var(--orange); }
  .hc-faq__item.is-open .hc-faq__glyph--plus { display: none; }
  .hc-faq__item.is-open .hc-faq__glyph--minus { display: block; }
  .hc-faq__a { gap: 12px; padding: 0; margin-top: 16px; box-shadow: none; }
  .hc-faq__intro { font-weight: 700; font-size: 14px; line-height: 18px; }
  .hc-steps__item { gap: 8px; }
  .hc-steps__n { flex-basis: auto; width: auto; font-size: 14px; line-height: 18px; }
  .hc-steps__t { font-size: 14px; line-height: 19px; }

  .hc-rg.rg-hub { padding: 16px; gap: 16px; }
  .hc-rg .rg-hub__head { gap: 16px; }
  .hc-rg .rg-hub__title { font-size: 24px; line-height: 32px; text-transform: none; }
  .hc-rg .rg-hub__sub { font-size: 14px; line-height: 19px; color: var(--ink); }
  .hc-rg .rg-card { background: var(--white); border-radius: 12px; padding: 16px; gap: 8px; box-shadow: inset 0 0 0 1px #b2d0e6; }
  .hc-rg .rg-card__title { font-family: var(--f-body); font-size: 15px; line-height: 20px; text-transform: none; }
  .hc-rg .rg-card__text { font-size: 14px; line-height: 18px; }
  .hc-rg .rg-card__link { display: inline; align-self: flex-start; font-family: var(--f-body); text-transform: none; text-decoration: underline; }
}
