/* JAFX help centre (jafx.com/help/), under JAFX's shared top bar (<jafx-nav>) and the website's footer (<jafx-footer>). The
   colours are the website's own (styles/tokens.css), dark and light; the bar and the footer follow <html data-theme> too.
   Every class starts with hc-. */

:root { color-scheme: dark; }
:root[data-theme="light"] { color-scheme: light; }

.hc-page {
  --hc-bg0: #080a0c;
  --hc-bg1: #0c0e11;
  --hc-bg2: #111418;
  --hc-bg3: #161a1f;
  --hc-line: rgba(255, 255, 255, 0.06);
  --hc-line2: rgba(255, 255, 255, 0.09);
  --hc-t0: #e8ecef;
  --hc-t1: #a8b0b8;
  --hc-t2: #848c98;
  --hc-accent: #00e699;
  --hc-accent-glow: rgba(0, 230, 153, 0.18);
  --hc-link: #00e699;
  --hc-on-green: #0a0b0d;
  --hc-logo: #fff;
  --hc-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --hc-r: 8px;
  --hc-rl: 14px;
  --hc-display: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --hc-sans: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  margin: 0;
  background: var(--hc-bg0);
  color: var(--hc-t0);
  font-family: var(--hc-sans);
  -webkit-font-smoothing: antialiased;
}
:root[data-theme="light"] .hc-page {
  --hc-bg0: #e9edf2;
  --hc-bg1: #ffffff;
  --hc-bg2: #f5f7fa;
  --hc-bg3: #eceff4;
  --hc-line: rgba(15, 23, 42, 0.08);
  --hc-line2: rgba(15, 23, 42, 0.12);
  --hc-t0: #0f172a;
  --hc-t1: #475569;
  --hc-t2: #5b6a7e;            /* the website's #64748b is 4.0:1 on this page's grey; small text needs 4.5:1 */
  --hc-accent: #00a873;
  --hc-accent-glow: rgba(0, 168, 115, 0.18);
  --hc-link: #006a49;
  --hc-logo: #000;
  --hc-shadow: 0 24px 60px rgba(15, 23, 42, 0.14);
}

.hc-main { display: block; min-height: 60vh; padding-bottom: clamp(56px, 8vw, 96px); }
.hc-main *, .hc-main *::before, .hc-main *::after { box-sizing: border-box; }
.hc-wrap { max-width: 1160px; margin: 0 auto; padding: 0 32px; }
.hc-main a { color: inherit; text-decoration: none; }
.hc-main :focus-visible { outline: 2px solid var(--hc-accent); outline-offset: 2px; border-radius: 4px; }

.hc-skip { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: 10px 14px; border-radius: var(--hc-r); background: var(--hc-accent); color: var(--hc-on-green); font-size: 14px; }
.hc-skip:focus { left: 12px; }

/* ---------- the shared top bar, and the plain bar that stands in for it ---------- */
jafx-nav { display: block; position: sticky; top: 0; z-index: 60; height: 52px; }
jafx-nav:not(:defined) { display: none; }
jafx-nav:defined + .hc-bar { display: none; }
/* help.js: even the bar's narrowest form is wider than the screen. It stays laid out, so it can tell when it fits again. */
[data-hc-bar-cramped] jafx-nav { height: 0; overflow: hidden; visibility: hidden; }
[data-hc-bar-cramped] jafx-nav:defined + .hc-bar { display: flex; }

/* Drawn like the shared bar when signed out (its sizes and colours), so the swap from one to the other barely shows. */
.hc-bar { position: sticky; top: 0; z-index: 60; display: flex; align-items: center; gap: 6px; height: 52px; padding: 0 12px 0 18px; box-sizing: border-box;
  background: var(--hc-bg1); border-bottom: 1px solid var(--hc-line); white-space: nowrap; font-size: 12.5px; font-weight: 600; }
