/* ===========================================================================
   The knowledge base at /help. Loaded after marketing.css, on help pages only,
   and scoped to body.kb. Headings are set in Manrope, the admin's own heading
   face, because the manual describes the admin. The one loud element is the
   loop on the index: five stages on a rail, in the order a team meets them.
   Each stage has a tone from the site palette, and an article wears the tone
   of its stage on its chip, its step numbers and its place in the sidebar.
   =========================================================================== */

body.kb {
  --kb-display: 'Manrope', 'Inter', -apple-system, 'Segoe UI', sans-serif;
  --kb-t1: #e9dd8a;   /* set up: yellow */
  --kb-t2: #f09b93;   /* collect: salmon */
  --kb-t3: #ebd6d7;   /* triage: blush */
  --kb-t4: #7fb9bb;   /* answer: teal, lightened so ink stays readable on it */
  --kb-t5: #2a6366;   /* learn: deep teal */
  --kb-t0: #e6d5c1;   /* reference shelves: the line colour */
  --tone: var(--kb-t0); --tone-ink: var(--m-ink);
}
.kb-tone-1 { --tone: var(--kb-t1); }
.kb-tone-2 { --tone: var(--kb-t2); }
.kb-tone-3 { --tone: var(--kb-t3); }
.kb-tone-4 { --tone: var(--kb-t4); }
.kb-tone-5 { --tone: var(--kb-t5); --tone-ink: #fff; }

body.mkt.kb main .wrap.page { max-width: 1240px; padding-top: 0; padding-bottom: 96px; }
.kb .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ------------------------------------------------------------------ hero -- */

.kb-hero { position: relative; isolation: isolate; padding: 72px 0 64px; }
.kb-hero::before { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0;
  left: calc(50% - 50vw); right: calc(50% - 50vw); background: var(--m-soft); }
.kb-h1 { font-family: var(--kb-display); font-weight: 800; font-size: clamp(42px, 6.4vw, 84px);
  line-height: .98; letter-spacing: -0.045em; color: var(--m-ink); margin: 0 0 20px; }
.kb-lede { font-size: 19px; line-height: 1.55; max-width: 56ch; margin: 0 0 32px; color: var(--m-body); }

.kb-search { position: relative; max-width: 640px; }
.kb-search-icon { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--m-meta);
  display: inline-flex; pointer-events: none; }
.kb-q { width: 100%; height: 60px; padding: 0 20px 0 50px; border: 1.5px solid var(--m-ink); border-radius: 14px;
  background: #fff; color: var(--m-ink); font: inherit; font-size: 17px; -webkit-appearance: none; appearance: none; }
.kb-q::placeholder { color: var(--m-meta); }
.kb-q:focus-visible { outline: 3px solid var(--m-brand); outline-offset: 2px; border-radius: 14px; }
.kb-results { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 8px); margin: 0; padding: 6px;
  list-style: none; background: #fff; border: 1px solid var(--m-line); border-radius: 14px;
  box-shadow: var(--m-shadow-up); max-height: min(60vh, 440px); overflow-y: auto; }
body.kb main .kb-results a { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--m-ink); }
.kb-results a:hover, .kb-results a.is-active { background: #fcf6ee; }
.kb-results .kb-r-t { font-weight: 600; font-size: 15.5px; }
.kb-results .kb-r-c { font-size: 13px; color: var(--m-meta); }
.kb-results .kb-r-none { padding: 12px; font-size: 14.5px; color: var(--m-meta); }

.kb-search-compact { max-width: none; margin: 0 0 22px; }
.kb-search-compact .kb-q { height: 42px; padding-left: 40px; font-size: 14.5px; border: 1px solid #d9c9b4; border-radius: 10px; }
.kb-search-compact .kb-search-icon { left: 12px; }
.kb-search-compact .kb-search-icon svg { width: 17px; height: 17px; }
.kb-search-compact .kb-q:focus-visible { border-radius: 10px; }

/* -------------------------------------------------------- the loop (index) -- */

.kb-loop { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px;
  padding: 72px 0 16px; }
.kb-loop::before { content: ""; position: absolute; top: 95px; left: 24px; height: 2px;
  right: calc((100% - 112px) / 5 - 24px); background: var(--m-ink); }
.kb-stage { position: relative; min-width: 0; }
.kb-stage-n { position: relative; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--tone); color: var(--tone-ink); border: 2px solid var(--m-ink);
  font-family: var(--kb-display); font-weight: 800; font-size: 20px; margin-bottom: 22px; }
.kb-stage-h { font-family: var(--kb-display); font-weight: 700; font-size: 24px; letter-spacing: -0.025em;
  color: var(--m-ink); margin: 0 0 6px; line-height: 1.2; }
.kb-stage-p { font-size: 14.5px; line-height: 1.5; color: var(--m-meta); margin: 0 0 18px; min-height: 3em; }

.kb-links { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--m-line); }
.kb-links li { border-bottom: 1px solid var(--m-line); }
body.kb main .kb-links a { display: block; padding: 11px 0; color: var(--m-ink); text-decoration: none; font-size: 15.5px;
  line-height: 1.4; font-weight: 500; }
