/* ============================================================
   Academyship Help Centre hub: help-centre/index.html (/help-centre/)
   ------------------------------------------------------------
   The page sits on the shared animated grid (homepage-global-bg)
   in its own light aqua palette. A few sections carry their own
   solid designs: the light-square lilac setup band and the pale
   sun support band. The hero links nowhere except the search:
   its guide window and stickers are decoration.
   House rules for this page: a box has one border at most and no
   shadow, and corners are 4px.
   ============================================================ */

@font-face { font-family: 'NibPro'; src: url('../Fonts/NibPro.woff2') format('woff2'); font-weight: 400 600; font-display: swap; }
@font-face { font-family: 'NibPro'; src: url('../Fonts/NibPro-Bold.woff2') format('woff2'); font-weight: 700 900; font-display: swap; }
@font-face { font-family: 'AnekBangla'; src: url('../Fonts/AnekBangla.woff2') format('woff2'); font-weight: 400 600; font-display: swap; }
@font-face { font-family: 'AnekBangla'; src: url('../Fonts/AnekBangla-Bold.woff2') format('woff2'); font-weight: 700 900; font-display: swap; }

:root {
  --hx-ink: #15132b;
  --hx-violet: #4a2fe0;
  --hx-violet-deep: #33209f;
  --hx-lime: #c9f266;
  --hx-sky: #8fd4ff;
  --hx-mint: #6fe3c4;
  --hx-pink: #ff9fd2;
  --hx-sun: #ffd84a;
  --hx-lilac: #c3b2ff;
  --hx-orange: #ffad66;
  --hx-coral: #ff8473;
  --hx-muted: #3d3a57;
  --hx-r: 4px;
  --hx-head: 'AnekBangla', system-ui, sans-serif;
  --hx-body: 'NibPro', system-ui, sans-serif;
  --hx-ease: cubic-bezier(.2, .8, .2, 1);

  /* The shared animated grid (style/homepage-global-bg.css + script/homepage-global-bg.js).
     The hub has its own light palette, used by no other page: an aqua base with
     very pale mint minor lines and blush major lines, so the periwinkle crosses
     stay the strongest mark on the grid, and a lemon lens glow. Every line stays
     far lighter than the text. */
  --ptx-bg-color: #eefbf8;
  --ptx-bg-minor: #c6efe5;
  --ptx-bg-major: #ffdcec;
  --ptx-bg-cross: #d4ccff;
  --ptx-bg-highlight: #fff09a;
  --ptx-bg-minor-op: 0.22;
  --ptx-bg-major-op: 0.22;
  --ptx-bg-cross-op: 0.42;
  --ptx-bg-highlight-op: 0.14;
}

/* The page colour comes from the grid canvas, so the body stays transparent. */
body.hx-body { margin: 0; }

.hx { color: var(--hx-ink); font-family: var(--hx-body); font-size: 1rem; line-height: 1.55; }
.hx *, .hx *::before, .hx *::after { box-sizing: border-box; }
/* zero specificity, so every component sets its own link colour */
:where(.hx) a { color: inherit; text-decoration: none; }
.hx h1, .hx h2, .hx h3 { font-family: var(--hx-head); font-weight: 800; margin: 0; line-height: 1.05; letter-spacing: -.01em; }
.hx p { margin: 0; }
.hx :focus-visible { outline: 3px solid var(--hx-violet); outline-offset: 3px; }
.hx svg { display: block; }

.hx-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* shared arrow used by every card */
.hx-arrow { width: 22px; height: 22px; flex: none; }

/* ================================================================ hero */
.hx-hero { position: relative; padding: 70px 0 30px; }
.hx-hero__inner { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hx-hero__kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; color: var(--hx-violet-deep);
  margin-bottom: 18px;
}
.hx-hero__kicker::before { content: ''; width: 10px; height: 10px; background: var(--hx-violet); border-radius: 2px; }
.hx-hero__title { font-size: clamp(3rem, 6.4vw, 5.5rem); line-height: .92; letter-spacing: -.025em; }
.hx-hero__title span { display: block; animation: hx-rise .8s var(--hx-ease) both; }
.hx-hero__title span + span { animation-delay: .12s; }
.hx-hero__sub { margin-top: 22px; max-width: 31em; font-size: 1.15rem; color: var(--hx-muted); animation: hx-rise .8s var(--hx-ease) .22s both; }

