/* Help Centre / Learning Hub, premium finish (Nov 2026). Loaded after the inline styles in content/_head. */
.kb-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 1000; pointer-events: none; }
.kb-progress i { display: block; height: 100%; background: linear-gradient(90deg, #2fc28a, #4f8fe0); transform: scaleX(0); transform-origin: 0 50%; transition: transform .08s linear; }

.kb-copy { border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .08); color: #fff; border-radius: 999px; padding: 2px 12px; font-size: 13px; font-weight: 700; cursor: pointer; transition: background .15s; }
.kb-copy:hover { background: rgba(255, 255, 255, .16); }
.kb-copy.is-done { background: #2fc28a; border-color: #2fc28a; color: #06281a; }

/* three columns on wide screens: categories · article · contents */
@media (min-width: 1200px) {
    .kb-grid.has-toc { grid-template-columns: 250px minmax(0, 1fr) 220px; }
    .kb-grid.has-toc .kb-art .kb-toc { display: none; }
}
.kb-rail { display: none; }
@media (min-width: 1200px) {
    .kb-rail { display: block; position: sticky; top: 16px; padding: 16px 4px 16px 16px; border-left: 2px solid var(--line); }
    .kb-rail b { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 10px; font-weight: 800; }
    .kb-rail a { position: relative; display: block; padding: 6px 0; color: var(--muted); font-size: 14px; font-weight: 600; line-height: 1.35; transition: color .15s; }
    .kb-rail a::before { content: ""; position: absolute; left: -18px; top: 6px; bottom: 6px; width: 2px; border-radius: 2px; background: transparent; transition: background .15s; }
    .kb-rail a:hover { color: var(--ink); }
    .kb-rail a.is-on { color: var(--green-d); }
    .kb-rail a.is-on::before { background: var(--green); }
    .kb-rail .kb-rail-top { margin-top: 10px; font-size: 13px; color: var(--muted); }
}
.kb-col { min-width: 0; }

/* article text */
.kb-body h2 { position: relative; padding-top: 6px; }
.kb-body h2::before { content: ""; display: block; width: 36px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, #2fc28a, #4f8fe0); margin-bottom: 12px; }
.kb-body h2:first-child { margin-top: 6px; }
.kb-anchor { margin-left: 8px; color: var(--muted) !important; text-decoration: none !important; opacity: 0; font-weight: 600; transition: opacity .15s; }
.kb-body h2:hover .kb-anchor, .kb-body h3:hover .kb-anchor, .kb-anchor:focus { opacity: 1; }

.kb-path { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 12px 14px; border-radius: 14px; background: var(--soft); border: 1px solid var(--line); }
.kb-path .chip { padding: 4px 11px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 14px; font-weight: 700; color: var(--ink); }
.kb-path .chip.last { background: #e8faf2; border-color: #bdeed8; color: var(--green-d); }
.kb-path .sep { color: var(--muted); font-weight: 700; }
[data-theme="dark"] .kb-path .chip.last { background: #0f3327; border-color: #1e5a44; color: #7ff0bf; }

.kb-body ol.kb-ol { list-style: none; counter-reset: step; padding: 0; margin: 0 0 20px; }
.kb-body ol.kb-ol > li { counter-increment: step; position: relative; padding: 2px 0 14px 46px; margin: 0; }
.kb-body ol.kb-ol > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
    font-size: 14px; font-weight: 800; color: #06281a; background: #d7f6e8; border: 1px solid #a9e9cd; }
.kb-body ol.kb-ol > li::after { content: ""; position: absolute; left: 14.5px; top: 34px; bottom: 2px; width: 1px; background: var(--line); }
.kb-body ol.kb-ol > li:last-child::after { display: none; }
[data-theme="dark"] .kb-body ol.kb-ol > li::before { background: #0f3327; border-color: #1e5a44; color: #7ff0bf; }
.kb-body ul { padding-left: 0; list-style: none; }
.kb-body ul > li { position: relative; padding-left: 22px; }
.kb-body ul > li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.kb-body table { border-radius: 12px; overflow: hidden; border-style: hidden; box-shadow: 0 0 0 1px var(--line); }

/* cards and lists */
.kb-card { transition: box-shadow .2s; }
.kb-pop a { position: relative; border: 1px solid transparent; transition: transform .18s, background .18s, border-color .18s, box-shadow .18s; padding-right: 34px; }
.kb-pop a::after { content: "→"; position: absolute; right: 14px; top: 16px; color: var(--green-d); opacity: 0; transform: translateX(-4px); transition: opacity .18s, transform .18s; }
.kb-pop a:hover { transform: translateY(-2px); border-color: #bdeed8; box-shadow: 0 14px 28px -20px rgba(12, 32, 52, .45); }
.kb-pop a:hover::after { opacity: 1; transform: none; }
.kb-list a { border-radius: 10px; padding-left: 8px; padding-right: 8px; transition: background .15s, color .15s; }
.kb-list a:hover { background: var(--soft); }
.kb-side a { transition: background .15s, color .15s; }
.kb-search form { transition: box-shadow .2s; }
.kb-search form:focus-within { box-shadow: 0 0 0 4px rgba(47, 194, 138, .35), 0 24px 50px -24px rgba(0, 0, 0, .6); }
.kb-cta { box-shadow: 0 24px 50px -30px rgba(12, 32, 52, .7); }
.kb-cta a { transition: transform .15s; }
.kb-cta a:hover { transform: translateY(-2px); }
@media (max-width: 640px) {
    .kb-body ol.kb-ol > li { padding-left: 40px; }
    .kb-path .chip { font-size: 13px; }
}