body.kb main .kb-links a:hover { color: var(--m-brand-deep); text-decoration: underline; text-underline-offset: 3px; }

.kb-shelves { display: grid; gap: 0; margin-top: 56px; }
.kb-shelf { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 28px 56px; padding: 40px 0;
  border-top: 2px solid var(--m-ink); }
.kb-shelf .kb-stage-p { min-height: 0; margin: 0; }
.kb-shelf-head { padding-top: 8px; }
.kb-links-cols { columns: 3 220px; column-gap: 40px; }
.kb-links-cols li { break-inside: avoid; border-bottom: 1px solid var(--m-line); }
.kb-more { padding: 40px 0 0; border-top: 2px solid var(--m-ink); max-width: none; }
.kb-more p { max-width: 64ch; margin: 8px 0 0; }

.kb-found { padding: 48px 0 0; }
.kb-found-h { font-family: var(--kb-display); font-weight: 700; font-size: 26px; letter-spacing: -0.02em; margin: 0 0 18px; }
.kb-hits { list-style: none; margin: 0 0 20px; padding: 0; border-top: 1px solid var(--m-line); max-width: 760px; }
.kb-hits li { border-bottom: 1px solid var(--m-line); }
body.kb main .kb-hits a { display: grid; gap: 4px; padding: 16px 0; text-decoration: none; color: var(--m-body); }
.kb-hit-t { font-weight: 600; font-size: 17px; color: var(--m-ink); }
.kb-hits a:hover .kb-hit-t { color: var(--m-brand-deep); text-decoration: underline; text-underline-offset: 3px; }
.kb-hit-s { font-size: 15px; }
.kb-hit-c { font-size: 13px; color: var(--m-meta); }
.kb-none { max-width: 60ch; }

/* ------------------------------------------------------------ the article -- */

.kb-layout { display: grid; grid-template-columns: 256px minmax(0, 720px); gap: 72px; padding-top: 48px;
  align-items: start; }
.kb-side { position: sticky; top: calc(var(--m-header-h) + 20px); max-height: calc(100vh - var(--m-header-h) - 40px);
  overflow-y: auto; padding-right: 8px; font-size: 14.5px; }
.kb-side-home { display: block; font-family: var(--kb-display); font-weight: 800; font-size: 18px;
  letter-spacing: -0.02em; color: var(--m-ink); text-decoration: none; margin-bottom: 14px; }
.kb-side-home:hover { color: var(--m-brand-deep); }
.kb-side-group { border-top: 1px solid var(--m-line); }
.kb-side-group summary { display: flex; align-items: center; gap: 10px; padding: 11px 0; cursor: pointer;
  list-style: none; font-family: var(--kb-display); font-weight: 700; font-size: 14.5px; color: var(--m-ink); }
.kb-side-group summary::-webkit-details-marker { display: none; }
.kb-side-group summary::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--tone);
  border: 1.5px solid var(--m-ink); flex: none; }
.kb-side-group ul { list-style: none; margin: 0 0 12px; padding: 0; }
body.kb main .kb-side-group a { display: block; padding: 6px 0 6px 20px; color: var(--m-body); text-decoration: none; line-height: 1.4;
  border-left: 3px solid transparent; margin-left: 3px; }