.hx-search {
  margin-top: 30px;
  display: flex; align-items: center; gap: 10px;
  background: #fff;
  border: 2px solid var(--hx-ink);
  border-radius: var(--hx-r);
  padding: 7px 7px 7px 16px;
  max-width: 560px;
  animation: hx-rise .8s var(--hx-ease) .32s both;
}
.hx-search__ico { width: 22px; height: 22px; flex: none; color: var(--hx-violet); }
.hx-search__input {
  flex: 1; min-width: 0;
  border: 0; outline: 0; background: transparent;
  font: 500 1.06rem/1.4 var(--hx-body); color: var(--hx-ink);
  padding: 10px 0;
  cursor: pointer;
}
.hx-search__input::placeholder { color: #6d6a86; }
.hx-search__btn {
  flex: none;
  border: 0; border-radius: var(--hx-r);
  background: var(--hx-ink); color: #fff;
  font: 700 1rem/1 var(--hx-head);
  padding: 14px 22px;
  cursor: pointer;
  transition: background-color .2s var(--hx-ease);
}
.hx-search__btn:hover { background: var(--hx-violet); }
.hx-search:focus-within { outline: 3px solid var(--hx-violet); outline-offset: 3px; }

/* "Try" chips open the search with a word typed in: they never leave the page. */
.hx-try { margin-top: 18px; display: flex; align-items: center; gap: 10px; animation: hx-rise .8s var(--hx-ease) .42s both; }
.hx-try__label { flex: none; font-size: .95rem; color: #4b4864; }
/* Without the script the chips simply wrap. */
.hx-try__window { flex: 1 1 auto; min-width: 0; display: flex; flex-wrap: wrap; gap: 8px; }
/* With it: one row at a time. The window clips the rows sliding in and out, and
   leaves room above and below for the hover lift and the timer line. */
.hx-try__window.is-sliding { display: block; position: relative; height: 52px; margin: -9px 0; overflow: hidden; }
.hx-try__row { position: absolute; left: 4px; top: 9px; width: max-content; display: flex; gap: 8px; }
.hx-try__row .hx-try__chip { --i: 0; animation: hx-chip-in .6s var(--hx-ease) backwards; animation-delay: calc(var(--i) * 70ms); }
.hx-try__row.is-leaving { pointer-events: none; }
.hx-try__row.is-leaving .hx-try__chip { animation: hx-chip-out .42s cubic-bezier(.6, 0, .8, .4) forwards; animation-delay: calc(var(--i) * 45ms); }
/* The timer: a thin line that fills under the row; when it is full the next row
   slides in (script listens for its animationend). Hover or focus pauses it. */
.hx-try__row::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--hx-violet); opacity: .35; border-radius: 2px;
  transform: scaleX(0); transform-origin: left;
  animation: hx-try-time 4.2s linear .6s forwards;
}
.hx-try__row.is-leaving::after { animation: none; opacity: 0; }
.hx-try__window:hover .hx-try__row::after,
.hx-try__window:focus-within .hx-try__row::after { animation-play-state: paused; }
@keyframes hx-chip-in { from { transform: translateY(44px) rotate(5deg); opacity: 0; } }
@keyframes hx-chip-out { to { transform: translateY(-44px) rotate(-5deg); opacity: 0; } }
@keyframes hx-try-time { to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) {
  .hx-try__row .hx-try__chip { animation-name: hx-chip-fade-in; animation-delay: 0s; }
  .hx-try__row.is-leaving .hx-try__chip { animation-name: hx-chip-fade-out; animation-delay: 0s; }
  .hx-try__row::after { animation-duration: 7s; }
}
/* Phones: slightly smaller chips, so a row still holds three. */
@media (max-width: 640px) {
  .hx-try { flex-direction: column; align-items: stretch; gap: 6px; }
  .hx-try__label { font-size: .88rem; }
  .hx-try__window.is-sliding { margin-left: -4px; }
  .hx-try__row, .hx-try__window { gap: 6px; }
  .hx-try .hx-try__chip { font-size: .82rem; padding: 8px 9px; }
}
@keyframes hx-chip-fade-in { from { opacity: 0; } }
@keyframes hx-chip-fade-out { to { opacity: 0; } }
.hx-try__chip {
  appearance: none; border: 0; cursor: pointer;
  background: var(--c); color: var(--hx-ink);
  border-radius: var(--hx-r);
  font: 700 .92rem/1 var(--hx-body);
  padding: 9px 13px;
  transition: transform .3s var(--hx-ease), background-color .2s, color .2s;
}
.hx-try__chip:hover, .hx-try__chip:focus-visible { background: var(--hx-ink); color: var(--c); transform: translateY(-3px) rotate(-2deg); }

