/*
 * Help centre styles. Loaded after the site theme (theme.css) and built only from its tokens:
 * no colour literals here (a test checks), no inline styles anywhere (the CSP forbids them).
 * The one idea: the search box is the page. On article pages the answer comes first, in the
 * subject's own colour, and a dot rides down the contents list as you read.
 *
 *  Help bar      .help-bar > .help-bar-in > .hb-home + .lang-sw > .ls-opt (.is-current)
 *  Help home     .help-hero .hc-search > .hc-search-field > input   .hc-jump > .hc-chip   .help-list > .hc-topic
 *                .q-rows > .q-row > a > .q-title + .q-sum   (.g-row adds .g-meta)   .help-end
 *  Article       .art > .art-head + .art-grid > .art-aside (.hc-toc + .hc-toc-dot) + .art-main
 *                .hc-answer  .hc-toc-m  .art-body (h2, p, ul, .hc-steps, .hc-key, .hc-tbl-wrap > .hc-tbl, .hc-cite)
 *                .art-sources > .hc-src   .clear-box > .clear-opts > details   .hc-cta   .hc-related
 */

/* ---------- help bar ---------- */
.help-bar { border-bottom: 1px solid var(--line); background: var(--page); }
.help-bar-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 58px; }
.hb-home { display: inline-flex; align-items: center; gap: 8px; margin-left: -10px; padding: 8px 14px 8px 10px; border-radius: 999px; font-weight: 700; font-size: 15.5px; color: var(--ink); text-decoration: none; transition: background-color 150ms var(--ease); }
.hb-home:hover { background: var(--wash); }
.hb-home svg { width: 20px; height: 20px; fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; }
.lang-sw { display: flex; gap: 2px; padding: 3px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2); }
.ls-opt { display: inline-flex; align-items: center; min-height: 38px; padding: 0 13px; border-radius: 999px; font-weight: 700; font-size: 14.5px; color: var(--ink); text-decoration: none; transition: background-color 150ms var(--ease); }
a.ls-opt:hover { background: var(--wash); }
.ls-opt.is-current { background: var(--ink); color: var(--page); }
.ls-short { display: none; }
@media (max-width: 559px) { .ls-long { display: none; } .ls-short { display: inline; } .ls-opt { padding: 0 12px; } }
@media (max-width: 400px) { .hb-home { font-size: 14.5px; white-space: nowrap; gap: 6px; } .ls-opt { padding: 0 10px; min-height: 36px; font-size: 13.5px; } }

/* ---------- help home: the search is the page ---------- */
.help-hero { padding-bottom: clamp(28px, 4vw, 48px); }
.hc-hero-in { display: grid; gap: 40px; align-items: end; }
@media (min-width: 1100px) { .hc-hero-in { grid-template-columns: minmax(0, 1fr) 360px; gap: 64px; } }
.hc-short { display: none; }
@media (min-width: 1100px) { .hc-short { display: block; padding: 22px 24px 10px; border-radius: 26px; background: var(--page); box-shadow: var(--sh-2), inset 0 0 0 1px var(--line); } }
.hc-short-h { font-size: 14.5px; font-weight: 700; color: var(--ink-2); }
.hc-short ul { list-style: none; margin: 8px 0 0; padding: 0; }
.hc-short li + li { border-top: 1px solid var(--line); }
.hc-short a { display: grid; gap: 2px; padding: 14px 0; color: var(--ink); text-decoration: none; }
.hc-short strong { font-size: 18px; font-weight: 750; letter-spacing: -0.01em; }
.hc-short span { color: var(--ink-2); font-size: 15.5px; line-height: 1.45; }
.hc-short a:hover strong { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.help-hero .display { font-size: clamp(40px, 9vw, 84px); }
.hc-search { margin-top: clamp(26px, 4vw, 40px); max-width: 48rem; }
.hc-search-label { display: block; margin-bottom: 10px; font-weight: 700; font-size: 15.5px; }
.hc-search-field { position: relative; }
.hc-search-field svg { position: absolute; left: 22px; top: 50%; width: 26px; height: 26px; margin-top: -13px; fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; pointer-events: none; }
@media (max-width: 400px) { .hc-search-field input { font-size: 18px; padding-left: 56px; } .hc-search-field svg { left: 19px; } }
.hc-search-field input { -webkit-appearance: none; appearance: none; width: 100%; min-height: 68px; padding: 10px 24px 10px 62px; border: 0; border-radius: 999px; background: var(--page); color: var(--ink); font-size: clamp(19px, 2.4vw, 23px); font-weight: 600; letter-spacing: -0.01em; box-shadow: var(--sh-2), inset 0 0 0 2px var(--line-2); transition: box-shadow 250ms var(--ease); }
.hc-search-field input::placeholder { color: var(--ink-2); font-weight: 500; opacity: 1; }
.hc-search-field input:hover { box-shadow: var(--sh-2), inset 0 0 0 2px var(--ink-2); }
.hc-search-field input:focus { outline: none; box-shadow: var(--sh-2), inset 0 0 0 2.5px var(--accent), 0 0 0 6px var(--accent-mid); }
.hc-search-field input::-webkit-search-decoration { -webkit-appearance: none; }
.hc-search-count { margin-top: 12px; min-height: 1.6em; }
.hc-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: clamp(20px, 3vw, 28px); }
.hc-chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--page); color: var(--ink); font-weight: 600; font-size: 15px; text-decoration: none; box-shadow: inset 0 0 0 1.5px var(--line-2); transition: box-shadow 150ms var(--ease), background-color 150ms var(--ease); }
.hc-chip:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
html.is-searching .hc-jump { display: none; }