body.kb main .kb-side-group a:hover { color: var(--m-ink); text-decoration: underline; text-underline-offset: 3px; }
body.kb main .kb-side-group a[aria-current] { color: var(--m-ink); font-weight: 600; border-left-color: var(--m-ink);
  background: linear-gradient(90deg, color-mix(in srgb, var(--tone) 38%, #fff), transparent 85%); }

.kb-article { min-width: 0; }
.kb-crumb { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 6px; border-radius: 999px;
  background: color-mix(in srgb, var(--tone) 45%, #fff); color: var(--m-ink); text-decoration: none;
  font-size: 13.5px; font-weight: 600; margin-bottom: 20px; }
.kb-crumb:not(:has(.kb-crumb-n)) { padding-left: 12px; }
.kb-crumb:hover { background: color-mix(in srgb, var(--tone) 70%, #fff); }
.kb-crumb-n { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--tone);
  color: var(--tone-ink); border: 1.5px solid var(--m-ink); font-family: var(--kb-display); font-weight: 800; font-size: 12px; }
.kb-title { font-family: var(--kb-display); font-weight: 800; font-size: clamp(32px, 4vw, 46px); line-height: 1.08;
  letter-spacing: -0.035em; color: var(--m-ink); margin: 0 0 16px; }
.kb-summary { font-size: 19px; line-height: 1.55; color: var(--m-body); margin: 0 0 28px; }

.kb-meta { display: grid; gap: 0; border-top: 2px solid var(--m-ink); border-bottom: 1px solid var(--m-line); margin-bottom: 36px; }
.kb-who { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 16px; align-items: center; padding: 13px 0; }
.kb-who + .kb-who { border-top: 1px solid var(--m-line); }
.kb-who-h { font-size: 13.5px; color: var(--m-meta); }
.kb-who-text { font-size: 15px; color: var(--m-ink); font-weight: 500; }
.kb-roles { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; margin: 0; padding: 0; }
.kb-role { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; color: #8a9596; }
.kb-pip { width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid #b9c2c2; background: #fff; }
.kb-role.is-on { color: var(--m-ink); font-weight: 600; }
.kb-role.is-on .kb-pip { background: var(--m-brand-deep); border-color: var(--m-brand-deep); }

.kb-ui { font-weight: 600; color: var(--m-ink); background: #f7efe3; border-radius: 6px; padding: 1px 6px;
  box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.kb-path { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 15px; }
.kb-path-sep { color: var(--m-meta); }
.kb-key { display: inline-block; min-width: 24px; padding: 1px 7px; text-align: center; font: inherit; font-size: 13.5px;
  font-weight: 600; color: var(--m-ink); background: #fff; border: 1px solid #cfc2b0; border-bottom-width: 2.5px;
  border-radius: 6px; }

.kb-body { font-size: 16.5px; line-height: 1.7; color: var(--m-body); }
.kb-body > * { margin: 0 0 18px; }
.kb-body h2 { font-family: var(--kb-display); font-weight: 700; font-size: 25px; letter-spacing: -0.025em;
  line-height: 1.25; color: var(--m-ink); margin: 48px 0 14px; scroll-margin-top: calc(var(--m-header-h) + 20px); }
.kb-body h2:first-child { margin-top: 0; }
.kb-body a { color: var(--m-brand-deep); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.kb-body a:hover { color: var(--m-ink); }
.kb-list { padding-left: 22px; }
.kb-list li { margin-bottom: 8px; padding-left: 4px; }
.kb-list li::marker { color: var(--m-meta); }

/* numbered steps: a real sequence, so the numbers sit on a rail */
.kb-steps { list-style: none; counter-reset: kb-step; padding: 0; margin-bottom: 24px; }
.kb-steps li { position: relative; counter-increment: kb-step; padding: 3px 0 22px 50px; }
.kb-steps li::before { content: counter(kb-step); position: absolute; left: 0; top: 0; display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: 50%; background: color-mix(in srgb, var(--tone) 55%, #fff);
  border: 1.5px solid var(--m-ink); color: var(--m-ink); font-family: var(--kb-display); font-weight: 800; font-size: 14.5px; }
.kb-steps li::after { content: ""; position: absolute; left: 15.25px; top: 36px; bottom: 4px; width: 1.5px; background: var(--m-line); }
.kb-steps li:last-child { padding-bottom: 4px; }
.kb-steps li:last-child::after { display: none; }

.kb-call { border-left: 3px solid var(--m-brand); background: var(--m-brand-tint); border-radius: 0 12px 12px 0;
  padding: 16px 20px; }
.kb-call-warn { border-left-color: #d9695d; background: #fdf0ee; }
.kb-call-h { display: block; font-family: var(--kb-display); font-weight: 700; font-size: 14.5px; color: var(--m-ink); margin-bottom: 4px; }
.kb-call p { margin: 0; font-size: 15.5px; line-height: 1.6; }

.kb-table { overflow-x: auto; border: 1px solid var(--m-line); border-radius: 12px; }
.kb-table table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.kb-table th, .kb-table td { text-align: left; vertical-align: top; padding: 11px 16px; border-bottom: 1px solid var(--m-line); }
.kb-table thead th { background: #fbf4ea; font-size: 13.5px; font-weight: 600; color: var(--m-meta); }
.kb-table tbody th { font-weight: 600; color: var(--m-ink); white-space: nowrap; }
.kb-table tbody tr:last-child > * { border-bottom: 0; }

.kb-keys { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; border-top: 1px solid var(--m-line); }
.kb-keys > div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 10px 0;
  border-bottom: 1px solid var(--m-line); }
.kb-keys dt { display: flex; gap: 4px; flex-wrap: wrap; }
.kb-keys dd { margin: 0; font-size: 15px; }

.kb-related { margin-top: 56px; }
.kb-related h2 { font-family: var(--kb-display); font-weight: 700; font-size: 18px; letter-spacing: -0.015em; margin: 0 0 12px; }
.kb-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 48px; }
.kb-pager a { display: grid; gap: 4px; padding: 16px 18px; border: 1px solid var(--m-line); border-radius: 12px;
  text-decoration: none; color: var(--m-ink); font-weight: 600; font-size: 15.5px; line-height: 1.35; }
.kb-pager a span { font-size: 13px; font-weight: 400; color: var(--m-meta); }
.kb-pager a:hover { border-color: var(--m-ink); }
.kb-pager-next { text-align: right; }
.kb-ask { margin-top: 28px; font-size: 14.5px; color: var(--m-meta); }

/* ------------------------------------------------------------ responsive -- */

@media (max-width: 1023px) {
  .kb-loop { grid-template-columns: 1fr; gap: 0; padding-top: 48px; }
  .kb-loop::before { display: none; }
  .kb-stage { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 20px; padding-bottom: 40px; }
  .kb-stage:not(:last-child)::after { content: ""; position: absolute; left: 23px; top: 48px; bottom: 0; width: 2px;
    background: var(--m-ink); }
  .kb-stage-n { grid-row: 1 / span 3; margin: 0; }
  .kb-stage > :not(.kb-stage-n) { grid-column: 2; }
  .kb-stage-p { min-height: 0; }
  .kb-shelf { grid-template-columns: 1fr; gap: 20px; }
  .kb-layout { grid-template-columns: 1fr; gap: 28px; padding-top: 28px; }
  .kb-side { position: static; max-height: none; overflow: visible; padding: 0; order: 2; border-top: 2px solid var(--m-ink); padding-top: 24px; }
  .kb-article { order: 1; }
}
@media (max-width: 767px) {
  .kb-hero { padding: 44px 0 40px; }
  .kb-lede { font-size: 17px; }
  .kb-q { height: 54px; font-size: 16px; }
  .kb-who { grid-template-columns: 1fr; gap: 6px; }
  .kb-keys { grid-template-columns: 1fr; }
  .kb-pager { grid-template-columns: 1fr; }
  .kb-pager-next { text-align: left; }
  .kb-body { font-size: 16px; }
  .kb-steps li { padding-left: 44px; }
}