/* The scene: a guide being followed, step by step. Decoration only. */
.hx-scene { position: relative; min-height: 440px; }
.hx-win {
  position: absolute; left: 7%; right: 3%; top: 44px;
  background: #fff;
  border: 2px solid var(--hx-ink);
  border-radius: var(--hx-r);
  overflow: hidden;
  animation: hx-rise .9s var(--hx-ease) .3s both;
}
.hx-win__bar { display: flex; align-items: center; gap: 12px; background: var(--hx-violet); color: #fff; padding: 12px 16px; }
.hx-win__dots { display: flex; gap: 5px; }
.hx-win__dots i { width: 10px; height: 10px; border-radius: 2px; background: rgba(255,255,255,.5); }
.hx-win__dots i:first-child { background: var(--hx-lime); }
.hx-win__title { font: 800 1.08rem/1 var(--hx-head); }
.hx-win__tag { margin-left: auto; font-size: .75rem; font-weight: 700; background: var(--hx-lime); color: var(--hx-ink); padding: 4px 8px; border-radius: var(--hx-r); }
.hx-win__body { padding: 20px 20px 22px; }
.hx-win__lead { font-size: .96rem; color: var(--hx-muted); margin-bottom: 16px; }
.hx-win__track { position: relative; }
.hx-win__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hx-win__step {
  position: relative; isolation: isolate; overflow: hidden; white-space: nowrap;
  height: 48px; display: flex; align-items: center; gap: 12px;
  padding: 0 14px;
  background: #f3f1fb;
  border-radius: var(--hx-r);
  font-weight: 700; font-size: .98rem;
}
.hx-win__step::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--c);
  transform-origin: left; transform: scaleX(0);
  animation: var(--a) 8s var(--hx-ease) infinite;
}
.hx-win__n { width: 28px; height: 28px; flex: none; display: grid; place-items: center; background: var(--hx-ink); color: #fff; border-radius: var(--hx-r); font: 800 .9rem/1 var(--hx-head); }
.hx-win__tick { margin-left: auto; width: 24px; height: 24px; color: var(--hx-ink); transform-origin: center; transform: scale(0); animation: var(--t) 8s var(--hx-ease) infinite; }
.hx-win__progress { margin-top: 16px; height: 8px; background: #efedf7; border-radius: var(--hx-r); overflow: hidden; }
.hx-win__progress i { display: block; height: 100%; background: var(--hx-ink); transform-origin: left; transform: scaleX(0); animation: hx-prog 8s var(--hx-ease) infinite; }
.hx-cursor { position: absolute; right: 26px; top: 0; width: 26px; height: 26px; z-index: 2; animation: hx-cur 8s var(--hx-ease) infinite; }

.hx-sticker {
  position: absolute; z-index: 3;
  display: flex; align-items: center; gap: 8px;
  background: var(--c); color: var(--hx-ink);
  font: 800 .98rem/1 var(--hx-head);
  padding: 11px 14px;
  border-radius: var(--hx-r);
  rotate: var(--r, 0deg);
  transform: translate(var(--px, 0px), var(--py, 0px));
  transition: transform .6s var(--hx-ease);
  animation: hx-pop .6s var(--hx-ease) both, hx-float 7s ease-in-out infinite;
  animation-delay: var(--d, .6s), calc(var(--d, .6s) + .6s);
}
.hx-sticker svg { width: 18px; height: 18px; }
.hx-sticker--1 { top: 0; left: 0; --c: var(--hx-pink); --r: -5deg; --d: .7s; }
.hx-sticker--2 { top: 6px; right: 0; --c: var(--hx-mint); --r: 4deg; --d: .85s; }
.hx-sticker--3 { bottom: 34px; left: -2%; --c: var(--hx-sun); --r: 3deg; --d: 1s; }
.hx-sticker--4 { bottom: 0; right: 8%; --c: var(--hx-coral); --r: -3deg; --d: 1.15s; }

@keyframes hx-rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes hx-pop { from { opacity: 0; scale: .5; } to { opacity: 1; scale: 1; } }
@keyframes hx-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes hx-s1 { 0%, 6% { transform: scaleX(0); } 14%, 88% { transform: scaleX(1); } 96%, 100% { transform: scaleX(0); } }
@keyframes hx-s2 { 0%, 30% { transform: scaleX(0); } 38%, 88% { transform: scaleX(1); } 96%, 100% { transform: scaleX(0); } }
@keyframes hx-s3 { 0%, 54% { transform: scaleX(0); } 62%, 88% { transform: scaleX(1); } 96%, 100% { transform: scaleX(0); } }
@keyframes hx-t1 { 0%, 10% { transform: scale(0); } 16%, 88% { transform: scale(1); } 94%, 100% { transform: scale(0); } }
@keyframes hx-t2 { 0%, 34% { transform: scale(0); } 40%, 88% { transform: scale(1); } 94%, 100% { transform: scale(0); } }
@keyframes hx-t3 { 0%, 58% { transform: scale(0); } 64%, 88% { transform: scale(1); } 94%, 100% { transform: scale(0); } }
@keyframes hx-prog {
  0%, 6% { transform: scaleX(0); } 14%, 30% { transform: scaleX(.333); } 38%, 54% { transform: scaleX(.666); }
  62%, 88% { transform: scaleX(1); } 96%, 100% { transform: scaleX(0); }
}
@keyframes hx-cur {
  0% { transform: translate(40px, 210px); opacity: 0; }
  6% { transform: translate(0, 22px); opacity: 1; }
  12% { transform: translate(-4px, 26px); }
  30% { transform: translate(0, 80px); }
  36% { transform: translate(-4px, 84px); }
  54% { transform: translate(0, 138px); }
  60% { transform: translate(-4px, 142px); }
  88% { transform: translate(-4px, 142px); opacity: 1; }
  96%, 100% { transform: translate(40px, 210px); opacity: 0; }
}

/* ============================================================= sections */
.hx-section { padding: 88px 0 0; }
.hx-head { margin-bottom: 28px; }
.hx-head--split { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
/* The words shrink and the link keeps its one line, so the link never runs off the edge. */
.hx-head--split > div { flex: 1 1 auto; min-width: 0; }
.hx-head--split > .hx-link { flex: none; white-space: nowrap; }
.hx-head h2 { font-size: clamp(1.9rem, 3.2vw, 2.7rem); }
.hx-head p { margin-top: 8px; color: #4b4864; font-size: 1.06rem; max-width: 40em; }
.hx-link {
  flex: none;
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700;
  color: var(--hx-violet);
  padding-bottom: 3px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 2px no-repeat;
  transition: color .2s, background-size .35s var(--hx-ease);
}
.hx-link .hx-arrow { width: 18px; height: 18px; transition: transform .3s var(--hx-ease); }
.hx-link:hover { color: var(--hx-ink); background-size: 0 2px; background-position: 100% 100%; }
.hx-link:hover .hx-arrow { transform: translateX(5px); }

/* Task tiles: solid colour; on hover ink rises through the tile and an arrow flies in */
.hx-task-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.hx-task {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; gap: 4px;
  background: var(--c);
  border-radius: var(--hx-r);
  padding: 22px 20px 24px;
  min-height: 186px;
  transition: transform .5s var(--hx-ease);
}
.hx-task::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--hx-ink);
  clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%);
  transition: clip-path .55s var(--hx-ease);
}
.hx-task__ico { width: 46px; height: 46px; display: grid; place-items: center; background: var(--hx-ink); color: var(--c); border-radius: var(--hx-r); margin-bottom: auto; transition: transform .5s var(--hx-ease), background-color .3s, color .3s; }
.hx-task__ico svg { width: 22px; height: 22px; }
.hx-task strong { font: 800 1.22rem/1.15 var(--hx-head); margin-top: 24px; transition: color .3s; }
.hx-task__txt { font-size: .95rem; color: #33304d; transition: color .3s; }
.hx-task .hx-go { position: absolute; top: 22px; right: 20px; width: 30px; height: 30px; color: var(--c); opacity: 0; transform: translate(-14px, 14px); transition: opacity .3s, transform .5s var(--hx-ease); }
.hx-task:hover, .hx-task:focus-visible { transform: translateY(-6px) rotate(-1deg); }
.hx-task:hover::before, .hx-task:focus-visible::before { clip-path: polygon(0 -20%, 100% 0, 100% 100%, 0 100%); }
.hx-task:hover .hx-task__ico, .hx-task:focus-visible .hx-task__ico { background: var(--c); color: var(--hx-ink); transform: rotate(-12deg) scale(1.1); }
.hx-task:hover strong, .hx-task:focus-visible strong { color: #fff; }
.hx-task:hover .hx-task__txt, .hx-task:focus-visible .hx-task__txt { color: var(--c); }
.hx-task:hover .hx-go, .hx-task:focus-visible .hx-go { opacity: 1; transform: none; }

/* Topic cards: a divider with a coloured tab. On hover the tab's colour floods out from its corner. */
.hx-divider-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 16px; padding-top: 6px; }
.hx-divider { position: relative; display: flex; flex-direction: column; }
.hx-divider__tab {
  align-self: flex-start;
  background: var(--c);
  border: 2px solid var(--hx-ink);
  border-bottom: 0;
  border-radius: var(--hx-r) var(--hx-r) 0 0;
  padding: 5px 12px 4px;
  font-size: .82rem; font-weight: 700;
  margin-left: 14px;
  position: relative; top: 2px;
  transform-origin: bottom left;
  transition: transform .4s var(--hx-ease);
}
.hx-divider__body {
  position: relative; isolation: isolate; overflow: hidden;
  flex: 1;
  display: flex; flex-direction: column; gap: 8px;
  background: #fff;
  border: 2px solid var(--hx-ink);
  border-radius: var(--hx-r);
  padding: 20px 20px 20px;
}
.hx-divider__body::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--c);
  clip-path: circle(0% at 30px 0%);
  transition: clip-path .65s var(--hx-ease);
}
.hx-divider h3 { font-size: 1.35rem; transition: transform .45s var(--hx-ease); }
.hx-divider p { font-size: .96rem; color: var(--hx-muted); }
.hx-divider__go { margin-top: auto; padding-top: 10px; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .92rem; color: var(--hx-violet); transition: color .3s; }
.hx-divider__go .hx-arrow { width: 18px; height: 18px; transition: transform .4s var(--hx-ease); }
.hx-divider:hover .hx-divider__body::before, .hx-divider:focus-visible .hx-divider__body::before { clip-path: circle(160% at 30px 0%); }
.hx-divider:hover .hx-divider__tab, .hx-divider:focus-visible .hx-divider__tab { transform: translateY(-6px) rotate(-4deg); }
.hx-divider:hover h3, .hx-divider:focus-visible h3 { transform: translateX(5px); }
.hx-divider:hover .hx-divider__go, .hx-divider:focus-visible .hx-divider__go { color: var(--hx-ink); }
.hx-divider:hover .hx-divider__go .hx-arrow, .hx-divider:focus-visible .hx-divider__go .hx-arrow { transform: translateX(8px); }