.hc-bar-logo { display: flex; align-items: center; height: 52px; padding-right: 12px; color: var(--hc-logo); }
.hc-bar-logo svg { display: block; width: auto; height: 14px; }
.hc-bar-gap { flex: 1; }
.hc-bar-btn { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border: 1px solid var(--hc-line2); border-radius: 8px; color: var(--hc-t0); text-decoration: none; }
.hc-bar-btn--go { border-color: transparent; background: #0fa36f; color: #04130d; }
.hc-bar-btn:hover { border-color: var(--hc-accent); }
.hc-bar-btn--go:hover { border-color: transparent; filter: brightness(1.08); }
.hc-bar :focus-visible, .hc-foot :focus-visible { outline: 2px solid var(--hc-accent); outline-offset: 2px; border-radius: 4px; }

/* ---------- the website's footer: these lines until its script has run, and without JavaScript ---------- */
jafx-footer { display: block; }
.hc-foot { display: block; padding: 36px 32px 44px; border-top: 1px solid var(--hc-line); background: var(--hc-bg1); font-size: 13px; line-height: 1.65; color: var(--hc-t2); }
.hc-foot p { max-width: 1096px; margin: 0 auto 10px; }
.hc-foot a { color: var(--hc-t1); text-decoration: underline; text-underline-offset: 2px; }
.hc-foot a:hover { color: var(--hc-t0); }

/* ---------- hero ---------- */
.hc-hero { position: relative; padding: clamp(48px, 7vw, 96px) 0 clamp(36px, 5vw, 56px); text-align: center; border-bottom: 1px solid var(--hc-line);
  background: radial-gradient(60% 120% at 50% 0%, var(--hc-accent-glow), transparent 70%); }
.hc-eyebrow { margin: 0 0 18px; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--hc-link); }
.hc-hero h1 { margin: 0 0 clamp(24px, 3vw, 36px); font-family: var(--hc-display); font-weight: 500; font-size: clamp(36px, 5.4vw, 64px); line-height: 1.04; letter-spacing: -0.03em; color: var(--hc-t0); }
.hc-hero h1 em { font-style: normal; color: var(--hc-t2); }
.hc-hero .hc-search { margin: 0 auto; }
.hc-hero-sub { margin: 18px 0 0; font-size: 14px; color: var(--hc-t2); }

/* ---------- search box and its suggestions ---------- */
.hc-search { position: relative; display: flex; align-items: center; width: 100%; max-width: 720px; background: var(--hc-bg1); border: 1px solid var(--hc-line2);
  border-radius: var(--hc-rl); transition: border-color 0.15s, box-shadow 0.15s; text-align: left; }
.hc-search:focus-within { border-color: var(--hc-accent); box-shadow: 0 0 0 4px var(--hc-accent-glow); }
.hc-search-ico { flex: none; margin-left: 18px; color: var(--hc-t2); }
.hc-search input { flex: 1; min-width: 0; height: 60px; padding: 0 14px; border: 0; outline: 0; background: transparent; color: var(--hc-t0); font: inherit; font-size: 17px; appearance: none; -webkit-appearance: none; }
.hc-main .hc-search input:focus, .hc-main .hc-search input:focus-visible { outline: 0; box-shadow: none; }
.hc-search input::placeholder { color: var(--hc-t2); opacity: 1; }
.hc-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.hc-search-key { flex: none; margin-right: 10px; padding: 2px 8px; border: 1px solid var(--hc-line2); border-radius: 6px; font: 12px/1.5 var(--hc-sans); color: var(--hc-t2); }
.hc-search:focus-within .hc-search-key { visibility: hidden; }
.hc-search-go { flex: none; margin-right: 8px; height: 44px; padding: 0 20px; border: 0; border-radius: calc(var(--hc-rl) - 6px); background: var(--hc-accent); color: var(--hc-on-green); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.hc-search-go:hover { filter: brightness(1.08); }
.hc-search--sm { max-width: 420px; border-radius: var(--hc-r); }
.hc-search--sm input { height: 44px; font-size: 15px; padding: 0 10px; }
.hc-search--sm .hc-search-ico { margin-left: 12px; width: 17px; height: 17px; }
.hc-search--sm .hc-search-go { display: none; }

.hc-results { position: absolute; z-index: 40; left: -1px; right: -1px; top: calc(100% + 8px); max-height: min(70vh, 560px); overflow-y: auto; padding: 6px;
  background: var(--hc-bg1); border: 1px solid var(--hc-line2); border-radius: var(--hc-rl); box-shadow: var(--hc-shadow); }
.hc-results[hidden] { display: none; }
.hc-search--sm .hc-results { min-width: min(520px, calc(100vw - 40px)); left: auto; }
.hc-opt { display: block; padding: 11px 14px; border-radius: var(--hc-r); cursor: pointer; }
.hc-opt:hover, .hc-opt[aria-selected="true"] { background: var(--hc-bg3); }
.hc-opt-c { display: block; margin-bottom: 3px; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--hc-t2); }
.hc-opt-t { display: block; font-size: 15.5px; font-weight: 500; line-height: 1.35; color: var(--hc-t0); }
.hc-opt-s { display: block; margin-top: 4px; font-size: 13.5px; line-height: 1.5; color: var(--hc-t1); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hc-results-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 4px; padding: 10px 14px 8px; border-top: 1px solid var(--hc-line); font-size: 13px; color: var(--hc-t2); }
.hc-results-foot a { color: var(--hc-link) !important; }
.hc-results-none { padding: 16px 14px; font-size: 14.5px; line-height: 1.55; color: var(--hc-t1); }
.hc-results-none a { color: var(--hc-link) !important; text-decoration: underline; }
.hc-main mark { padding: 0 1px; border-radius: 3px; background: color-mix(in srgb, var(--hc-accent) 24%, transparent); color: inherit; }