.help-list { padding-block: clamp(12px, 2vw, 24px) clamp(56px, 8vw, 104px); }
.hc-topic { scroll-margin-top: 84px; }
.hc-topic .area-head { line-height: 1.15; }
.hc-topic .area-head::before { transform: translateY(-2px); }
.hc-topic-desc { margin-top: 10px; max-width: 22em; color: var(--ink-2); font-size: 15.5px; }
.q-rows { list-style: none; margin: 0; padding: 0; }
.q-row + .q-row { border-top: 1px solid var(--line); }
.q-row a { display: grid; gap: 4px; padding: 18px 0; color: var(--ink); text-decoration: none; }
.q-title { justify-self: start; font-weight: 700; font-size: clamp(18px, 2vw, 21px); line-height: 1.3; letter-spacing: -0.015em; text-wrap: balance;
  background: linear-gradient(var(--accent-mid), var(--accent-mid)) no-repeat 0 92% / 0% 0.42em; transition: background-size 320ms var(--ease); }
.q-row a:hover .q-title, .q-row a:focus-visible .q-title { background-size: 100% 0.42em; }
.q-sum { color: var(--ink-2); font-size: 16px; max-width: 40em; }
.q-title mark { color: inherit; border-radius: 3px; background: linear-gradient(90deg, var(--accent-mid) 50%, transparent 50%) 100% 0 / 200% 100% no-repeat; animation: hl 300ms var(--ease) forwards; }
@keyframes hl { to { background-position: 0 0; } }
.g-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-bottom: 6px; }
.hc-search-empty { padding: 28px 0 8px; border-top: 1.5px solid var(--ink); color: var(--ink-2); }
.hc-search-empty-q { font-size: clamp(20px, 2.4vw, 26px); font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.hc-search-empty p + p { margin-top: 8px; }
.hc-search-empty-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px !important; }

.help-end-in { display: grid; gap: 24px 48px; align-items: center; }
@media (min-width: 900px) { .help-end-in { grid-template-columns: minmax(0, 1fr) auto; } }
.help-end .lede { margin-top: 14px; }
.btn svg { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 559px) { .help-end .btn { width: 100%; white-space: normal; text-align: center; } }

/* ---------- article and guide pages ---------- */
.art-head { padding-bottom: clamp(20px, 3vw, 36px); }
.art-head .hc-crumbs { margin-bottom: 18px; }
.hc-crumbs a { color: var(--ink-2); }
.art-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.art-h1.display { font-size: clamp(32px, 6.2vw, 58px); max-width: 17em; }
.art-meta { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 18px; }
.art-meta span { display: inline-flex; align-items: center; gap: 7px; }
.art-meta svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.art-grid { display: grid; gap: 40px; padding-bottom: clamp(48px, 7vw, 96px); }
.art-main { min-width: 0; max-width: 44rem; }
.art-aside { order: 2; min-width: 0; }
.is-guide .art-aside { display: none; }
@media (min-width: 1000px) {
  .art-grid { grid-template-columns: 236px minmax(0, 44rem); gap: 72px; }
  .art-aside, .is-guide .art-aside { display: block; order: 0; }
  .hc-toc-m { display: none; }
}