/* Guides by role: a switcher that changes the list in place */
.hx-roles__box {
  display: grid; grid-template-columns: 290px minmax(0, 1fr);
  background: #fff;
  border: 2px solid var(--hx-ink);
  border-radius: var(--hx-r);
  overflow: hidden;
}
.hx-roles__tabs { display: flex; flex-direction: column; gap: 6px; padding: 12px; background: #f5f3fd; border-right: 2px solid var(--hx-ink); }
.hx-role-tab {
  appearance: none; border: 0; cursor: pointer; text-align: left;
  display: flex; align-items: center; gap: 12px;
  padding: 13px 14px;
  border-radius: var(--hx-r);
  background: transparent; color: var(--hx-ink);
  font: 800 1.04rem/1.15 var(--hx-head);
  transition: background-color .25s, color .25s, padding-left .35s var(--hx-ease);
}
.hx-role-tab__sw { width: 14px; height: 14px; flex: none; border-radius: 2px; background: var(--c); transition: transform .4s var(--hx-ease); }
.hx-role-tab:hover { background: var(--c); padding-left: 20px; }
.hx-role-tab:hover .hx-role-tab__sw { background: var(--hx-ink); }
.hx-role-tab[aria-selected="true"] { background: var(--hx-ink); color: #fff; padding-left: 20px; }
.hx-role-tab[aria-selected="true"] .hx-role-tab__sw { background: var(--c); transform: rotate(45deg) scale(1.15); }
.hx .hx-role-tab:focus-visible { outline-offset: -3px; }
.hx-role-panel { padding: 24px 28px 22px; }
.hx-role-panel__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.hx-role-panel h3 { font-size: 1.6rem; }
.hx-role-panel__head p { color: var(--hx-muted); font-size: .96rem; }
.hx-role-list { list-style: none; margin: 14px 0 0; padding: 0; }
.hx-role-list li + li { border-top: 2px solid #ecebf3; }
.hx-role-list a {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1fr) auto 24px; align-items: center; gap: 16px;
  padding: 14px 12px;
}
.hx-role-list a::before {
  content: ''; position: absolute; inset: 3px 0; z-index: -1;
  background: var(--c);
  border-radius: var(--hx-r);
  transform: scaleX(0); transform-origin: left;
  transition: transform .45s var(--hx-ease);
}
.hx-role-list strong { display: block; font: 800 1.12rem/1.2 var(--hx-head); transition: transform .4s var(--hx-ease); }
.hx-role-list span.hx-role-list__ex { display: block; color: var(--hx-muted); font-size: .94rem; margin-top: 2px; }
.hx-role-list .hx-arrow { transition: transform .4s var(--hx-ease); }
.hx-role-list a:hover::before, .hx-role-list a:focus-visible::before { transform: scaleX(1); }
.hx-role-list a:hover strong, .hx-role-list a:focus-visible strong { transform: translateX(6px); }
.hx-role-list a:hover .hx-arrow, .hx-role-list a:focus-visible .hx-arrow { transform: translateX(4px) rotate(-45deg); }
.hx-role-panel.is-entering .hx-role-list li { animation: hx-rise .45s var(--hx-ease) both; }
.hx-role-panel.is-entering .hx-role-list li:nth-child(2) { animation-delay: 50ms; }
.hx-role-panel.is-entering .hx-role-list li:nth-child(3) { animation-delay: 100ms; }
.hx-role-panel.is-entering .hx-role-list li:nth-child(4) { animation-delay: 150ms; }
.hx-role-panel.is-entering .hx-role-list li:nth-child(5) { animation-delay: 200ms; }
/* Without the script every panel shows, one under another. */
.hx-roles:not(.is-ready) .hx-role-panel[hidden] { display: block; border-top: 2px solid var(--hx-ink); }

.hx-acc { font-size: .78rem; font-weight: 700; padding: 4px 9px; border-radius: var(--hx-r); white-space: nowrap; }
.hx-acc--public { background: #e4f8c2; }
.hx-acc--customer { background: #e7e0ff; color: var(--hx-violet-deep); }
.hx-acc--admin { background: #ffefb3; }

/* Getting started: a numbered path on a band of light squares */
.hx-start {
  margin-top: 88px;
  padding: 76px 0 84px;
  background-color: #f7f5ff;
  /* hairline squares, only just darker than the band */
  background-image:
    linear-gradient(#efebff 1px, transparent 1px),
    linear-gradient(90deg, #efebff 1px, transparent 1px);
  background-size: 28px 28px;
}
.hx-start .hx-head p { color: #403a63; }
.hx-start + .hx-section { padding-top: 88px; }
.hx-path {
  list-style: none; margin: 0; padding: 0;
  position: relative;
  /* Spread edge to edge: box 1 on the left edge, box 4 on the right edge, the line between them. */
  display: flex; justify-content: space-between; gap: 16px;
}
.hx-path::before {
  content: '';
  position: absolute; left: 30px; right: 30px; top: 29px; height: 4px;
  background: linear-gradient(90deg, var(--hx-lime), var(--hx-sky), var(--hx-pink), var(--hx-sun));
  transform-origin: left;
  transform: scaleX(var(--draw, 1));
  transition: transform 1.2s var(--hx-ease) .15s;
}
.hx-step { position: relative; flex: 0 1 250px; }
.hx-step a { display: flex; flex-direction: column; gap: 6px; height: 100%; }
.hx-step:nth-child(2) a, .hx-step:nth-child(3) a { align-items: center; text-align: center; }
.hx-step:last-child a { align-items: flex-end; text-align: right; }
.hx-step__n {
  position: relative; overflow: hidden;
  width: 62px; height: 62px;
  display: grid; place-items: center;
  background: var(--c);
  border: 2px solid var(--hx-ink);
  border-radius: var(--hx-r);
  font: 800 1.7rem/1 var(--hx-head);
  margin-bottom: 14px;
  transition: background-color .35s, transform .45s var(--hx-ease);
}
.hx-step__n > span, .hx-step__n > svg { transition: transform .45s var(--hx-ease); }
.hx-step__n > svg { position: absolute; width: 28px; height: 28px; color: var(--c); transform: translateY(160%); }
.hx-step strong {
  font: 800 1.22rem/1.2 var(--hx-head);
  align-self: flex-start;
  padding-bottom: 2px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
  transition: background-size .45s var(--hx-ease);
}
.hx-step__txt { color: #403a63; font-size: .96rem; }
.hx-step a:hover .hx-step__n, .hx-step a:focus-visible .hx-step__n { background: var(--hx-ink); transform: rotate(-6deg) scale(1.06); }
.hx-step a:hover .hx-step__n > span, .hx-step a:focus-visible .hx-step__n > span { transform: translateY(-160%); }
.hx-step a:hover .hx-step__n > svg, .hx-step a:focus-visible .hx-step__n > svg { transform: none; }
.hx-step a:hover strong, .hx-step a:focus-visible strong { background-size: 100% 2px; }

/* Most-read: a ranked list, ruled with single lines; a colour sweep on hover */
.hx-rank { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--hx-ink); }
.hx-rank li { border-bottom: 2px solid var(--hx-ink); }
.hx-rank a {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: 64px minmax(0, 1fr) auto 26px; align-items: center; gap: 18px;
  padding: 18px 12px;
}
.hx-rank a::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--c);
  transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--hx-ease);
}
.hx-rank__n { font: 800 2.4rem/1 var(--hx-head); color: var(--hx-violet); transition: transform .45s var(--hx-ease), color .3s; }
.hx-rank__body { display: flex; flex-direction: column; gap: 2px; }
.hx-rank__body strong { font: 800 1.2rem/1.2 var(--hx-head); }
.hx-rank__body span { color: var(--hx-muted); font-size: .96rem; }
.hx-rank__tags { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.hx-rank .hx-arrow { transition: transform .45s var(--hx-ease); }
.hx-rank a:hover::before, .hx-rank a:focus-visible::before { transform: scaleX(1); }
.hx-rank a:hover .hx-rank__n, .hx-rank a:focus-visible .hx-rank__n { color: var(--hx-ink); transform: scale(1.2) rotate(-8deg); }
.hx-rank a:hover .hx-arrow, .hx-rank a:focus-visible .hx-arrow { transform: translateX(6px); }
.hx-tag { font-size: .8rem; font-weight: 700; padding: 4px 9px; border-radius: var(--hx-r); background: #fff; color: var(--hx-violet-deep); white-space: nowrap; }
.hx-tag--easy { background: var(--hx-lime); color: var(--hx-ink); }
.hx-tag--medium { background: var(--hx-sun); color: var(--hx-ink); }

/* Support: a staircase, because help grows with the plan */
.hx-support {
  margin-top: 88px;
  padding: 76px 0 84px;
  /* No band of its own: the stairs stand on the page's light grid. */
}
.hx-stairs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; align-items: end; }
.hx-stair {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; gap: 10px;
  min-height: calc(190px + var(--h) * 36px);
  padding: 20px 18px;
  background: var(--c);
  border-radius: var(--hx-r);
  transition: transform .5s var(--hx-ease);
}
.hx-stair::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: repeating-linear-gradient(-45deg, rgba(255,255,255,.32) 0 10px, transparent 10px 20px);
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity .35s, transform .9s var(--hx-ease);
}
.hx-stair__step { font: 800 .82rem/1 var(--hx-head); background: var(--hx-ink); color: var(--c); align-self: flex-start; padding: 5px 8px; border-radius: var(--hx-r); }
.hx-stair h3 { font-size: 1.4rem; transition: transform .45s var(--hx-ease); transform-origin: left; }
.hx-stair p { font-size: .95rem; color: #2c2a45; }
.hx-stair:hover { transform: translateY(-10px); }
.hx-stair:hover::before { opacity: 1; transform: none; }
.hx-stair:hover h3 { transform: scale(1.08); }
.hx-support__foot { margin-top: 26px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px; align-items: center; }
.hx-mail {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--hx-ink); color: #fff;
  border-radius: var(--hx-r);
  padding: 14px 18px;
  font-weight: 700;
  transition: background-color .3s;
}
.hx-mail svg { width: 22px; height: 22px; color: var(--hx-sun); transition: transform .45s var(--hx-ease); }
.hx-mail:hover { background: var(--hx-violet); }
.hx-mail:hover svg { transform: rotate(-12deg) scale(1.15); }
.hx-note { font-size: .92rem; color: #4a4430; max-width: 40em; }

/* Customer guides */
.hx-members { padding-bottom: 96px; }
.hx-members__inner {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 40px; align-items: center;
  background: var(--hx-ink); color: #fff;
  border-radius: var(--hx-r);
  padding: 48px;
}
.hx-members h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); color: #fff; }
.hx-members__copy > p { margin-top: 12px; color: rgba(255,255,255,.82); max-width: 36em; }
.hx-ticks { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.hx-ticks li { position: relative; padding-left: 30px; }
.hx-ticks li::before {
  content: ''; position: absolute; left: 0; top: .2em;
  width: 18px; height: 18px; border-radius: var(--hx-r); background: var(--hx-lime);
}
.hx-ticks li::after {
  content: ''; position: absolute; left: 5px; top: calc(.2em + 4px);
  width: 8px; height: 5px; border-left: 2.5px solid var(--hx-ink); border-bottom: 2.5px solid var(--hx-ink);
  transform: rotate(-45deg);
}
.hx-signin {
  background: var(--hx-lime); color: var(--hx-ink);
  border-radius: var(--hx-r);
  padding: 28px;
  display: flex; flex-direction: column; gap: 10px;
  transition: transform .5s var(--hx-ease);
}
.hx-signin:hover { transform: rotate(-1.5deg) translateY(-4px); }
.hx-signin__ico { width: 34px; height: 34px; transition: transform .5s var(--hx-ease); }
.hx-signin:hover .hx-signin__ico { transform: translateY(-3px) rotate(-10deg); }
.hx-signin h3 { font-size: 1.5rem; }
.hx-signin p { color: #2c2a45; margin-bottom: 6px; }
.hx-btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: block; text-align: center;
  font: 800 1rem/1 var(--hx-head);
  padding: 15px 18px;
  border-radius: var(--hx-r);
  transition: color .3s;
}
.hx-btn::before { content: ''; position: absolute; inset: 0; z-index: -1; transform: translateX(-101%); transition: transform .45s var(--hx-ease); }
.hx-btn:hover::before { transform: none; }
.hx-btn--ink { background: var(--hx-ink); color: #fff !important; }
.hx-btn--ink::before { background: var(--hx-violet); }
.hx-btn--line { border: 2px solid var(--hx-ink); }
.hx-btn--line::before { background: var(--hx-ink); }
.hx-btn--line:hover { color: var(--hx-lime) !important; }
.hx .hx-members :focus-visible { outline-color: var(--hx-lime); }
.hx .hx-signin :focus-visible { outline-color: var(--hx-ink); }

/* ---------------------------------------------------- reveal on scroll */
/* Only when JS is running (help-centre-hub.js adds .hx-js); otherwise all visible. */
.hx-js .hx-reveal > * { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--hx-ease), transform .6s var(--hx-ease); }
.hx-js .hx-reveal.is-in > * { opacity: 1; transform: none; }
.hx-js .hx-reveal.is-in > *:nth-child(2) { transition-delay: 70ms; }
.hx-js .hx-reveal.is-in > *:nth-child(3) { transition-delay: 140ms; }
.hx-js .hx-reveal.is-in > *:nth-child(4) { transition-delay: 210ms; }
.hx-js .hx-reveal.is-in > *:nth-child(5) { transition-delay: 280ms; }
.hx-js .hx-reveal.is-in > *:nth-child(6) { transition-delay: 350ms; }
.hx-js .hx-reveal.is-in > *:nth-child(7) { transition-delay: 420ms; }
.hx-js .hx-reveal.is-in > *:nth-child(8) { transition-delay: 490ms; }
/* help-centre-hub.js drops .hx-reveal once the entrance has played, so hover transforms are free again. */
.hx-js .hx-members__inner.hx-reveal > * { transform: none; }
.hx-js .hx-path.hx-reveal { --draw: 0; }
.hx-js .hx-path.hx-reveal.is-in { --draw: 1; }
/* The stairs climb in from the bottom. */
.hx-js .hx-stairs.hx-reveal:not(.is-in) > * { transform: translateY(60px); }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1024px) {
  /* Tablets and small laptops keep the two columns: words left, the guide scene right. */
  .hx-hero__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
  .hx-hero__title { font-size: clamp(2.6rem, 6vw, 4rem); }
  .hx-hero__sub { font-size: 1.04rem; }
  .hx-scene { min-height: 400px; }
  .hx-win { left: 2%; right: 0; }
  .hx-win__step { font-size: .9rem; gap: 10px; padding: 0 10px; }
  .hx-win__tag { display: none; }
  .hx-sticker { font-size: .86rem; padding: 9px 11px; }
  .hx-task-grid, .hx-divider-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hx-path { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .hx-step:nth-child(n) a { align-items: flex-start; text-align: left; }
  .hx-path::before { display: none; }
  .hx-roles__box { grid-template-columns: 1fr; }
  .hx-roles__tabs { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 2px solid var(--hx-ink); }
  .hx-role-tab { flex: none; }
  .hx-stairs { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
  .hx-stair { min-height: 0; }
  .hx-support__foot { grid-template-columns: 1fr; justify-items: start; }
  .hx-members__inner { grid-template-columns: 1fr; padding: 36px; }
}
/* Phones: the scene moves under the search. */
@media (max-width: 767px) {
  .hx-hero__inner { grid-template-columns: 1fr; gap: 28px; }
  .hx-scene { max-width: 520px; width: 100%; margin: 0 auto; }
}
@media (max-width: 640px) {
  .hx-hero { padding: 44px 0 20px; }
  .hx-search { flex-wrap: wrap; padding: 8px; }
  .hx-search__ico { margin-left: 8px; }
  .hx-search__btn { width: 100%; }
  .hx-scene { min-height: 400px; }
  .hx-win { left: 0; right: 0; top: 50px; }
  .hx-win__tag { display: none; }
  .hx-sticker { font-size: .86rem; padding: 9px 11px; }
  .hx-sticker--1 { left: 4px; }
  .hx-sticker--3 { left: 4px; bottom: 14px; }
  .hx-sticker--4 { right: 4px; }
  .hx-task-grid, .hx-divider-grid, .hx-path, .hx-stairs { grid-template-columns: 1fr; }
  .hx-head--split, .hx-role-panel__head { flex-direction: column; align-items: flex-start; }
  .hx-role-panel { padding: 20px 16px 16px; }
  .hx-role-list a { grid-template-columns: minmax(0, 1fr) 22px; padding: 12px 8px; }
  .hx-role-list .hx-acc { grid-column: 1; grid-row: 2; justify-self: start; }
  .hx-rank a { grid-template-columns: 44px minmax(0, 1fr) 22px; }
  .hx-rank__tags { grid-column: 2; grid-row: 2; justify-content: flex-start; }
  .hx-members__inner { padding: 28px 22px; }
  .hx-section { padding-top: 60px; }
  .hx-start, .hx-support { margin-top: 60px; padding: 52px 0 60px; }
  .hx-start + .hx-section { padding-top: 60px; }
}

@media (prefers-reduced-motion: reduce) {
  .hx-hero__title span, .hx-hero__sub, .hx-search, .hx-try, .hx-win, .hx-sticker { animation: none; }
  .hx-win__step::before, .hx-win__tick, .hx-win__progress i { animation: none; transform: none; }
  .hx-cursor { display: none; }
  .hx *, .hx *::before, .hx *::after { transition-duration: .01s !important; transition-delay: 0s !important; }
  .hx-js .hx-reveal > * { opacity: 1; transform: none; }
  .hx-js .hx-path.hx-reveal { --draw: 1; }
}

/* ---- The search palette (assets/docs/js/docs-search.js), dressed for the hub ----
   Scoped under .hx-body, so the guide reader keeps its own look. A violet search
   bar, colour tiles per result, a violet marker and arrow on the active row, and
   small flat tags in one line. Phones get the whole screen, a Close button and a
   results list that scrolls inside it. */
.hx-body .ds-search-modal {
  z-index: 2147483000; /* above the site navbar */
  padding: 10vh 16px 16px;
  background: rgba(26, 20, 64, .5);
  backdrop-filter: blur(6px);
  font-family: var(--hx-body);
  color: var(--hx-ink);
}
.hx-body .ds-search-panel {
  display: flex; flex-direction: column;
  max-width: 680px; max-height: 80vh;
  background: #fff;
  border: 2px solid var(--hx-ink);
  border-radius: var(--hx-r);
  box-shadow: none;
  animation: hx-pal-in .4s var(--hx-ease);
}
@keyframes hx-pal-in { from { transform: translateY(-18px) scale(.98); opacity: 0; } }
.hx-body .ds-search-head { flex: none; gap: 14px; padding: 16px 16px 16px 20px; background: var(--hx-violet); border-bottom: 0; }
.hx-body .ds-search-head > svg { width: 22px; height: 22px; color: var(--hx-lime); }
.hx-body .ds-search-head input { min-width: 0; font: 700 1.2rem/1.2 var(--hx-head); color: #fff; caret-color: var(--hx-lime); }
.hx-body .ds-search-head input::placeholder { color: rgba(255, 255, 255, .78); font-weight: 600; }
.hx-body .ds-search-head .ds-kbd { display: none; }
.hx-pal-close {
  flex: none; appearance: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  border: 1.5px solid rgba(255, 255, 255, .6); border-radius: var(--hx-r);
  background: transparent; color: #fff;
  font: 700 .86rem/1 var(--hx-body);
  padding: 8px 11px;
  transition: background-color .2s, color .2s, border-color .2s;
}
.hx-pal-close svg { width: 15px; height: 15px; }
.hx-pal-close:hover, .hx-pal-close:focus-visible { background: var(--hx-lime); border-color: var(--hx-lime); color: var(--hx-ink); }
.hx-pal-close:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

.hx-body .ds-search-results {
  flex: 1 1 auto; min-height: 0; max-height: none;
  overflow-y: auto; overscroll-behavior: contain;
  padding: 10px;
  scrollbar-width: thin; scrollbar-color: #b9a8ff transparent;
}
.hx-body .ds-search-results::-webkit-scrollbar { width: 8px; }
.hx-body .ds-search-results::-webkit-scrollbar-thumb { background: #b9a8ff; border-radius: 4px; }
.hx-body .ds-search-empty { padding: 40px 20px; font: 600 1rem/1.5 var(--hx-body); color: #4b4864; }

.hx-body .ds-search-item {
  position: relative; align-items: center; gap: 14px;
  padding: 12px 46px 12px 16px;
  border-radius: var(--hx-r);
  transition: background-color .25s;
}
.hx-body .ds-search-item + .ds-search-item { margin-top: 2px; }
/* the violet marker grows on the active row, and an arrow slides in on the right */
.hx-body .ds-search-item::before {
  content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 4px;
  background: var(--hx-violet); border-radius: 2px;
  transform: scaleY(0); transition: transform .35s var(--hx-ease);
}
.hx-body .ds-search-item::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 10px; height: 10px;
  border-top: 2.6px solid var(--hx-violet); border-right: 2.6px solid var(--hx-violet);
  transform: translate(-10px, -50%) rotate(45deg); opacity: 0;
  transition: transform .35s var(--hx-ease), opacity .25s;
}
.hx-body .ds-search-item:hover, .hx-body .ds-search-item.is-active { background: #f3f0ff; }
.hx-body .ds-search-item.is-active::before { transform: scaleY(1); }
.hx-body .ds-search-item.is-active::after { transform: translate(0, -50%) rotate(45deg); opacity: 1; }

.hx-body .ds-search-item .ds-si-ico {
  width: 40px; height: 40px; border-radius: var(--hx-r);
  background: var(--hx-lime); color: var(--hx-ink);
  transition: transform .35s var(--hx-ease);
}
.hx-body .ds-search-item:nth-child(5n+2) .ds-si-ico { background: var(--hx-sky); }
.hx-body .ds-search-item:nth-child(5n+3) .ds-si-ico { background: var(--hx-mint); }
.hx-body .ds-search-item:nth-child(5n+4) .ds-si-ico { background: var(--hx-pink); }
.hx-body .ds-search-item:nth-child(5n+5) .ds-si-ico { background: var(--hx-sun); }
.hx-body .ds-search-item .ds-si-ico.is-locked { background: var(--hx-orange); color: var(--hx-ink); }
.hx-body .ds-search-item .ds-si-ico svg { width: 19px; height: 19px; }
.hx-body .ds-search-item.is-active .ds-si-ico { transform: rotate(-6deg) scale(1.06); }

.hx-body .ds-si-body { flex: 1 1 auto; }
.hx-body .ds-si-body strong { font: 800 1.06rem/1.2 var(--hx-head); color: var(--hx-ink); transition: color .2s; }
.hx-body .ds-search-item.is-active .ds-si-body strong { color: var(--hx-violet); }
.hx-body .ds-si-body mark { background: var(--hx-sun); color: inherit; border-radius: 2px; padding: 0 2px; }
.hx-body .ds-si-excerpt { margin-top: 3px; font-size: .9rem; line-height: 1.4; color: #4b4864; }
/* one line of small, flat tags (docs.css makes every span in the body a block) */
.hx-body .ds-si-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.hx-body .ds-si-tags > span {
  display: inline-flex; align-items: center; gap: 5px; width: auto;
  white-space: nowrap; overflow: visible;
  font: 700 .74rem/1 var(--hx-body); letter-spacing: 0;
  padding: 5px 8px; border: 0; border-radius: 3px;
  background: #efedf7; color: #3d3a57;
}
.hx-body .ds-si-tags > .ds-si-module { background: transparent; padding-left: 2px; color: #55527a; }
.hx-body .ds-si-tags svg { width: 12px; height: 12px; }
.hx-body .ds-si-tags > .ds-acc-badge { background: #d8f6ea; color: #0b5a44; }
.hx-body .ds-si-tags > .ds-acc-badge[data-level="customer"] { background: #dcefff; color: #0b4a75; }
.hx-body .ds-si-tags > .ds-acc-badge[data-level="admin"] { background: #ffe2dd; color: #8f2213; }
.hx-body .ds-si-tags > .ds-acc-badge[data-level="restricted"] { background: var(--hx-ink); color: #fff; }

.hx-body .ds-search-foot { flex: none; gap: 18px; padding: 11px 18px; background: #f7f5ff; border-top: 1px solid #e6e1fa; font: 600 .8rem/1 var(--hx-body); color: #4b4864; }
.hx-body .ds-search-foot .ds-kbd {
  font: 700 .74rem/1 var(--hx-body); color: var(--hx-ink);
  background: #fff; border: 1.5px solid #cfc7f2; border-radius: 3px;
  min-width: 22px; height: 22px;
}

@media (max-width: 640px) {
  .hx-body .ds-search-modal { padding: 0; }
  .hx-body .ds-search-panel { height: 100%; height: 100dvh; max-height: none; border: 0; border-radius: 0; animation: none; }
  .hx-body .ds-search-head { padding: 12px 12px 12px 16px; }
  .hx-body .ds-search-head input { font-size: 1.1rem; }
  .hx-body .ds-search-item { padding: 12px 36px 12px 12px; }
  .hx-body .ds-search-item::after { right: 14px; }
  .hx-body .ds-search-foot { display: none; }  /* arrow keys and Esc mean nothing on a phone */
}
@media (prefers-reduced-motion: reduce) {
  .hx-body .ds-search-panel { animation: none; }
}