/* ---------- home ---------- */
.hc-block { margin-top: clamp(40px, 5vw, 64px); }
.hc-h2 { margin: 0 0 20px; font-family: var(--hc-display); font-weight: 500; font-size: clamp(20px, 2.2vw, 26px); letter-spacing: -0.02em; color: var(--hc-t0); }
.hc-popular { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.hc-pop { display: block; padding: 16px 18px; background: var(--hc-bg1); border: 1px solid var(--hc-line); border-radius: var(--hc-r); transition: border-color 0.15s, transform 0.15s; }
.hc-pop:hover { border-color: var(--hc-accent); transform: translateY(-1px); }
.hc-pop-c { display: block; margin-bottom: 6px; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--hc-t2); }
.hc-pop-t { display: block; font-size: 15.5px; line-height: 1.4; color: var(--hc-t0); }

.hc-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.hc-cat { display: flex; flex-direction: column; padding: 24px; background: var(--hc-bg1); border: 1px solid var(--hc-line); border-radius: var(--hc-rl); }
.hc-cat h3 { margin: 0; font-family: var(--hc-display); font-weight: 500; font-size: 19px; letter-spacing: -0.01em; }
.hc-cat h3 a:hover { color: var(--hc-link); }
.hc-cat-b { margin: 8px 0 0; font-size: 14px; line-height: 1.55; color: var(--hc-t2); }
.hc-cat ul { margin: 16px 0 0; padding: 14px 0 0; list-style: none; border-top: 1px solid var(--hc-line); }
.hc-cat li { margin: 0 0 10px; font-size: 14.5px; line-height: 1.45; }
.hc-cat li a { color: var(--hc-t1); }
.hc-cat li a:hover { color: var(--hc-t0); text-decoration: underline; }
.hc-more { margin-top: auto; padding-top: 6px; font-size: 14px; color: var(--hc-link) !important; }
.hc-more:hover { text-decoration: underline; }

/* ---------- inner pages ---------- */
.hc-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 28px; padding-bottom: 8px; }
.hc-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; font-size: 13.5px; color: var(--hc-t2); }
.hc-crumbs a { color: var(--hc-t1); }
.hc-crumbs a:hover { color: var(--hc-t0); text-decoration: underline; }
.hc-crumbs span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46ch; }
.hc-cols { display: grid; grid-template-columns: minmax(0, 1fr) 264px; gap: clamp(32px, 5vw, 72px); align-items: start; margin-top: 28px; }
.hc-title { margin: 0 0 14px; font-family: var(--hc-display); font-weight: 500; font-size: clamp(30px, 3.8vw, 44px); line-height: 1.1; letter-spacing: -0.025em; color: var(--hc-t0); }
.hc-lead { margin: 0 0 28px; max-width: 64ch; font-size: 17px; line-height: 1.6; color: var(--hc-t1); }
.hc-meta { margin: 0 0 28px; padding-bottom: 24px; border-bottom: 1px solid var(--hc-line); font-size: 13.5px; color: var(--hc-t2); }

.hc-side { position: sticky; top: 84px; font-size: 14px; }
.hc-side-h { margin: 0 0 12px; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--hc-t2); }
.hc-side ul { margin: 0 0 32px; padding: 0 0 0 14px; list-style: none; border-left: 1px solid var(--hc-line2); }
.hc-side li { margin: 0 0 10px; line-height: 1.4; }
.hc-side a { color: var(--hc-t1); }
.hc-side a:hover, .hc-side a[aria-current="page"] { color: var(--hc-link); }

