/* Help side panel, help pages and the reader's side of the help desk. */
.help-offcanvas, .help-page, .help-need, .help-pill {
  --help-accent: var(--clr-primary, var(--bs-primary, #245f8f));
  --help-accent-soft: var(--clr-primary-soft, var(--bs-primary-bg-subtle, #e8f0f6));
  --help-ink: var(--clr-heading, #14273a);
  --help-muted: #5f6f80;
  --help-line: var(--bs-border-color, #dde3ea);
  --help-line-soft: #edf1f5;
  --help-surface: #fff;
  --help-tint: #f6f8fb;
  --help-radius: 10px;
}

/* ---------- Staff top bar: the labelled Help pill ---------- */
.help-button { position: relative; display: inline-flex; align-items: center; justify-content: center; }
.help-button.has-news::after { content: ""; position: absolute; top: 6px; right: 4px; width: 9px; height: 9px; border-radius: 50%; background: #dc3545; box-shadow: 0 0 0 2px #fff; }
.backend-admin-header .nav-link.help-button.help-pill,
.help-button.help-pill {
  display: inline-flex; align-items: center; gap: .45rem; height: 2.25rem; padding: 0 .5rem 0 .6rem; margin: 0 .15rem;
  border: 1px solid var(--admin-shell-border, #c9d3de); border-radius: 999px; background: #fff;
  color: var(--help-ink); font-size: .875rem; font-weight: 600; line-height: 1; white-space: nowrap;
  box-shadow: 0 1px 2px rgba(17, 29, 43, .05);
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.help-pill > .bi { font-size: 1.05rem; color: var(--help-accent); }
.help-pill .help-pill-key {
  display: inline-flex; align-items: center; justify-content: center; min-width: 1.3rem; height: 1.3rem; padding: 0 .3rem;
  border: 1px solid var(--help-line); border-bottom-width: 2px; border-radius: 5px; background: var(--help-tint);
  color: var(--help-muted); font: 600 .72rem/1 var(--bs-font-monospace, monospace); box-shadow: none;
}
.backend-admin-header .nav-link.help-button.help-pill:hover,
.backend-admin-header .nav-link.help-button.help-pill:focus-visible,
.help-button.help-pill:hover {
  background: var(--help-accent-soft); border-color: color-mix(in srgb, var(--help-accent) 45%, #fff); color: var(--help-accent);
}
.help-button.help-pill:focus-visible { outline: 2px solid color-mix(in srgb, var(--help-accent) 55%, transparent); outline-offset: 2px; }
.help-button.help-pill.has-news::after { top: -3px; right: -3px; width: 10px; height: 10px; }
@media (max-width: 1279.98px) {
  .help-pill .help-pill-key { display: none; }
  .backend-admin-header .nav-link.help-button.help-pill, .help-button.help-pill { padding-right: .8rem; }
}
@media (max-width: 767.98px) {
  .help-pill-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .backend-admin-header .nav-link.help-button.help-pill, .help-button.help-pill { width: 2.4rem; height: 2.4rem; padding: 0; justify-content: center; }
  .help-pill > .bi { font-size: 1.15rem; }
}

/* ---------- The panel ---------- */
.help-offcanvas { width: min(480px, 100vw) !important; z-index: 1100 !important; background: var(--help-surface); border-left: 1px solid var(--help-line) !important; box-shadow: -12px 0 32px rgba(17, 29, 43, .12); }
/* above the portal's floating Help desk button (1095) */
body:has(.help-offcanvas.show) .help-desk { visibility: hidden; }
.help-head { gap: .7rem; padding: .85rem 1rem .85rem 1.15rem; border-bottom: 1px solid var(--help-line-soft); align-items: center; }
.help-head-icon { flex: none; width: 2.2rem; height: 2.2rem; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--help-accent-soft); color: var(--help-accent); font-size: 1.15rem; }
.help-back:not([hidden]) + .help-head-icon { display: none; }
.help-head-text { flex: 1; min-width: 0; }
.help-offcanvas .offcanvas-title { font-size: 1.05rem; font-weight: 700; margin: 0; color: var(--help-ink); line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.help-head-sub { margin: .1rem 0 0; color: var(--help-muted); font-size: .82rem; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.help-head-btn { flex: none; width: 2.2rem; height: 2.2rem; border: 0; border-radius: 8px; background: transparent; color: var(--help-muted); display: inline-flex; align-items: center; justify-content: center; font-size: 1.05rem; }
.help-head-btn:hover { background: var(--help-tint); color: var(--help-ink); }
.help-head-btn:focus-visible, .help-offcanvas a:focus-visible, .help-offcanvas button:focus-visible, .help-offcanvas summary:focus-visible, .help-page a:focus-visible, .help-need a:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--help-accent) 60%, transparent); outline-offset: 2px; border-radius: 8px;
}
.help-offcanvas .offcanvas-body { padding: 1rem 1.15rem 1.5rem; overscroll-behavior: contain; }
.help-loading { color: var(--help-muted); padding: 1rem 0; display: flex; gap: .5rem; align-items: center; }
.help-offcanvas-footer { flex: none; border-top: 1px solid var(--help-line); background: var(--help-tint); padding: .7rem 1.15rem calc(.75rem + env(safe-area-inset-bottom, 0px)); }

/* ---------- Pages (panel and full) ---------- */
.help-page { max-width: 820px; font-size: 1rem; line-height: 1.6; color: var(--bs-body-color, #1f2d3a); }
.help-page.is-panel { max-width: none; font-size: .95rem; }
.help-page .help-title { font-size: 1.6rem; font-weight: 700; margin: 0 0 .9rem; color: var(--help-ink); }
.help-page.is-panel .help-title { font-size: 1.25rem; }
.help-hero { margin-bottom: 1rem; }
.help-hero .help-title { margin-bottom: .2rem; }
.help-lead { color: var(--help-muted); margin: 0; }
.help-body h2 { font-size: 1.2rem; margin: 1.6rem 0 .6rem; }
.help-body h3 { font-size: 1.05rem; margin: 1.3rem 0 .5rem; }
.help-page ol li, .help-page ul li { margin-bottom: .45rem; }
.help-section-title { font-size: .72rem !important; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--help-muted); margin: 1.35rem 0 .55rem !important; }
.help-none { color: var(--help-muted); font-size: .9rem; padding: .7rem .85rem; border: 1px dashed var(--help-line); border-radius: var(--help-radius); margin: 0; }
.help-shot { display: block; max-width: 100%; height: auto; margin: .6rem 0 1rem; border: 1px solid var(--help-line); border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.help-note { border-left: 4px solid var(--help-accent); background: var(--help-tint); padding: .6rem .9rem; margin: 1rem 0; border-radius: 0 8px 8px 0; }
.help-note p:last-child { margin-bottom: 0; }
.help-table { font-size: .92rem; }
.help-table th { background: var(--help-tint); }
.help-open-full { margin: 1.25rem 0 0; font-size: .85rem; }
.help-open-full a { color: var(--help-muted); text-decoration: none; }
.help-open-full a:hover { color: var(--help-accent); text-decoration: underline; }

/* search */
.help-search { margin-bottom: 1rem; }
.help-search-box { position: relative; display: flex; align-items: center; margin: 0; width: 100%; }
.help-search-box > .bi { position: absolute; left: .85rem; color: var(--help-muted); pointer-events: none; }
.help-search-input {
  width: 100%; height: 2.75rem; padding: 0 2.4rem 0 2.5rem; border: 1px solid var(--help-line); border-radius: 10px;
  background: var(--help-tint); color: var(--help-ink); font-size: .95rem; transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.help-search-input::placeholder { color: #8695a4; }
.help-search-input:focus { outline: 0; background: #fff; border-color: var(--help-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--help-accent) 18%, transparent); }
.help-search-spin { position: absolute; right: .85rem; color: var(--help-muted); }

/* step guidance written by the administrator */
.help-instructions { border: 1px solid var(--bs-success-border-subtle, #b7e1c7); background: var(--bs-success-bg-subtle, #eef8f1); border-radius: var(--help-radius); padding: .7rem .95rem .2rem; margin-bottom: 1rem; }
.help-instructions-title { font-size: .9rem !important; font-weight: 700; color: #146c43; margin: 0 0 .35rem !important; display: flex; gap: .4rem; align-items: center; }

/* page cards */
.help-cards { display: grid; gap: .5rem; }
.help-card {
  display: flex; align-items: flex-start; gap: .75rem; padding: .75rem .8rem; border: 1px solid var(--help-line); border-radius: var(--help-radius);
  background: #fff; color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.help-card:hover { border-color: color-mix(in srgb, var(--help-accent) 45%, #fff); box-shadow: 0 2px 8px rgba(17, 29, 43, .07); color: inherit; }
.help-card-icon { flex: none; width: 2rem; height: 2rem; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; background: var(--help-accent-soft); color: var(--help-accent); }
.help-card-text { flex: 1; min-width: 0; display: grid; gap: .1rem; }
.help-card-title { font-weight: 600; color: var(--help-ink); line-height: 1.35; }
.help-card:hover .help-card-title { color: var(--help-accent); }
.help-card-summary { color: var(--help-muted); font-size: .85rem; line-height: 1.45; }
.help-card-go { flex: none; align-self: center; color: #a3b0bd; transition: transform .15s; }
.help-card:hover .help-card-go, .help-news-link:hover .help-card-go { transform: translateX(2px); color: var(--help-accent); }

/* What's new */
.help-news-link {
  display: flex; align-items: center; gap: .75rem; padding: .65rem .8rem; margin-top: .75rem; border: 1px solid var(--help-line); border-radius: var(--help-radius);
  background: #fff; color: inherit; text-decoration: none;
}
.help-news-link:hover { border-color: color-mix(in srgb, var(--help-accent) 45%, #fff); color: inherit; }
.help-news-icon { flex: none; width: 2rem; height: 2rem; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; background: #fff4e0; color: #b26a00; }
.help-news-text { flex: 1; min-width: 0; display: grid; }
.help-news-title { font-weight: 600; color: var(--help-ink); line-height: 1.3; }
.help-news-sub { color: var(--help-muted); font-size: .82rem; }
.help-news-badge { background: #dc3545; color: #fff; font-size: .68rem; font-weight: 700; }

/* topics */
.help-topics { display: grid; gap: .4rem; }
.help-topic { border: 1px solid var(--help-line); border-radius: var(--help-radius); background: #fff; overflow: hidden; }
.help-topic > summary { display: flex; align-items: center; gap: .6rem; padding: .6rem .8rem; cursor: pointer; list-style: none; font-weight: 600; color: var(--help-ink); }
.help-topic > summary::-webkit-details-marker { display: none; }
.help-topic > summary:hover { background: var(--help-tint); }
.help-topic-icon { color: var(--help-muted); }
.help-topic-title { flex: 1; }
.help-topic-count { min-width: 1.6rem; padding: .05rem .45rem; border-radius: 999px; background: var(--help-tint); border: 1px solid var(--help-line-soft); color: var(--help-muted); font-size: .75rem; text-align: center; }
.help-topic-caret { color: #a3b0bd; transition: transform .2s; }
.help-topic[open] > summary { border-bottom: 1px solid var(--help-line-soft); }
.help-topic[open] .help-topic-caret { transform: rotate(180deg); }
.help-page-list { list-style: none; padding: .25rem 0; margin: 0; }
.help-page .help-page-list li { margin: 0; }
.help-page-list a { display: block; padding: .4rem .85rem .4rem 2.35rem; color: var(--bs-body-color, #1f2d3a); text-decoration: none; font-size: .92rem; line-height: 1.4; }
.help-page-list a:hover { background: var(--help-tint); color: var(--help-accent); }
.help-page-list .is-index a { font-weight: 600; }
.help-page.is-full .help-topics { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); align-items: start; }

/* search results */
.help-results-count { color: var(--help-muted); font-size: .85rem; margin: 0 0 .5rem; }
.help-results { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.help-page .help-results li { margin: 0; }
.help-result { display: grid; gap: .15rem; padding: .7rem .85rem; border: 1px solid var(--help-line); border-radius: var(--help-radius); background: #fff; color: inherit; text-decoration: none; }
.help-result:hover { border-color: color-mix(in srgb, var(--help-accent) 45%, #fff); box-shadow: 0 2px 8px rgba(17, 29, 43, .07); color: inherit; }
.help-result-title { font-weight: 600; color: var(--help-ink); }
.help-result:hover .help-result-title { color: var(--help-accent); }
.help-result-snippet { color: var(--help-muted); font-size: .86rem; line-height: 1.45; }
.help-result-where { color: #8695a4; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; }
.help-result mark { padding: 0 .1em; border-radius: 3px; background: #fff1b8; color: inherit; }
.help-empty { text-align: center; padding: 1.25rem .5rem .75rem; }
.help-empty-icon { width: 3rem; height: 3rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--help-tint); color: var(--help-muted); font-size: 1.25rem; margin-bottom: .5rem; }
.help-empty-title { font-weight: 600; color: var(--help-ink); margin: 0 0 .15rem; overflow-wrap: anywhere; }
.help-empty-text { color: var(--help-muted); font-size: .9rem; margin: 0 0 .5rem; }

/* "Was this page helpful?" */
.help-feedback { margin-top: 2rem; padding: .8rem 1rem; border: 1px solid var(--help-line); border-radius: var(--help-radius); background: var(--help-tint); }
.help-feedback-ask { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; }
.help-feedback-q { font-weight: 600; color: var(--help-ink); }
.help-feedback-buttons { display: inline-flex; gap: .4rem; }
.help-feedback-btn { border: 1px solid var(--help-line); background: #fff; color: var(--help-ink); border-radius: 999px; padding: .25rem .8rem; }
.help-feedback-btn:hover { border-color: var(--help-accent); color: var(--help-accent); background: #fff; }
.help-feedback-sorry { margin: 0 0 .5rem; color: var(--help-ink); }
.help-feedback-thanks { color: #146c43; font-weight: 600; }
.help-feedback-need .help-need { margin-top: .85rem; }

/* ---------- Still need help? ---------- */
.help-need.is-compact { display: grid; gap: .45rem; }
.help-need.is-compact .help-need-title { font-size: .8rem; font-weight: 700; color: var(--help-ink); }
.help-need-actions { display: flex; flex-wrap: wrap; gap: .4rem; }
.help-need-btn {
  display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .75rem; border: 1px solid var(--help-line); border-radius: 8px;
  background: #fff; color: var(--help-ink); font-size: .85rem; font-weight: 600; text-decoration: none; line-height: 1.2;
  transition: border-color .15s, color .15s, background-color .15s;
}
.help-need-btn > .bi { color: var(--help-accent); }
.help-need-btn:hover { border-color: var(--help-accent); color: var(--help-accent); }
.help-need-btn.is-report { margin-left: auto; background: var(--help-accent); border-color: var(--help-accent); color: #fff; }
.help-need-btn.is-report > .bi { color: #fff; }
.help-need-btn.is-report:hover { filter: brightness(1.08); color: #fff; }
.help-need-reports { font-size: .8rem; color: var(--help-muted); text-decoration: none; justify-self: start; }
.help-need-reports:hover { color: var(--help-accent); text-decoration: underline; }
.help-need.is-full { margin-top: 1.5rem; padding: 1rem 1.1rem; border: 1px solid var(--help-line); border-radius: 12px; background: linear-gradient(var(--help-tint), var(--help-tint)); display: grid; gap: .8rem; }
.help-need-head { display: flex; gap: .8rem; align-items: flex-start; }
.help-need-icon { flex: none; width: 2.4rem; height: 2.4rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--help-accent-soft); color: var(--help-accent); font-size: 1.15rem; }
.help-need.is-full .help-need-title { font-size: 1rem !important; font-weight: 700; margin: 0 0 .1rem !important; color: var(--help-ink); text-transform: none; letter-spacing: 0; }
.help-need-text { margin: 0; color: var(--help-muted); font-size: .88rem; line-height: 1.45; }
.help-need.is-full .help-need-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
.help-need.is-full .help-need-btn.is-report { grid-column: 1 / -1; justify-content: center; }
.help-need.is-full .help-need-btn { padding: .55rem .8rem; min-width: 0; }
.help-need-label { display: grid; text-align: left; }
.help-need-label small { font-weight: 400; color: var(--help-muted); font-size: .76rem; overflow-wrap: anywhere; }
.help-need-btn.is-report .help-need-label small { color: rgba(255,255,255,.85); }
.help-need.is-full .help-need-btn.is-report { margin-left: 0; }
.help-need.is-full .help-need-reports { margin-top: -.2rem; }

/* ---------- Help desk views ---------- */
.help-callout { display: flex; gap: .65rem; align-items: flex-start; padding: .7rem .85rem; border-radius: var(--help-radius); border: 1px solid var(--help-line); background: var(--help-tint); margin-bottom: 1rem; font-size: .92rem; }
.help-callout > .bi { font-size: 1.1rem; color: var(--help-muted); line-height: 1.4; }
.help-callout p { margin: .15rem 0 0; color: var(--help-muted); }
.help-callout.is-warning { background: #fff8e6; border-color: #f3dca3; }
.help-callout.is-warning > .bi { color: #a76b00; }
.help-callout.is-danger { background: #fdf0f1; border-color: #f2c4c8; color: #842029; }
.help-callout.is-danger > .bi { color: #c22d3a; }

.help-contacts { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .5rem; }
.help-page .help-contacts li { margin: 0; }
.help-contact { display: flex; align-items: stretch; border: 1px solid var(--help-line); border-radius: var(--help-radius); background: #fff; overflow: hidden; }
.help-contact:hover { border-color: color-mix(in srgb, var(--help-accent) 45%, #fff); }
.help-contact-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: .75rem; padding: .75rem .85rem; color: inherit; text-decoration: none; min-height: 3.5rem; }
.help-contact-main:hover { background: var(--help-tint); color: inherit; }
.help-contact-icon { flex: none; width: 2.3rem; height: 2.3rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--help-accent-soft); color: var(--help-accent); font-size: 1.05rem; }
.help-contact-text { display: grid; min-width: 0; }
.help-contact-label { color: var(--help-muted); font-size: .8rem; }
.help-contact-value { color: var(--help-ink); font-weight: 600; font-size: 1.02rem; overflow-wrap: anywhere; }
.help-contact-copy { flex: none; width: 3rem; border: 0; border-left: 1px solid var(--help-line-soft); background: transparent; color: var(--help-muted); }
.help-contact-copy:hover { background: var(--help-tint); color: var(--help-accent); }
.help-contact-copy.is-done { color: #146c43; }
.help-hours { display: flex; gap: .5rem; align-items: center; color: var(--help-muted); font-size: .9rem; margin: 0 0 1rem; }
.help-desk-alt { display: flex; gap: .55rem; align-items: center; padding: .7rem .85rem; border-radius: var(--help-radius); background: var(--help-tint); font-size: .9rem; color: var(--help-muted); }
.help-desk-alt > .bi { color: var(--help-accent); }
.help-desk-links { margin: 1rem 0 0; font-size: .9rem; }

/* report form; the apps style every label (small, spaced): these are not those */
.help-page label, .help-page legend { letter-spacing: normal; text-transform: none; }
.help-page .help-label { display: block; font-weight: 700; font-size: .9rem; color: var(--help-ink); margin-bottom: .35rem; padding: 0; float: none; width: auto; }
.help-page .help-sublabel { display: block; font-weight: 400; font-size: .8rem; color: var(--help-muted); margin-bottom: .2rem; }
.help-page .help-kind { font-weight: 400; font-size: inherit; }
.help-report { display: grid; gap: 1.1rem; }
.help-field { margin: 0; padding: 0; border: 0; min-width: 0; }
.help-label { display: block; font-weight: 700; font-size: .9rem; color: var(--help-ink); margin-bottom: .35rem; padding: 0; float: none; width: auto; }
.help-optional { font-weight: 400; color: var(--help-muted); }
.help-hint { color: var(--help-muted); font-size: .84rem; margin: -.15rem 0 .4rem; }
.help-sublabel { display: block; font-size: .8rem; color: var(--help-muted); margin-bottom: .2rem; }
.help-field-error { color: #b02a37; font-size: .84rem; margin-top: .3rem; }
.help-report .form-control, .help-reply .form-control { border-radius: 8px; border-color: var(--help-line); }
.help-report .form-control:focus, .help-reply .form-control:focus { border-color: var(--help-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--help-accent) 18%, transparent); }
.help-kinds { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.help-kind { position: relative; margin: 0; cursor: pointer; }
.help-kind input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.help-kind-card { height: 100%; display: flex; align-items: flex-start; gap: .6rem; padding: .7rem .75rem; border: 1px solid var(--help-line); border-radius: var(--help-radius); background: #fff; transition: border-color .15s, box-shadow .15s, background-color .15s; }
.help-kind-card > .bi { flex: none; font-size: 1.1rem; line-height: 1.2; color: var(--help-muted); }
.help-kind-text { display: grid; gap: .1rem; min-width: 0; }
.help-kind-title { font-weight: 600; font-size: .88rem; color: var(--help-ink); line-height: 1.3; }
.help-kind-hint { font-size: .78rem; color: var(--help-muted); line-height: 1.35; }
.help-kind:hover .help-kind-card { border-color: color-mix(in srgb, var(--help-accent) 45%, #fff); }
.help-kind input:checked + .help-kind-card { border-color: var(--help-accent); background: var(--help-accent-soft); box-shadow: inset 0 0 0 1px var(--help-accent); }
.help-kind input:checked + .help-kind-card > .bi { color: var(--help-accent); }
.help-kind input:focus-visible + .help-kind-card { outline: 2px solid color-mix(in srgb, var(--help-accent) 60%, transparent); outline-offset: 2px; }
.help-shot-drop { position: relative; border: 1.5px dashed var(--help-line); border-radius: var(--help-radius); background: var(--help-tint); transition: border-color .15s, background-color .15s; }
.help-shot-drop.is-over { border-color: var(--help-accent); background: var(--help-accent-soft); }
.help-shot-drop.has-shot { border-style: solid; background: #fff; }
.help-shot-empty { display: grid; justify-items: center; gap: .2rem; padding: 1rem; text-align: center; font-size: .88rem; color: var(--help-muted); }
.help-shot-empty > .bi { font-size: 1.5rem; color: #8695a4; }
.help-shot-empty small { font-size: .76rem; }
.help-shot-choose { color: var(--help-accent); font-weight: 600; text-decoration: underline; cursor: pointer; margin: 0; }
.help-shot-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.help-shot-input:focus-visible ~ .help-shot-empty, .help-shot-drop:focus-within { outline: 2px solid color-mix(in srgb, var(--help-accent) 60%, transparent); outline-offset: 2px; }
.help-shot-preview { display: flex; align-items: center; gap: .75rem; padding: .6rem; }
.help-shot-preview img { width: 7.5rem; max-height: 5rem; object-fit: cover; object-position: top left; border-radius: 6px; border: 1px solid var(--help-line); }
.help-reach { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.help-readonly { padding: .375rem 0; color: var(--help-ink); overflow-wrap: break-word; }
.help-also-sent { display: flex; gap: .45rem; align-items: flex-start; margin: 0; font-size: .82rem; color: var(--help-muted); overflow-wrap: anywhere; }
.help-form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-top: .25rem; }
.help-form-actions.is-center { justify-content: center; }
.help-link-quiet { color: var(--help-muted); font-size: .88rem; }

/* confirmation */
.help-done { text-align: center; padding: .75rem 0; }
.help-done-icon { width: 3.6rem; height: 3.6rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #e5f4ea; color: #198754; font-size: 1.8rem; margin-bottom: .6rem; }
@media (prefers-reduced-motion: no-preference) { .help-done-icon { animation: help-pop .35s ease-out; } }
@keyframes help-pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.help-page .help-done-title { font-size: 1.15rem; font-weight: 700; margin: 0 0 .35rem; color: var(--help-ink); }
.help-done-ref { color: var(--help-muted); margin: 0 0 1rem; }
.help-done-ref strong { display: inline-block; margin-left: .3rem; padding: .15rem .55rem; border-radius: 6px; background: var(--help-tint); border: 1px solid var(--help-line); color: var(--help-ink); font-family: var(--bs-font-monospace, monospace); letter-spacing: .03em; }
.help-next { list-style: none; padding: .8rem 1rem; margin: 0 auto 1.1rem; max-width: 26rem; text-align: left; border: 1px solid var(--help-line); border-radius: var(--help-radius); display: grid; gap: .55rem; }
.help-page .help-next li { margin: 0; display: flex; gap: .6rem; font-size: .9rem; }
.help-next .bi { color: var(--help-accent); }

/* your reports */
.help-reports { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.help-page .help-reports li { margin: 0; }
.help-report-row { position: relative; display: grid; gap: .2rem; padding: .7rem .85rem; border: 1px solid var(--help-line); border-radius: var(--help-radius); background: #fff; color: inherit; text-decoration: none; }
.help-report-row:hover { border-color: color-mix(in srgb, var(--help-accent) 45%, #fff); box-shadow: 0 2px 8px rgba(17, 29, 43, .07); color: inherit; }
.help-report-row.is-unread { border-left: 3px solid var(--help-accent); }
.help-report-top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.help-report-ref { font-family: var(--bs-font-monospace, monospace); font-size: .82rem; font-weight: 600; color: var(--help-ink); }
.help-report-summary { color: var(--help-ink); font-size: .92rem; line-height: 1.4; overflow-wrap: anywhere; }
.help-report-meta { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; color: var(--help-muted); font-size: .8rem; }
.help-report-new { display: inline-flex; align-items: center; gap: .3rem; margin-left: auto; color: var(--help-accent); font-weight: 700; }
.help-dot { width: 8px; height: 8px; border-radius: 50%; background: #dc3545; }
.help-status { display: inline-flex; align-items: center; padding: .12rem .55rem; border-radius: 999px; font-size: .74rem; font-weight: 700; white-space: nowrap; border: 1px solid transparent; }
.help-status.is-new { background: #e7f0fb; color: #1d5a94; border-color: #c9dcf2; }
.help-status.is-in-progress { background: #fff4de; color: #8a5a00; border-color: #f2dcab; }
.help-status.is-resolved { background: #e5f4ea; color: #146c43; border-color: #bfe3cc; }
.help-status.is-closed { background: #eef1f4; color: #55606b; border-color: #dbe0e5; }

/* thread */
.help-thread-head { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: 1rem; }
.help-thread-when { color: var(--help-muted); font-size: .84rem; }
.help-thread { list-style: none; padding: 0; margin: 0 0 1.2rem; display: grid; gap: .65rem; }
.help-page .help-thread li { margin: 0; }
.help-msg { max-width: 88%; padding: .6rem .8rem; border-radius: 12px; border: 1px solid var(--help-line); background: #fff; }
.help-msg.is-mine { justify-self: end; background: var(--help-accent-soft); border-color: color-mix(in srgb, var(--help-accent) 22%, #fff); border-bottom-right-radius: 4px; }
.help-msg.is-desk { justify-self: start; border-bottom-left-radius: 4px; }
.help-msg-who { font-size: .78rem; font-weight: 700; color: var(--help-ink); margin-bottom: .15rem; }
.help-msg-who span { font-weight: 400; color: var(--help-muted); margin-left: .3rem; }
.help-msg-body { font-size: .92rem; line-height: 1.5; overflow-wrap: anywhere; }
.help-msg-meta { margin-top: .35rem; font-size: .78rem; color: var(--help-muted); overflow-wrap: anywhere; }
.help-msg-shot { display: block; margin-top: .45rem; }
.help-msg-shot img { max-width: 100%; max-height: 10rem; border-radius: 6px; border: 1px solid var(--help-line); }
.help-msg.is-status { max-width: none; justify-self: center; padding: 0; border: 0; background: none; font-size: .78rem; color: var(--help-muted); }
.help-msg.is-status span { padding: .15rem .6rem; border-radius: 999px; background: var(--help-tint); }
.help-reply { display: grid; gap: .3rem; padding-top: .9rem; border-top: 1px solid var(--help-line-soft); }

@media (max-width: 420px) {
  .help-kinds, .help-reach { grid-template-columns: 1fr; }
  .help-need-btn.is-report { margin-left: 0; }
  .help-offcanvas .offcanvas-body { padding-left: 1rem; padding-right: 1rem; }
  .help-offcanvas-footer { padding-left: 1rem; padding-right: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .help-card, .help-card-go, .help-topic-caret, .help-button.help-pill, .help-kind-card { transition: none; }
}

/* HelpLinks: help inside another box (the portal's Help desk panel) */
.help-links-search { margin-bottom: .55rem; }
.help-links-label { font-size: .8rem; color: #6c757d; margin: .35rem 0 .2rem; }
.help-links-list { list-style: none; padding: 0; margin: 0 0 .45rem; display: grid; gap: .3rem; }
.help-links-all { font-size: .9rem; }

/* ---------- Full help pages: the help centre (index, search) and one page ---------- */
/* the portal's help is teal, like its Help desk button; the staff system keeps its own primary */
.help-page.is-app-frontend, .help-page.is-app-frontend .help-need {
  --help-accent: #0f6a5f; --help-accent-soft: #e5f2ef; --help-ink: var(--fx-ink, #12253d);
}
.help-page.is-home, .help-page.is-article {
  --help-card-line: var(--fx-border, var(--help-line));
  --help-card-shadow: 0 1px 2px rgba(14, 41, 74, .05), 0 6px 16px rgba(14, 41, 74, .06);
  max-width: 1320px; color: var(--help-ink); line-height: 1.55;
}
.help-hero-card, .help-results-card, .help-topic-card, .help-news-row, .help-article,
.help-page.is-home .help-need.is-full, .help-aside > *, .help-toc-fold, .help-pager-link {
  background: #fff; border: 1px solid var(--help-card-line); border-radius: 12px; box-shadow: var(--help-card-shadow);
}
.help-page.is-home { display: grid; gap: 1.25rem; }
.help-home { display: grid; gap: 1.25rem; }
.help-page.is-home .help-live[hidden], .help-home[hidden] { display: none; }

/* hero: title, big search, popular pages */
.help-hero-card { padding: 1.75rem 2rem 1.5rem; }
.help-page .help-hero-title { font-size: 1.6rem; font-weight: 700; margin: 0 0 .3rem; color: var(--help-ink); line-height: 1.25; }
.help-hero-card .help-lead { margin-bottom: 1.1rem; color: var(--help-muted); max-width: 60ch; }
.help-guide-link { font-weight: 600; white-space: nowrap; color: var(--help-accent, var(--bs-link-color)); }
.help-search.is-large { display: flex; gap: .5rem; margin: 0; max-width: 820px; }
.help-search.is-large .help-search-input { height: 3.25rem; font-size: 1.05rem; padding-left: 2.85rem; background: #fff; border-color: #c9d6e3; border-radius: 10px; }
.help-search.is-large .help-search-box > .bi { left: 1rem; font-size: 1.1rem; }
.help-search-go { flex: none; height: 3.25rem; padding: 0 1.4rem; border: 0; border-radius: 10px; background: var(--help-accent); color: #fff; font-weight: 600; }
.help-search-go:hover { filter: brightness(1.08); }
.help-search-go:focus-visible { outline: 2px solid color-mix(in srgb, var(--help-accent) 60%, transparent); outline-offset: 2px; }
.help-popular { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; margin-top: 1rem; }
.help-popular-label { font-size: .85rem; font-weight: 600; color: var(--help-muted); }
.help-chips { display: flex; flex-wrap: wrap; gap: .45rem; list-style: none; margin: 0; padding: 0; }
.help-page .help-chips li { margin: 0; }
.help-chip { display: inline-block; padding: .3rem .8rem; border: 1px solid var(--help-card-line); border-radius: 999px; background: var(--help-tint); color: var(--help-ink); font-size: .88rem; text-decoration: none; line-height: 1.4; }
.help-chip:hover { border-color: var(--help-accent); color: var(--help-accent); background: #fff; }

/* topic cards */
.help-group-title { font-size: 1.05rem; font-weight: 700; color: var(--help-ink); margin: .5rem 0 -.25rem; }
.help-topic-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 768px) { .help-topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .help-topic-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.help-topic-card { padding: 1.15rem 1.25rem 1rem; scroll-margin-top: 5rem; }
.help-topic-card:target { border-color: var(--help-accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--help-accent) 25%, transparent); }
.help-topic-card-head { display: flex; gap: .8rem; align-items: flex-start; margin-bottom: .6rem; }
.help-topic-card-icon { flex: none; width: 2.4rem; height: 2.4rem; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--help-accent-soft); color: var(--help-accent); font-size: 1.15rem; }
.help-page .help-topic-card-title { font-size: 1.05rem; font-weight: 700; margin: .1rem 0 .1rem; color: var(--help-ink); line-height: 1.3; }
.help-topic-card-text { margin: 0; color: var(--help-muted); font-size: .88rem; line-height: 1.45; }
.help-topic-links { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--help-line-soft); }
.help-page .help-topic-links li { margin: 0; border-bottom: 1px solid var(--help-line-soft); }
.help-topic-links a { display: block; padding: .5rem .1rem; color: var(--help-ink); text-decoration: none; font-size: .95rem; line-height: 1.4; }
.help-topic-links a:hover { color: var(--help-accent); text-decoration: underline; text-underline-offset: 2px; }
.help-topic-more > summary { display: inline-flex; align-items: center; gap: .35rem; margin-top: .55rem; padding: .2rem 0; cursor: pointer; list-style: none; color: var(--help-accent); font-weight: 600; font-size: .9rem; }
.help-topic-more > summary::-webkit-details-marker { display: none; }
.help-topic-more > summary:focus-visible { outline: 2px solid color-mix(in srgb, var(--help-accent) 60%, transparent); outline-offset: 2px; border-radius: 6px; }
.help-topic-more .help-more-open, .help-topic-more[open] .help-more-closed { display: none; }
.help-topic-more[open] .help-more-open { display: inline; }
.help-topic-more[open] > summary .bi { transform: rotate(180deg); }
.help-topic-more[open] > summary { order: 2; }
.help-topic-more { display: flex; flex-direction: column; }
.help-topic-more .help-topic-links { border-top: 0; }

/* What's new, results, still need help */
.help-news-row { display: flex; align-items: center; gap: .9rem; padding: .9rem 1.25rem; color: inherit; text-decoration: none; }
.help-news-row:hover { border-color: color-mix(in srgb, var(--help-accent) 45%, #fff); color: inherit; }
.help-news-row:hover .help-news-title { color: var(--help-accent); }
.help-news-row:hover .help-card-go { transform: translateX(2px); color: var(--help-accent); }
.help-news-row .help-news-icon { width: 2.4rem; height: 2.4rem; border-radius: 10px; font-size: 1.1rem; }
.help-results-card { padding: 1.25rem 1.5rem; }
.help-results-card .help-result { border-color: var(--help-line-soft); box-shadow: none; }
.help-results-card .help-result:hover { border-color: color-mix(in srgb, var(--help-accent) 45%, #fff); }
.help-results-card .help-result-title { font-size: 1.02rem; }
.help-results-card .help-result-snippet { color: #3d4f63; font-size: .92rem; }
.help-page.is-home .help-need.is-full { margin: 0; padding: 1.25rem 1.5rem; background: #fff; }
.help-need.is-band { display: grid; gap: 1rem; }
@media (min-width: 992px) {
  .help-need.is-band { grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 2rem; }
  .help-need.is-band .help-need-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; }
  .help-need.is-band .help-need-btn.is-report { grid-column: auto; }
  .help-need.is-band .help-need-reports { grid-column: 1 / -1; margin-top: -.4rem; }
}

/* one page: article on a card, aside beside it */
.help-page.is-article { max-width: 1180px; }
.help-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin: 0 0 .9rem; font-size: .9rem; }
.help-crumbs a { color: var(--help-accent); text-decoration: none; font-weight: 600; }
.help-crumbs a:hover { text-decoration: underline; }
.help-crumbs-sep { color: var(--help-muted); }
.help-article-layout { display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 992px) {
  .help-article-layout { grid-template-columns: minmax(0, 1fr) 17rem; align-items: start; }
  .help-aside { position: sticky; top: 5.5rem; max-height: calc(100vh - 6.5rem); overflow-y: auto; }
  .help-toc-fold { display: none; }
}
@media (max-width: 991.98px) { .help-toc-side { display: none; } }
.help-article-main { display: grid; gap: 1.25rem; min-width: 0; }
.help-article { padding: 2rem 2.25rem 1.75rem; min-width: 0; }
.help-article > * { max-width: 70ch; }
.help-page.is-article .help-title { font-size: 1.75rem; line-height: 1.25; margin-bottom: 1rem; }
.help-article .help-body { font-size: 1.0625rem; line-height: 1.65; color: var(--help-ink); }
.help-article .help-body p { margin: 0 0 1rem; }
.help-article .help-body > p:first-child { font-size: 1.1rem; color: #2a3d52; }
.help-article .help-body h2 { font-size: 1.3rem; font-weight: 700; margin: 2.25rem 0 .75rem; padding-top: 1.25rem; border-top: 1px solid var(--help-line-soft); color: var(--help-ink); scroll-margin-top: 5.5rem; }
.help-article .help-body h3 { font-size: 1.1rem; font-weight: 700; margin: 1.6rem 0 .5rem; color: var(--help-ink); scroll-margin-top: 5.5rem; }
.help-article .help-body ul { padding-left: 1.3rem; margin-bottom: 1rem; }
.help-article .help-body li { margin-bottom: .4rem; }
.help-article .help-body a { color: var(--help-accent); text-underline-offset: 2px; }
/* numbered steps: a circle with the number, each step apart from the next */
.help-article .help-body > ol { list-style: none; counter-reset: help-step; padding: 0; margin: 0 0 1.25rem; }
.help-article .help-body > ol > li { counter-increment: help-step; position: relative; padding: 0 0 1.1rem 2.75rem; margin: 0 0 1.1rem; border-bottom: 1px solid var(--help-line-soft); }
.help-article .help-body > ol > li:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.help-article .help-body > ol > li::before {
  content: counter(help-step); position: absolute; left: 0; top: -.05rem; width: 1.85rem; height: 1.85rem; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; background: var(--help-accent-soft); color: var(--help-accent);
  font-weight: 700; font-size: .92rem; line-height: 1;
}
.help-article .help-body > ol > li > p:last-child { margin-bottom: 0; }
.help-article .help-body ol ol { list-style: decimal; padding-left: 1.3rem; margin-top: .4rem; }
.help-article .help-shot { max-width: 100%; margin: .85rem 0 .25rem; padding: 6px; background: var(--help-tint); border: 1px solid var(--help-card-line); border-radius: 10px; box-shadow: none; }
.help-article .help-note { margin: 1.25rem 0; padding: .8rem 1rem; border-radius: 0 10px 10px 0; background: var(--help-accent-soft); font-size: 1rem; }
.help-article .table-responsive { margin: .5rem 0 1.25rem; border: 1px solid var(--help-card-line); border-radius: 10px; }
.help-article .help-table { margin: 0; font-size: .95rem; border: 0; }
.help-article .help-table th, .help-article .help-table td { padding: .55rem .75rem; border-left: 0; border-right: 0; vertical-align: top; }
.help-article .help-table th { background: var(--help-tint); font-weight: 600; }
.help-article .help-table tr:last-child td { border-bottom: 0; }
.help-article .help-feedback { margin-top: 2rem; }

/* "On this page", related, still need help */
.help-aside { display: grid; gap: 1rem; align-content: start; }
.help-aside > * { padding: 1rem 1.1rem; }
.help-page .help-aside-title { font-size: .78rem !important; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--help-muted); margin: 0 0 .5rem !important; }
.help-toc-list, .help-related-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.help-page .help-toc-list li, .help-page .help-related-list li { margin: 0; }
.help-toc-list a, .help-related-list a { display: block; padding: .3rem .5rem; margin: 0 -.5rem; border-radius: 6px; color: var(--help-ink); text-decoration: none; font-size: .92rem; line-height: 1.4; }
.help-toc-list a:hover, .help-related-list a:hover { background: var(--help-tint); color: var(--help-accent); }
.help-toc-fold { padding: 0; }
.help-toc-fold > summary { display: flex; align-items: center; gap: .5rem; padding: .8rem 1.1rem; cursor: pointer; list-style: none; font-weight: 600; color: var(--help-ink); }
.help-toc-fold > summary::-webkit-details-marker { display: none; }
.help-toc-caret { margin-left: auto; color: var(--help-muted); transition: transform .2s; }
.help-toc-fold[open] .help-toc-caret { transform: rotate(180deg); }
.help-toc-fold .help-toc-list { padding: 0 1.1rem .8rem 1.6rem; }
.help-toc-fold summary:focus-visible { outline: 2px solid color-mix(in srgb, var(--help-accent) 60%, transparent); outline-offset: 2px; border-radius: 12px; }
.help-aside .help-need.is-compact { gap: .6rem; }
.help-aside .help-need.is-compact .help-need-title { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--help-muted); }
.help-aside .help-need-actions { display: grid; }
.help-aside .help-need-btn, .help-aside .help-need-btn.is-report { margin-left: 0; justify-content: flex-start; }

/* previous / next */
.help-pager { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.help-pager-link { display: grid; gap: .15rem; padding: .85rem 1.1rem; color: inherit; text-decoration: none; }
.help-pager-link.is-next { text-align: right; }
.help-pager-link.is-next:only-child { grid-column: -2 / -1; }
.help-pager-link:hover { border-color: color-mix(in srgb, var(--help-accent) 45%, #fff); color: inherit; }
.help-pager-dir { font-size: .82rem; color: var(--help-muted); }
.help-pager-title { font-weight: 600; color: var(--help-accent); }

@media (max-width: 767.98px) {
  .help-page.is-home, .help-home, .help-article-main { gap: 1rem; }
  .help-hero-card { padding: 1.25rem 1rem; }
  .help-page .help-hero-title { font-size: 1.35rem; }
  .help-search-go { padding: 0 1rem; }
  .help-topic-card, .help-results-card, .help-page.is-home .help-need.is-full { padding: 1rem; }
  .help-news-row { padding: .85rem 1rem; }
  .help-article { padding: 1.25rem 1rem; }
  .help-page.is-article .help-title { font-size: 1.45rem; }
  .help-article .help-body { font-size: 1rem; }
  .help-article .help-body > ol > li { padding-left: 2.4rem; }
  .help-pager-link.is-next:only-child { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .help-toc-caret, .help-news-row .help-card-go { transition: none; }
}
.help-page.is-home .help-results-card .help-need.is-full { box-shadow: none; background: var(--help-tint); border-color: var(--help-line-soft); margin-top: 1rem; }
.help-page .help-topic-links li:last-child { border-bottom: 0; }
.help-article .help-table > :not(caption) > * > * { border-color: var(--help-line-soft); }
.help-article .help-table > tbody > tr:last-child > * { border-bottom-width: 0; }
.backend-page-surface.help-page-surface { background: none; border: 0; box-shadow: none; padding: 0; }
.help-results-card .help-result-snippet { max-width: 95ch; }
/* a section without topics (staff, administrators): its pages in columns across the row */
.help-topic-card.is-wide { grid-column: 1 / -1; }
@media (min-width: 768px) {
  .help-topic-card.is-wide .help-topic-links { columns: 2; column-gap: 2rem; }
  .help-topic-card.is-wide .help-topic-links li { break-inside: avoid; }
  .help-topic-card.is-wide .help-topic-links li:last-child { border-bottom: 1px solid var(--help-line-soft); }
}
@media (min-width: 1200px) { .help-topic-card.is-wide .help-topic-links { columns: 3; } }
.help-topic-card.is-wide .help-topic-more .help-topic-links { border-top: 0; }
.help-topic-card.is-wide .help-topic-links { border-top: 0; } .help-topic-card.is-wide .help-topic-card-head { border-bottom: 1px solid var(--help-line-soft); padding-bottom: .6rem; }
/* the staff layout prints the title above the page: the article's own heading is the one to read */
.backend-page-shell:has(.help-page.is-article) .backend-page-title { display: none; }
/* the portal scrolls its content area below the top bar, so "sticky" counts from there */
@media (min-width: 992px) { .help-page.is-app-frontend .help-aside { top: 1rem; max-height: calc(100vh - 7rem); } }
.help-page .help-topic-more[open] .help-topic-links li:first-child { border-top: 1px solid var(--help-line-soft); }
