/* Knowledge and community (module 25-knowledge): staff screens (kb-) and the branded help centre (kbh-). */

/* ---------------------------------------------------------------- staff screens */
.kb-bulk { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 10px 12px; border-bottom: 1px solid #e0e7ed; }
.kb-bulk select, .kb-bulk input { max-width: 280px; min-width: 0; }
.kb-saved { flex-wrap: wrap; gap: 6px; }
.kb-lang { display: inline-block; font: 700 10px/1 var(--fb, sans-serif); padding: 3px 5px; border-radius: 3px; border: 1px solid #c9d6e2; color: #5b6b7f; margin: 0 3px 3px 0; }
.kb-lang.live { background: #e7f6ef; border-color: #9fd8bd; color: #0f7a52; }
.kb-bad { color: #c4314b !important; }
.kb-langtabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid #dbe4ec; }
.kb-langtabs a { padding: 7px 12px; border: 1px solid #dbe4ec; border-bottom: 0; border-radius: 4px 4px 0 0; background: #f4f7fa; color: #3b4a5c; font-weight: 600; font-size: 13px; }
.kb-langtabs a.on { background: #fff; color: var(--brand-primary-dark); position: relative; top: 1px; }
.kb-langtabs a.add { border-style: dashed; color: #5b6b7f; }
.kb-summary { font-size: 15px; color: #3b4a5c; margin: 0 0 12px; }
.kb-staffbody { max-width: 860px; }
.kb-review-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.kb-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.kb-actions-col > form, .kb-actions-col > .ct-btn { width: 100%; }
.kb-actions-col .ct-btn { width: 100%; justify-content: flex-start; }
.kb-note { margin-top: 4px; color: #3b4a5c; white-space: normal; overflow-wrap: anywhere; }
.kb-tl li { min-width: 0; }
.kb-editor { display: grid; gap: 6px; min-width: 0; }
.kb-toolbar { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.kb-toolbar .ct-btn.on { background: #e6f2ff; }
.kb-edmsg { font-size: 12px; color: #5b6b7f; }
.kb-editor textarea { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; line-height: 1.5; }
.kb-preview { border: 1px dashed #b9c8d6; border-radius: 4px; padding: 12px 16px; background: #fbfcfe; max-height: 520px; overflow: auto; position: relative; }
.kb-lbl { display: block; font-weight: 600; font-size: 13px; margin-bottom: 4px; }
.kb-steps { margin: 0; padding-left: 18px; display: grid; gap: 6px; color: #3b4a5c; }
.kb-indent { padding-left: 26px !important; color: #3b4a5c; }
.kb-catrow td { background: #f7fafc; }
.kb-muted td { opacity: .65; }
.kb-trial { margin: 10px 0 6px; padding-left: 18px; display: grid; gap: 4px; }
.kb-desk { display: grid; gap: 8px; min-width: 0; }
.kb-desk-h { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #5b6b7f; }
.kb-desk-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.kb-desk-item { border: 1px solid #e3eaf1; border-radius: 4px; padding: 8px 10px; display: grid; gap: 4px; min-width: 0; }
.kb-desk-item a { overflow-wrap: anywhere; }
.kb-desk-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.kb-suggest { border: 1px solid #cfe0f1; background: #f3f8fe; border-radius: 6px; padding: 10px 12px; margin: 6px 0 12px; }
.kb-suggest ul { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 6px; }
.kb-suggest li span { display: block; font-size: 12px; color: #5b6b7f; }
.kb-portal-search { max-width: 640px; }

/* ---------------------------------------------------------------- the help centre */
.kbh { --kb: var(--brand-primary); background: #f6f8fb; color: #1d2a3a; }
.kbh-wrap { max-width: 1120px; margin: 0 auto; padding: 0 18px; min-width: 0; }
.kbh-top { background: #fff; border-bottom: 3px solid var(--kb); position: sticky; top: 0; z-index: 30; }
.kbh-top .kbh-wrap { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 62px; flex-wrap: wrap; }
.kbh-brand { display: flex; align-items: center; gap: 10px; color: #1d2a3a; font-weight: 700; min-width: 0; }
.kbh-brand img { max-height: 34px; width: auto; }
.kbh-brand .kit-wordmark.on-dark { color: var(--kb); }
.kbh-mark { width: 34px; height: 34px; border-radius: 8px; background: var(--kb); color: #fff; display: inline-grid; place-items: center; font-size: 17px; }
.kbh-name { font-size: 16px; overflow-wrap: anywhere; }
.kbh-nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.kbh-nav > a { padding: 7px 10px; border-radius: 4px; color: #3b4a5c; font-weight: 600; font-size: 14px; }
.kbh-nav > a.on, .kbh-nav > a:hover { background: color-mix(in srgb, var(--kb) 10%, #fff); color: var(--kb); }
.kbh-nav .kbh-btn { border: 1px solid color-mix(in srgb, var(--kb) 40%, #fff); }
.kbh-lang select { height: 32px; border: 1px solid #c9d6e2; border-radius: 4px; padding: 0 6px; background: #fff; }
.kbh-main { min-height: 60vh; padding-bottom: 76px; }
.kbh-hero { background: linear-gradient(160deg, var(--kb), color-mix(in srgb, var(--kb) 70%, #000)); color: #fff; padding: 46px 0 50px; }
.kbh-hero h1 { color: #fff; font-size: 32px; margin: 0 0 18px; text-align: center; }
.kbh-search { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid #c9d6e2; border-radius: 8px; padding: 4px 4px 4px 12px; max-width: 720px; position: relative; }
.kbh-search.big { margin: 0 auto; box-shadow: 0 6px 22px rgba(0, 0, 0, .18); border: 0; padding: 6px 6px 6px 16px; }
.kbh-search i { color: #7a8a9c; }
.kbh-search input { flex: 1; min-width: 0; border: 0; outline: 0; font-size: 16px; height: 40px; background: transparent; }
.kbh-search button { background: var(--kb); color: #fff; border: 0; border-radius: 6px; height: 40px; padding: 0 16px; font-weight: 700; cursor: pointer; }
.kbh-sec { padding-top: 28px; }
.kbh-sec h2 { font-size: 19px; margin: 0 0 12px; }
.kbh-mut { color: #5b6b7f; }
.kbh-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.kbh-cat { background: #fff; border: 1px solid #dfe7ef; border-radius: 8px; padding: 16px; display: grid; gap: 4px; color: #1d2a3a; min-width: 0; transition: border-color .15s, box-shadow .15s; }
.kbh-cat:hover { border-color: var(--kb); box-shadow: 0 4px 14px rgba(16, 35, 62, .08); color: #1d2a3a; }
.kbh-cat i { font-size: 24px; color: var(--kb); }
.kbh-cat span { color: #5b6b7f; font-size: 13px; }
.kbh-cat small { color: #7a8a9c; }
.kbh-two { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px; }
.kbh-list { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 2px; }
.kbh-list li { padding: 9px 0; border-bottom: 1px solid #e6edf3; min-width: 0; }
.kbh-list li a { font-weight: 600; overflow-wrap: anywhere; color: #1d4f86; }
.kbh-list li p { margin: 3px 0 0 22px; font-size: 13px; color: #5b6b7f; }
.kbh-cta { display: inline-flex; align-items: center; gap: 6px; background: var(--kb); color: #fff; border: 1px solid var(--kb); border-radius: 6px; padding: 9px 14px; font-weight: 700; cursor: pointer; font-size: 14px; }
.kbh-cta:hover { color: #fff; filter: brightness(.95); }
.kbh-cta.ghost { background: #fff; color: var(--kb); }
.kbh-need { background: #fff; border: 1px solid #dfe7ef; border-radius: 8px; padding: 16px; margin-top: 18px; display: grid; gap: 8px; justify-items: start; }
.kbh-need h3 { margin: 0; font-size: 16px; }
.kbh-crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; color: #5b6b7f; margin-bottom: 10px; }
.kbh-crumbs i { font-size: 10px; }
.kbh-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 6px; }
.kbh-head h1 { margin: 0; font-size: 26px; }
.kbh-head .kbh-search { flex: 0 1 420px; }
.kbh-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.kbh-sections { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; margin-top: 16px; }
.kbh-section { min-width: 0; }
.kbh-section h2 a { color: #1d2a3a; }
.kbh-more { font-weight: 600; font-size: 14px; }
.kbh-article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: start; }
.kbh-article { background: #fff; border: 1px solid #dfe7ef; border-radius: 8px; padding: 24px 28px; min-width: 0; }
.kbh-article h1 { font-size: 28px; margin: 4px 0 6px; overflow-wrap: anywhere; }
.kbh-meta { color: #5b6b7f; font-size: 13px; margin: 0 0 14px; }
.kbh-lead { font-size: 16px; color: #3b4a5c; }
.kbh-body { font-size: 15.5px; line-height: 1.65; overflow-wrap: anywhere; min-width: 0; }
.kbh-body h2, .kbh-body h3, .kbh-body h4, .kbh-body h5 { margin: 22px 0 8px; line-height: 1.3; }
.kbh-body h2 { font-size: 21px; } .kbh-body h3 { font-size: 18px; } .kbh-body h4, .kbh-body h5 { font-size: 16px; }
.kbh-body ol, .kbh-body ul { padding-left: 22px; }
.kbh-body li { margin: 4px 0; }
.kbh-body code { background: #eef3f8; border-radius: 3px; padding: 1px 4px; font-size: 13.5px; }
.kbh-body pre { background: #0f1b2b; color: #e7eef7; border-radius: 6px; padding: 12px 14px; overflow-x: auto; position: relative; }
.kbh-body pre code { background: none; color: inherit; padding: 0; }
.kbh-body blockquote { margin: 14px 0; padding: 10px 14px; border-left: 4px solid #c9d6e2; background: #f6f9fc; border-radius: 0 6px 6px 0; }
.kbh-body blockquote.kb-callout.info { border-left-color: var(--kb); background: color-mix(in srgb, var(--kb) 7%, #fff); }
.kbh-body blockquote.kb-callout.warn { border-left-color: #d99a06; background: #fff8e8; }
.kbh-body blockquote p { margin: 0; }
.kbh-body img { max-width: 100%; height: auto; border-radius: 6px; border: 1px solid #e3eaf1; }
.kbh-body figure { margin: 14px 0; }
.kbh-body a { text-decoration: underline; }
.kbh-feedback { border-top: 1px solid #e3eaf1; margin-top: 26px; padding-top: 18px; }
.kbh-feedback h2 { font-size: 17px; margin: 0 0 10px; }
.kbh-yesno { display: flex; gap: 8px; margin-bottom: 10px; }
.kbh-yesno button { border: 1px solid #c9d6e2; background: #fff; border-radius: 6px; padding: 8px 16px; font-weight: 700; cursor: pointer; }
.kbh-yesno button.on, .kbh-yesno button:hover { border-color: var(--kb); color: var(--kb); }
.kbh-vote details summary { cursor: pointer; color: #1d4f86; font-weight: 600; margin-bottom: 8px; }
.kbh-thanks { color: #0f7a52; font-weight: 600; }
.kbh-aside { display: grid; gap: 12px; min-width: 0; }
.kbh-aside h2 { font-size: 16px; margin: 0; }
.kbh-results-h { font-size: 22px; margin: 18px 0 12px; }
.kbh-results-h small { color: #7a8a9c; font-size: 14px; font-weight: 400; }
.kbh-answer { background: #fff; border: 1px solid color-mix(in srgb, var(--kb) 40%, #fff); border-left: 5px solid var(--kb); border-radius: 8px; padding: 16px 20px; margin-bottom: 18px; }
.kbh-answer-h { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--kb); }
.kbh-answer h2 { font-size: 18px; margin: 6px 0; }
.kbh-answer h2 small { color: #5b6b7f; font-weight: 400; }
.kbh-answer blockquote { margin: 8px 0; padding: 0 0 0 12px; border-left: 3px solid #e3eaf1; background: none; }
.kbh-results { display: grid; gap: 10px; }
.kbh-hit { background: #fff; border: 1px solid #dfe7ef; border-radius: 8px; padding: 12px 16px; display: grid; gap: 3px; min-width: 0; }
.kbh-hit a b { font-size: 16px; color: #1d4f86; overflow-wrap: anywhere; }
.kbh-hit p { margin: 4px 0 0; color: #3b4a5c; font-size: 14px; overflow-wrap: anywhere; }
.kbh-hit mark { background: color-mix(in srgb, var(--kb) 18%, #fff); padding: 0 1px; border-radius: 2px; }
.kbh-hit.ext { border-style: dashed; }
.kbh-path { font-size: 12.5px; color: #6b7b8e; overflow-wrap: anywhere; }
.kbh-sub { font-size: 17px; margin: 18px 0 6px; }
.kbh-none { background: #fff; border: 1px solid #dfe7ef; border-radius: 8px; padding: 26px; display: grid; gap: 8px; justify-items: center; text-align: center; }
.kbh-none > i { font-size: 30px; color: #9aaabb; }
.kbh-chips { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.kbh-chips a { border: 1px solid #c9d6e2; border-radius: 99px; padding: 4px 10px; font-size: 13px; background: #fff; }
.kbh-pager { margin-top: 8px; }
.kbh-comm { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; margin-top: 12px; }
.kbh-topics { display: grid; gap: 2px; align-content: start; min-width: 0; }
.kbh-topics h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: #5b6b7f; margin: 0 0 6px; }
.kbh-topics a { padding: 7px 10px; border-radius: 4px; color: #3b4a5c; display: flex; gap: 6px; align-items: center; min-width: 0; }
.kbh-topics a small { margin-left: auto; color: #7a8a9c; }
.kbh-topics a.on { background: color-mix(in srgb, var(--kb) 10%, #fff); color: var(--kb); font-weight: 700; }
.kbh-tabs { display: flex; gap: 6px; margin-bottom: 10px; }
.kbh-tabs a { padding: 6px 12px; border-radius: 99px; border: 1px solid #c9d6e2; background: #fff; font-size: 13px; color: #3b4a5c; }
.kbh-tabs a.on { border-color: var(--kb); color: var(--kb); font-weight: 700; }
.kbh-post-row { display: grid; grid-template-columns: 58px 58px minmax(0, 1fr); gap: 10px; align-items: center; background: #fff; border: 1px solid #dfe7ef; border-radius: 8px; padding: 10px 12px; margin-bottom: 8px; }
.kbh-stats { display: grid; justify-items: center; color: #5b6b7f; border-radius: 6px; padding: 4px 0; }
.kbh-stats b { font-size: 17px; color: #1d2a3a; }
.kbh-stats small { font-size: 11px; }
.kbh-stats.ok { background: #e7f6ef; } .kbh-stats.ok b { color: #0f7a52; }
.kbh-post-main { display: grid; gap: 3px; min-width: 0; }
.kbh-post-main a b { overflow-wrap: anywhere; }
.kbh-narrow { max-width: 860px; }
.kbh-form { background: #fff; border: 1px solid #dfe7ef; border-radius: 8px; padding: 18px; margin-top: 12px; }
.kbh-thread { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; background: #fff; border: 1px solid #dfe7ef; border-radius: 8px; padding: 16px; margin: 12px 0; }
.kbh-thread h1 { font-size: 24px; margin: 4px 0 10px; overflow-wrap: anywhere; }
.kbh-thread.accepted { border-color: #9fd8bd; box-shadow: inset 4px 0 0 #12a079; }
.kbh-thread.hidden { opacity: .7; }
.kbh-thread-main { min-width: 0; }
.kbh-votecol { display: grid; justify-items: center; align-content: start; gap: 2px; }
.kbh-voteform button, .kbh-voteicon { width: 36px; height: 36px; border-radius: 50%; border: 1px solid #c9d6e2; background: #fff; color: #5b6b7f; cursor: pointer; display: grid; place-items: center; }
.kbh-voteform button.on { border-color: var(--kb); color: #fff; background: var(--kb); }
.kbh-votes { font-size: 15px; }
.kbh-acc { color: #12a079; font-size: 22px; margin-top: 6px; }
.kbh-tools { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.kbh-link { background: none; border: 0; padding: 0; color: #1d4f86; cursor: pointer; font-size: 13px; font-weight: 600; }
.kbh-link.sm { font-size: 12px; color: #7a8a9c; }
.kbh-comments { margin-top: 10px; border-top: 1px solid #eef2f6; display: grid; }
.kbh-comment { padding: 7px 0; border-bottom: 1px solid #eef2f6; font-size: 14px; overflow-wrap: anywhere; }
.kbh-comment.hidden { color: #7a8a9c; }
.kbh-addcomment summary { cursor: pointer; font-size: 13px; color: #1d4f86; padding: 6px 0; }
.kbh-foot { border-top: 1px solid #dfe7ef; background: #fff; padding: 16px 0; font-size: 13px; color: #5b6b7f; }
.kbh-foot .kbh-wrap { display: flex; gap: 18px; flex-wrap: wrap; }

@media (max-width: 860px) {
    .kbh-two, .kbh-article-grid, .kbh-comm { grid-template-columns: minmax(0, 1fr); }
    .kbh-article { padding: 18px 16px; }
    .kbh-hero h1 { font-size: 25px; }
    .kbh-head .kbh-search { flex: 1 1 100%; }
}
@media (max-width: 560px) {
    .kbh-sections { grid-template-columns: minmax(0, 1fr); }
    .kbh-post-row { grid-template-columns: 46px 46px minmax(0, 1fr); padding: 8px; }
    .kbh-thread { grid-template-columns: 40px minmax(0, 1fr); padding: 12px; }
    .kbh-search button { padding: 0 10px; }
    .kbh-name { font-size: 14px; }
}

/* Dashboard panels */
.kb-ref { font-weight: 700; white-space: nowrap; }
.kb-nowrap { white-space: nowrap; }
.kb-dbstats { padding: 12px 16px; border-top: 1px solid #eef2f6; }
.kb-dbstats.top { border-top: 0; border-bottom: 1px solid #eef2f6; }
.kb-dbtbl td:first-child { white-space: normal; min-width: 170px; }
.kb-dbtbl td:first-child .sub { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Lists: status tabs, find panel, tables that fit */
.kb-seg { flex-wrap: wrap; }
.kb-findpanel .ct-filters { flex-wrap: wrap; }
.kb-listpanel .ct-tbl td { white-space: normal; }
.kb-listpanel .ct-tbl td.num, .kb-listpanel .ct-tbl td.r, .kb-listpanel .ct-tbl td .ct-pill, .kb-listpanel .ct-tbl td a b { white-space: nowrap; }
.kb-listpanel .ct-tbl td:has(> a > b) { min-width: 200px; }
.kb-listpanel .ct-tbl td:has(> input[type=checkbox]) { width: 1%; }
.kb-feed { display: flex; flex-direction: column; gap: 0; border-top: 1px solid #eef2f6; padding-top: 6px; }
.kb-fi { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; border-bottom: 1px dashed #e6ecf1; font-size: 12.5px; min-width: 0; }
.kb-fi:last-child { border-bottom: 0; }
.kb-fi > i { width: 26px; height: 26px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; background: #eef4fb; color: #1d5fa8; flex: none; }
.kb-fi > i.ok { background: #e7f8f1; color: #04955d; } .kb-fi > i.bad { background: #fde8ed; color: #c01d47; }
.kb-fi > div { min-width: 0; overflow-wrap: anywhere; }
.kb-fi .sub { display: block; color: #6b7d92; font-size: 11.5px; }

/* Help centre: hero figures and the footer */
.kbh-stats { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 22px; margin-top: 18px; font-size: 14px; color: rgba(255, 255, 255, .86); }
.kbh-stats b { color: #fff; font-size: 16px; }
.kbh-stats a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.kbh-foot { border-top: 0; background: #0f1f33; color: #b7c4d4; padding: 34px 0 0; font-size: 13.5px; }
.kbh-foot .kbh-wrap.kbh-fcols { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 24px; }
.kbh-foot h4 { color: #fff; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 10px; }
.kbh-foot a { color: #dce6f2; display: block; padding: 3px 0; }
.kbh-foot a:hover { color: #fff; }
.kbh-fbrand b { color: #fff; font-size: 16px; }
.kbh-fbrand p { margin: 8px 0 0; color: #9fb0c4; }
.kbh-fbrand p a { display: inline; }
.kbh-foot .kbh-wrap.kbh-fbar { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 26px; padding-top: 14px; padding-bottom: 18px; font-size: 12.5px; color: #8fa1b6; }
.kbh-fbar a { display: inline-flex; gap: 6px; padding: 0; }
@media (max-width: 760px) { .kbh-foot .kbh-wrap.kbh-fcols { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kbh-fbrand { grid-column: 1 / -1; } }