.hc-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--hc-line); }
.hc-list > li { border-bottom: 1px solid var(--hc-line); }
.hc-list > li > a { display: block; padding: 18px 4px; }
.hc-list > li > a:hover .hc-list-t { color: var(--hc-link); }
/* the questions an article answers, as links into it (topic pages) */
.hc-list-secs { display: flex; flex-wrap: wrap; gap: 6px 8px; margin: -6px 0 18px; padding: 0 4px; list-style: none; }
.hc-list-secs a { display: inline-block; padding: 4px 10px; border: 1px solid var(--hc-line2); border-radius: 999px; font-size: 13px; line-height: 1.4; color: var(--hc-t1); }
.hc-list-secs a:hover { color: var(--hc-link); border-color: var(--hc-link); }
.hc-list-t { display: block; font-size: 17px; line-height: 1.35; color: var(--hc-t0); }
.hc-list-s { display: block; margin-top: 5px; font-size: 14.5px; line-height: 1.55; color: var(--hc-t2); }

/* ---------- article text ---------- */
.hc-body { font-size: 16.5px; line-height: 1.75; color: var(--hc-t1); overflow-wrap: break-word; }
.hc-body > :first-child { margin-top: 0; }
.hc-body h2 { margin: 44px 0 14px; font-family: var(--hc-display); font-weight: 500; font-size: clamp(22px, 2.3vw, 27px); line-height: 1.2; letter-spacing: -0.02em; color: var(--hc-t0); scroll-margin-top: 84px; }
.hc-body h3 { margin: 30px 0 10px; font-family: var(--hc-display); font-weight: 500; font-size: 19px; line-height: 1.3; color: var(--hc-t0); scroll-margin-top: 84px; }
.hc-body h4 { margin: 24px 0 8px; font-size: 16.5px; font-weight: 600; color: var(--hc-t0); }
.hc-body p { margin: 0 0 16px; }
.hc-body strong { font-weight: 600; color: var(--hc-t0); }
.hc-body ul, .hc-body ol { margin: 0 0 18px; padding-left: 24px; }
.hc-body li { margin: 0 0 8px; padding-left: 4px; }
.hc-body li > ul, .hc-body li > ol { margin-top: 8px; margin-bottom: 0; }
.hc-body li::marker { color: var(--hc-t2); }
.hc-body a { color: var(--hc-link); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--hc-link) 45%, transparent); text-underline-offset: 3px; }
.hc-body a:hover { text-decoration-color: currentColor; }
.hc-body a strong { color: inherit; font-weight: 500; }
.hc-body blockquote { margin: 0 0 18px; padding: 14px 18px; border-left: 3px solid var(--hc-accent); border-radius: 0 var(--hc-r) var(--hc-r) 0; background: var(--hc-bg1); }
.hc-body blockquote > :last-child { margin-bottom: 0; }
.hc-body code { padding: 2px 6px; border-radius: 5px; background: var(--hc-bg3); font-family: ui-monospace, 'JetBrains Mono', Menlo, monospace; font-size: 0.88em; color: var(--hc-t0); }
.hc-body pre { margin: 0 0 18px; padding: 14px 16px; overflow-x: auto; border: 1px solid var(--hc-line); border-radius: var(--hc-r); background: var(--hc-bg1); }
.hc-body pre code { padding: 0; background: none; }
.hc-body hr { margin: 32px 0; border: 0; border-top: 1px solid var(--hc-line); }
.hc-body img { max-width: 100%; height: auto; border-radius: var(--hc-r); }
.hc-table { margin: 0 0 22px; overflow-x: auto; border: 1px solid var(--hc-line2); border-radius: var(--hc-r); }
.hc-table table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.hc-table th { padding: 11px 14px; text-align: left; font-weight: 600; font-size: 13.5px; color: var(--hc-t0); background: var(--hc-bg2); border-bottom: 1px solid var(--hc-line2); white-space: nowrap; }
.hc-table td { padding: 11px 14px; vertical-align: top; border-bottom: 1px solid var(--hc-line); }
.hc-table tr:last-child td { border-bottom: 0; }