.hc-answer { padding: 22px 24px; border-radius: 22px; background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent-mid); color: var(--ink); font-size: clamp(19px, 2vw, 21.5px); line-height: 1.5; font-weight: 500; text-wrap: pretty; }
.hc-answer strong { font-weight: 800; }

.hc-toc { position: sticky; top: 100px; padding-left: 18px; border-left: 1.5px solid var(--line); }
.hc-toc-h { margin-bottom: 8px; font-weight: 700; font-size: 14.5px; color: var(--ink); }
.hc-toc ol, .hc-toc-m ol { list-style: none; margin: 0; padding: 0; }
.hc-toc a { display: block; padding: 6px 0; font-size: 15px; line-height: 1.35; color: var(--ink-2); text-decoration: none; transition: color 200ms var(--ease); }
.hc-toc a:hover, .hc-toc a[aria-current] { color: var(--ink); }
.hc-toc a[aria-current] { font-weight: 700; }
.hc-toc-dot { position: absolute; left: -5.75px; top: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); opacity: 0; pointer-events: none; transition: transform 380ms var(--ease), opacity 200ms var(--ease); }
.hc-toc-dot.on { opacity: 1; }
.hc-toc-topic { position: static; }
@media (min-width: 1000px) { .hc-toc-topic { position: sticky; } }
@media (max-width: 999px) { .art-aside { display: none; } }

.hc-toc-m { margin-top: 20px; border-radius: 18px; box-shadow: inset 0 0 0 1px var(--line-2); }
.hc-toc-m summary { cursor: pointer; list-style: none; position: relative; padding: 15px 52px 15px 18px; font-weight: 700; }
.hc-toc-m summary::-webkit-details-marker { display: none; }
.hc-toc-m summary::after { content: "+"; position: absolute; right: 12px; top: 50%; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%; display: grid; place-items: center; background: var(--wash); font-size: 20px; line-height: 1; transition: transform 250ms var(--ease); }
.hc-toc-m[open] summary::after { transform: rotate(45deg); }
.hc-toc-m ol { padding: 0 18px 12px; }
.hc-toc-m a { display: block; padding: 9px 0; color: var(--ink); border-top: 1px solid var(--line); text-decoration: none; }

.art-body h2 { margin: 44px 0 12px; font-weight: 800; font-size: clamp(22px, 2.6vw, 28px); line-height: 1.15; letter-spacing: -0.02em; scroll-margin-top: 96px; text-wrap: balance; }
.art-body p + p, .art-body p + ul, .art-body p + ol, .art-body ul + p, .art-body ol + p, .art-body .hc-tbl-wrap + p, .art-body p + .hc-key, .art-body .hc-key + p { margin-top: 14px; }
.art-body ul { padding-left: 1.2em; margin-top: 12px; }
.art-body li + li { margin-top: 8px; }
.art-body li::marker { color: var(--accent); }
.art-body a { text-decoration-color: var(--accent); text-decoration-thickness: 1.5px; }
.hc-steps { list-style: none; margin: 14px 0 0; padding: 0; counter-reset: st; display: grid; gap: 12px; }
.hc-steps li { counter-increment: st; position: relative; padding-left: 46px; min-height: 32px; }
.hc-steps li + li { margin-top: 0; }
.hc-steps li::before { content: counter(st); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: 15px; }
.hc-key { margin-top: 18px; padding: 18px 20px; border-radius: 18px; background: var(--wash); box-shadow: inset 0 0 0 1px var(--line); font-weight: 600; }
.hc-cite { font-size: 0.66em; line-height: 1; vertical-align: 0.42em; margin-left: 3px; white-space: nowrap; }
.hc-cite a { padding: 0.1em 0.5em; border-radius: 999px; background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent-mid); color: var(--accent-deep); font-weight: 800; text-decoration: none; transition: background-color 150ms var(--ease); }
.hc-cite a + a { margin-left: 3px; }
.hc-cite a:hover, .hc-cite a:focus-visible { background: var(--accent-mid); }
.hc-answer .hc-cite a { background: var(--page); }

