/* Pakstoor :: pks-help.css :: v1.0-000001 :: 2026-10-19 */
/*
  Copyright (c) 2026 Pakstoor (Pty) Ltd. All rights reserved.
  Help & FAQ Centre (/help, owner GO 2026-10-19): search, Quick Help, category chips and the large accordions.
  Brand Pack v1.0: orange #F47A20 is a fill, focus and selection colour; orange TEXT on light surfaces is #B5520F;
  text on orange is #141414. Dark ground #141414 / surface #1F1F1F. All motion respects prefers-reduced-motion.
*/
.hc { --hc-surface: var(--bg-1, #1F1F1F); --hc-surface-2: var(--bg-2, #262626); --hc-line: var(--line-2, #3A3A3A);
  --hc-ink: var(--ink, #F4F1EC); --hc-muted: var(--ink-muted, #B9B2A8); --hc-dim: var(--ink-dim, #8E877D);
  --hc-brand: var(--pk-brand, #F47A20); --hc-brand-text: var(--pk-brand, #F47A20); --hc-brand-wash: rgba(244, 122, 32, .10);
  --hc-radius: 14px; }
html[data-theme="light"] .hc { --hc-surface: #FFFFFF; --hc-surface-2: #F6F3EE; --hc-line: #DDD6CC; --hc-ink: #141414;
  --hc-muted: #4A4540; --hc-dim: #6B655E; --hc-brand-text: #B5520F; --hc-brand-wash: rgba(244, 122, 32, .09); }
.hc *, .hc *::before, .hc *::after { box-sizing: border-box; }
.hc { max-width: 100%; overflow-wrap: anywhere; }

/* ---- Search ------------------------------------------------------------------------------------------ */
.hc-search { margin: 28px 0 8px; padding: 22px 22px 18px; border: 1px solid var(--hc-line); border-radius: var(--hc-radius);
  background: radial-gradient(520px 200px at 0% 0%, rgba(244, 122, 32, .09), transparent 70%), var(--hc-surface); }
.hc-search-label { display: block; font-family: var(--font-display, inherit); font-weight: 650; font-size: clamp(20px, 3.2vw, 26px);
  line-height: 1.2; color: var(--hc-ink); margin: 0 0 12px; }
.hc-search-row { position: relative; display: flex; align-items: center; }
.hc-search-row svg { position: absolute; left: 16px; width: 20px; height: 20px; color: var(--hc-dim); pointer-events: none; }
.hc-search-input { width: 100%; min-height: 54px; padding: 12px 48px 12px 48px; font: inherit; font-size: 17px; color: var(--hc-ink);
  background: var(--hc-surface-2); border: 1px solid var(--hc-line); border-radius: 12px; outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease; -webkit-appearance: none; appearance: none; }
.hc-search-input::placeholder { color: var(--hc-dim); }
.hc-search-input:focus-visible { border-color: var(--hc-brand); box-shadow: 0 0 0 3px rgba(244, 122, 32, .28); }
.hc-search-input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.hc-search-clear { position: absolute; right: 8px; width: 38px; height: 38px; border: 0; border-radius: 10px; background: transparent;
  color: var(--hc-muted); cursor: pointer; font-size: 22px; line-height: 1; }
.hc-search-clear:hover { color: var(--hc-ink); background: var(--hc-brand-wash); }
.hc-search-clear:focus-visible { outline: 2px solid var(--hc-brand); outline-offset: 2px; }
.hc-search-status { min-height: 1.4em; margin: 10px 2px 0; font-size: 14px; color: var(--hc-muted); }
.hc-search-hints { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.hc-hint { border: 1px solid var(--hc-line); background: transparent; color: var(--hc-muted); border-radius: 999px; padding: 6px 12px;
  font: inherit; font-size: 13px; cursor: pointer; min-height: 34px; }
.hc-hint:hover { color: var(--hc-ink); border-color: var(--hc-brand); }
.hc-hint:focus-visible { outline: 2px solid var(--hc-brand); outline-offset: 2px; }
.hc-noresults { display: none; margin: 18px 0; padding: 18px 20px; border: 1px dashed var(--hc-line); border-radius: var(--hc-radius);
  color: var(--hc-muted); font-size: 15px; line-height: 1.6; }
.hc.is-empty .hc-noresults { display: block; }
.hc-noresults a, .hc-a a, .hc-quick a.hc-quick-act { color: var(--hc-brand-text); text-underline-offset: 3px; }
html:not(#pkb) .hc .hc-a-inner a:not(.hc-act), html:not(#pkb) .hc .hc-noresults a, html:not(#pkb) .hc .hc-quick a.hc-quick-act { color: var(--hc-brand-text) !important; }

/* ---- Quick Help -------------------------------------------------------------------------------------- */
.hc-quick { margin: 30px 0 10px; }
.hc-eyebrow { font-family: var(--font-mono, monospace); font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--hc-brand-text); margin: 0 0 6px; }
.hc-h2 { font-family: var(--font-display, inherit); font-weight: 650; font-size: clamp(20px, 2.6vw, 24px); color: var(--hc-ink); margin: 0 0 16px; }
.hc-quick-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 980px) { .hc-quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .hc-quick-grid { grid-template-columns: 1fr; } }
.hc-quick-card { height: 100%; display: flex; flex-direction: column; gap: 8px; padding: 16px 16px 14px; border: 1px solid var(--hc-line);
  border-radius: var(--hc-radius); background: var(--hc-surface); }
.hc-quick-card.is-urgent { border-color: rgba(216, 81, 69, .45); }
.hc-quick-top { display: flex; align-items: center; gap: 12px; }
.hc-quick-ic { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: var(--hc-brand-wash); color: var(--hc-brand-text); }
.hc-quick-card.is-urgent .hc-quick-ic { background: rgba(216, 81, 69, .12); color: #E0675B; }
html[data-theme="light"] .hc-quick-card.is-urgent .hc-quick-ic { color: #B23A2E; }
.hc-quick-ic svg { width: 22px; height: 22px; }
.hc-quick-title { margin: 0; font-size: 16.5px; font-weight: 650; line-height: 1.3; color: var(--hc-ink); }
.hc-quick-title a { color: inherit; text-decoration: none; }
.hc-quick-title a::after { content: ''; }
.hc-quick-title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.hc-quick-sub { margin: 0; font-size: 14px; line-height: 1.5; color: var(--hc-muted); }
.hc-quick-acts { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px 14px; padding-top: 4px; font-size: 14px; }
.hc-quick-acts a { min-height: 32px; display: inline-flex; align-items: center; font-weight: 600; }
.hc-quick-acts a.hc-quick-read { color: var(--hc-ink); }

/* ---- Category chips ---------------------------------------------------------------------------------- */
.hc-cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 8px; padding: 0; list-style: none; }
.hc-cats a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--hc-line); background: var(--hc-surface); color: var(--hc-muted); text-decoration: none; font-size: 14px; }
.hc-cats a span:first-child { font-family: var(--font-mono, monospace); font-weight: 700; color: var(--hc-brand-text); }
.hc-cats a:hover { color: var(--hc-ink); border-color: var(--hc-brand); }
.hc-cats a:focus-visible { outline: 2px solid var(--hc-brand); outline-offset: 2px; }
.hc-cats a.is-key { border-color: rgba(244, 122, 32, .5); }

/* ---- Category sections + accordions ------------------------------------------------------------------ */
.hc-cat { margin: 40px 0 0; scroll-margin-top: 90px; }
.hc-cat[hidden] { display: none !important; }
.hc-cat .dossier-section-head { margin-bottom: 14px; }
.hc-list { display: flex; flex-direction: column; gap: 10px; }
.hc-item { border: 1px solid var(--hc-line); border-radius: var(--hc-radius); background: var(--hc-surface); scroll-margin-top: 96px;
  transition: border-color 180ms ease, box-shadow 180ms ease; }
.hc-item[hidden] { display: none !important; }
.hc-item.is-open { border-color: rgba(244, 122, 32, .55); box-shadow: 0 0 0 1px rgba(244, 122, 32, .12); }
.hc-item.is-target { box-shadow: 0 0 0 3px rgba(244, 122, 32, .35); }
.hc-q { margin: 0; font-size: inherit; font-weight: inherit; }
.hc-btn { width: 100%; display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 14px 18px; border: 0; background: transparent;
  color: var(--hc-ink); font: inherit; font-size: 17px; font-weight: 600; line-height: 1.4; text-align: left; cursor: pointer; border-radius: var(--hc-radius); }
.hc-btn:hover .hc-q-text { text-decoration: underline; text-decoration-color: rgba(244, 122, 32, .6); text-underline-offset: 4px; }
.hc-btn:focus-visible { outline: 2px solid var(--hc-brand); outline-offset: -2px; }
.hc-q-text { flex: 1 1 auto; min-width: 0; }
.hc-aud { flex: 0 0 auto; font-family: var(--font-mono, monospace); font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  padding: 4px 8px; border-radius: 999px; border: 1px solid var(--hc-line); color: var(--hc-muted); white-space: nowrap; }
.hc-aud.is-buyer { border-color: rgba(96, 165, 250, .45); color: #8FBFFF; }
.hc-aud.is-seller { border-color: rgba(244, 122, 32, .45); color: var(--hc-brand-text); }
html[data-theme="light"] .hc-aud.is-buyer { color: #1F5FB0; border-color: rgba(31, 95, 176, .4); }
.hc-chev { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--hc-brand-wash); color: var(--hc-brand-text);
  transition: transform 220ms ease; }
.hc-chev svg { width: 16px; height: 16px; }
.hc-item.is-open .hc-chev { transform: rotate(180deg); }
.hc-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 240ms ease; }
.hc-item.is-open .hc-a { grid-template-rows: 1fr; }
.hc-a[hidden]:not([hidden="until-found"]) { display: none; }
.hc-a-clip { overflow: hidden; min-height: 0; }
.hc-a-inner { padding: 0 18px 16px; color: var(--hc-muted); font-size: 15.5px; line-height: 1.7; }
.hc-a-inner p { margin: 0 0 10px; }
.hc .hc-a-inner ul { margin: 0 0 10px; padding-left: 22px; list-style: disc outside; }
.hc .hc-a-inner li { display: list-item; }
.hc-a-inner li { margin: 0 0 6px; }
.hc-a-inner strong { color: var(--hc-ink); }
.hc-a-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding-top: 6px; border-top: 1px solid var(--hc-line); margin-top: 6px; }
.hc-copy { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 10px; border-radius: 9px; border: 1px solid var(--hc-line);
  background: transparent; color: var(--hc-muted); font: inherit; font-size: 13px; cursor: pointer; }
.hc-copy svg { width: 14px; height: 14px; }
.hc-copy:hover { color: var(--hc-ink); border-color: var(--hc-brand); }
.hc-copy:focus-visible { outline: 2px solid var(--hc-brand); outline-offset: 2px; }
.hc-copy.is-copied { color: var(--success, #5EA872); border-color: rgba(94, 168, 114, .5); }
.hc-act { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 12px; border-radius: 9px; background: var(--hc-brand); color: #141414 !important;
  font-weight: 650; font-size: 14px; text-decoration: none; }
.hc-act:hover { background: var(--pk-brand-hover, #FF8A3D); }
.hc-act:focus-visible { outline: 2px solid var(--hc-ink); outline-offset: 2px; }
.hc-note { display: block; margin: 0 0 10px; padding: 10px 12px; border-left: 3px solid var(--warning, #E8B339); background: var(--warning-wash, rgba(232, 179, 57, .12));
  border-radius: 0 8px 8px 0; color: var(--hc-ink); font-size: 14.5px; }
.hc-alias { display: block; position: relative; top: -96px; height: 0; width: 0; overflow: hidden; }

@media (max-width: 600px) {
  .hc-search { padding: 18px 14px 14px; }
  .hc-btn { padding: 14px 14px; font-size: 16px; gap: 10px; flex-wrap: wrap; }
  .hc-q-text { flex-basis: calc(100% - 44px); }
  .hc-aud { order: 3; }
  .hc-chev { order: 2; }
  .hc-a-inner { padding: 0 14px 14px; font-size: 15px; }
  .hc-cats { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 4px; }
  .hc-cats::-webkit-scrollbar { display: none; }
  .hc-cats li { flex: 0 0 auto; }
}
@media (prefers-reduced-motion: reduce) {
  .hc-a, .hc-chev, .hc-item, .hc-search-input { transition: none !important; }
}