/* ---------- was this helpful ---------- */
.hc-helpful { margin-top: 48px; padding: 24px; border: 1px solid var(--hc-line); border-radius: var(--hc-rl); background: var(--hc-bg1); }
.hc-helpful-q { margin: 0 0 14px; font-size: 16px; color: var(--hc-t0); }
.hc-helpful-b { display: flex; gap: 10px; }
.hc-helpful-more { margin-top: 16px; }
.hc-helpful-more[hidden], .hc-helpful-done[hidden] { display: none; }
.hc-helpful-more label { display: block; margin-bottom: 8px; font-size: 14px; color: var(--hc-t1); }
.hc-helpful-more textarea { display: block; width: 100%; margin-bottom: 12px; padding: 10px 12px; border: 1px solid var(--hc-line2); border-radius: var(--hc-r); background: var(--hc-bg0); color: var(--hc-t0); font: inherit; font-size: 15px; resize: vertical; }
.hc-helpful-more textarea:focus { outline: 0; border-color: var(--hc-accent); }
.hc-helpful-done { margin: 0; font-size: 15px; color: var(--hc-t1); }

.hc-btn { display: inline-flex; align-items: center; justify-content: center; height: 42px; padding: 0 20px; border: 1px solid transparent; border-radius: var(--hc-r); background: var(--hc-accent);
  color: var(--hc-on-green) !important; font: inherit; font-size: 15px; font-weight: 600; white-space: nowrap; cursor: pointer; text-decoration: none; }
.hc-btn:hover { filter: brightness(1.08); }
.hc-btn--ghost { min-width: 76px; background: transparent; border-color: var(--hc-line2); color: var(--hc-t0) !important; font-weight: 500; }
.hc-btn--ghost:hover { border-color: var(--hc-accent); filter: none; }
.hc-btn[disabled] { opacity: 0.5; cursor: default; }

/* ---------- search page ---------- */
.hc-searchpage { padding-top: 28px; max-width: 880px; }
.hc-searchpage .hc-title { margin-top: 20px; }
.hc-searchpage .hc-search { margin-bottom: 28px; }
.hc-searchpage .hc-h2 { margin-top: 40px; }
.hc-hits { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--hc-line); }
.hc-hits li { border-bottom: 1px solid var(--hc-line); }
.hc-hits a { display: block; padding: 20px 4px; }
.hc-hit-c { display: block; margin-bottom: 5px; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--hc-t2); }
.hc-hit-t { display: block; font-size: 18px; line-height: 1.35; color: var(--hc-t0); }
.hc-hits a:hover .hc-hit-t { color: var(--hc-link); }
.hc-hit-s { display: block; margin-top: 6px; font-size: 15px; line-height: 1.6; color: var(--hc-t1); }
.hc-empty { padding: 28px; border: 1px solid var(--hc-line); border-radius: var(--hc-rl); background: var(--hc-bg1); font-size: 16px; line-height: 1.6; color: var(--hc-t1); }
.hc-empty p { margin: 0 0 8px; }
.hc-empty strong { color: var(--hc-t0); font-weight: 500; }
.hc-empty a { color: var(--hc-link); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- contact strip ---------- */
.hc-contact { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: clamp(48px, 6vw, 80px);
  padding: 28px 32px; border: 1px solid var(--hc-line); border-radius: var(--hc-rl); background: var(--hc-bg1); }
.hc-contact h2 { margin: 0 0 6px; font-family: var(--hc-display); font-weight: 500; font-size: 21px; letter-spacing: -0.01em; color: var(--hc-t0); }
.hc-contact p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--hc-t1); }
.hc-contact p a { color: var(--hc-link); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 900px) {
  .hc-cols { grid-template-columns: minmax(0, 1fr); }
  .hc-side { position: static; padding-top: 28px; border-top: 1px solid var(--hc-line); }
  .hc-top { flex-direction: column-reverse; align-items: stretch; gap: 16px; }
  .hc-search--sm { max-width: none; }
  .hc-search--sm .hc-results { left: -1px; min-width: 0; }
}
@media (max-width: 640px) {
  .hc-wrap { padding-left: 20px; padding-right: 20px; }
  .hc-contact { flex-direction: column; align-items: flex-start; padding: 24px; }
  .hc-search input { height: 54px; font-size: 16px; }
  .hc-search-go, .hc-search-key { display: none; }
  .hc-cats, .hc-popular { grid-template-columns: minmax(0, 1fr); }
  .hc-body { font-size: 16px; }
  .hc-foot { padding-left: 20px; padding-right: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .hc-page * { transition: none !important; }
}