.hc-tbl-wrap { margin-top: 16px; overflow-x: auto; border-radius: 18px; box-shadow: inset 0 0 0 1px var(--line-2); -webkit-overflow-scrolling: touch; }
.hc-tbl { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.45; }
.hc-tbl th, .hc-tbl td { padding: 12px 16px; text-align: left; vertical-align: top; }
.hc-tbl thead th { background: var(--wash); color: var(--ink-2); font-size: 14.5px; font-weight: 700; }
.hc-tbl tbody tr + tr > * { border-top: 1px solid var(--line); }
.hc-tbl tbody th { font-weight: 700; }
@media (max-width: 559px) {
  .hc-tbl { font-size: 15px; } .hc-tbl th, .hc-tbl td { padding: 11px 12px; }
  .hc-tbl-wrap:not(.cols-2) .hc-tbl thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .hc-tbl-wrap:not(.cols-2) .hc-tbl tr, .hc-tbl-wrap:not(.cols-2) .hc-tbl th, .hc-tbl-wrap:not(.cols-2) .hc-tbl td { display: block; }
  .hc-tbl-wrap:not(.cols-2) .hc-tbl tbody th { padding: 14px 16px 4px; font-size: 16.5px; }
  .hc-tbl-wrap:not(.cols-2) .hc-tbl td { padding: 4px 16px; }
  .hc-tbl-wrap:not(.cols-2) .hc-tbl td:last-child { padding-bottom: 14px; }
  .hc-tbl-wrap:not(.cols-2) .hc-tbl td::before { content: attr(data-label) ": "; font-weight: 700; color: var(--ink-2); }
  .hc-tbl-wrap:not(.cols-2) .hc-tbl tbody tr + tr > * { border-top: 0; }
  .hc-tbl-wrap:not(.cols-2) .hc-tbl tbody tr + tr { border-top: 1px solid var(--line); }
}

.art-sources { margin-top: 48px; padding-top: 26px; border-top: 1.5px solid var(--ink); }
.art-sources h2 { font-weight: 800; font-size: 20px; letter-spacing: -0.01em; margin-bottom: 8px; }
.hc-src { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 12px; font-size: 15px; color: var(--ink-2); }
.hc-src li { position: relative; scroll-margin-top: 100px; padding: 6px 8px 6px 44px; margin-left: -8px; border-radius: 12px; transition: background-color 300ms var(--ease); }
.hc-src-n { position: absolute; left: 8px; top: 6px; min-width: 26px; padding: 1px 7px; border-radius: 999px; background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent-mid); color: var(--accent-deep); font-weight: 800; font-size: 13px; text-align: center; }
.hc-src li:target { background: var(--accent-soft); }
.hc-src a { color: var(--ink); overflow-wrap: anywhere; }
.art-note { margin-top: 24px; }

.clear-box { margin-top: 40px; padding: 24px; border-radius: 22px; background: var(--wash); }
.clear-box h2 { font-weight: 800; font-size: 21px; letter-spacing: -0.015em; }
.clear-box > .fine { margin-top: 6px; }
.clear-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; align-items: start; margin-top: 16px; }
.clear-opt { border-radius: 16px; background: var(--page); box-shadow: inset 0 0 0 1.5px var(--line-2); transition: box-shadow 200ms var(--ease); }
.clear-opt[open] { box-shadow: inset 0 0 0 2px var(--accent); }
.clear-opt summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 16px; font-weight: 700; border-radius: 16px; }
.clear-opt summary::-webkit-details-marker { display: none; }
.clear-opt summary::before { content: ""; width: 18px; height: 18px; flex: none; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--line-2); transition: box-shadow 200ms var(--ease); }
.clear-opt[open] summary::before { box-shadow: inset 0 0 0 5px var(--accent); }
.clear-opt p { padding: 0 16px 14px; color: var(--ink-2); font-size: 15.5px; }
.clear-opt p + p { padding-top: 0; }
.clear-opt .btn { white-space: normal; text-align: left; }

.hc-cta { background: var(--accent-soft); padding-block: clamp(48px, 7vw, 88px); }
.hc-cta-in { display: grid; gap: 24px 48px; align-items: center; }
@media (min-width: 960px) { .hc-cta-in { grid-template-columns: minmax(0, 1fr) auto; } }
.hc-cta .lede { margin-top: 14px; }
.hc-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 559px) { .hc-cta-actions .btn { width: 100%; } }

.hc-related { padding-block: clamp(48px, 6vw, 80px); border-top: 1px solid var(--line); }
.hc-related .h3 { margin-bottom: 8px; }
.rel-back { margin-top: 18px; font-weight: 600; }
