/* =====================================================================
   Hubtoll Help Center (/docs)
   Every selector is `kb-` prefixed. Loaded after hubtoll-mobile.css, so the
   responsive rules for this section live HERE, not in the marketing layer.
   ===================================================================== */
:root {
  --kb-hdr: 76px;          /* fixed site header */
  --kb-bar: 64px;          /* the search bar under it */
  --kb-side: 268px;
  --kb-rail: 216px;
  --kb-tip: #0f9d6a;       --kb-tip-bg: #effaf5;
  --kb-note: #2563eb;      --kb-note-bg: #eff5ff;
  --kb-warn: #d97706;      --kb-warn-bg: #fff7e8;
  --kb-imp: #dc2626;       --kb-imp-bg: #fff1f1;
  --kb-plain: #7c3aed;     --kb-plain-bg: #f5f0ff;
}
.kb { padding-top: var(--kb-hdr); background: #fff; }
.kb-wrap { width: 100%; max-width: 1340px; margin-inline: auto; padding-inline: 24px; }
.kb-wrap--hub { max-width: 1180px; }

/* ---------- Search bar under the header ---------- */
.kb-top {
  position: sticky; top: var(--kb-hdr); z-index: 60;
  background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.kb-top__in { display: flex; align-items: center; gap: 14px; height: var(--kb-bar); }
.kb-top .kb-search { flex: 1; max-width: 620px; }
.kb-navtoggle {
  display: none; align-items: center; gap: 8px; height: 42px; padding: 0 14px;
  border: 1px solid var(--line-strong); border-radius: 12px; background: #fff;
  font: inherit; font-weight: 600; font-size: .92rem; color: var(--text-strong); cursor: pointer;
}
.kb-navtoggle .material-icons-round { font-size: 20px; color: var(--accent-600); }

.kb-search { position: relative; }
.kb-search__ic {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--muted); font-size: 22px; pointer-events: none;
}
.kb-search__in {
  width: 100%; height: 44px; padding: 0 46px 0 46px; border-radius: 14px;
  border: 1.5px solid var(--line-strong); background: var(--bg-soft);
  font: inherit; font-size: 16px; color: var(--text-strong); outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
  -webkit-appearance: none; appearance: none;
}
.kb-search__in::-webkit-search-cancel-button { display: none; }
.kb-search__in::placeholder { color: #8591ab; }
.kb-search__in:focus { background: #fff; border-color: var(--accent-500); box-shadow: 0 0 0 4px rgba(249,126,48,.16); }
.kb-search__key {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  font: 600 .78rem var(--font-sans); color: var(--muted); background: #fff;
  border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 6px; padding: 1px 7px;
}
.kb-search__in:focus ~ .kb-search__key { display: none; }
.kb-search--big .kb-search__in { height: 62px; font-size: 1.1rem; border-radius: 18px; padding-left: 58px; background: #fff; box-shadow: var(--shadow-sm); }
.kb-search--big .kb-search__ic { left: 20px; font-size: 26px; }
.kb-search--big .kb-search__key { right: 18px; }

.kb-results {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 80;
  background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
  max-height: min(70vh, 520px); overflow: auto; padding: 8px; text-align: left;
}
.kb-results[hidden] { display: none; }
.kb-res {
  display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 10px 12px; border-radius: 12px;
  color: var(--text); text-decoration: none; align-items: start;
}
.kb-res.is-on, .kb-res:hover { background: var(--bg-soft); }
.kb-res__ic { width: 34px; height: 34px; border-radius: 10px; background: #fff3ea; color: var(--accent-600); display: grid; place-items: center; }
.kb-res__ic .material-icons-round { font-size: 19px; }
.kb-res b { display: block; font-size: .95rem; color: var(--text-strong); line-height: 1.35; }
.kb-res small { display: block; font-size: .78rem; color: var(--muted); margin-top: 1px; }
.kb-res p { margin: 3px 0 0; font-size: .86rem; line-height: 1.5; color: var(--muted); }
.kb-res mark { background: #ffe8d6; color: inherit; border-radius: 3px; padding: 0 1px; }
.kb-results__none { padding: 22px 16px; text-align: center; color: var(--muted); font-size: .95rem; }
.kb-results__none a { color: var(--accent-700); font-weight: 600; }
.kb-results__hint { padding: 8px 12px 4px; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

/* ---------- Shell ---------- */
.kb-shell {
  display: grid; grid-template-columns: var(--kb-side) minmax(0, 1fr) var(--kb-rail);
  gap: 44px; align-items: start; padding-top: 28px; padding-bottom: 80px;
}
.kb-side {
  position: sticky; top: calc(var(--kb-hdr) + var(--kb-bar) + 16px);
  max-height: calc(100vh - var(--kb-hdr) - var(--kb-bar) - 32px); overflow-y: auto;
  padding-right: 8px; scrollbar-width: thin;
}
.kb-nav { display: grid; gap: 4px; }
.kb-nav a { text-decoration: none; }
.kb-nav__home {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px;
  font-weight: 600; font-size: .92rem; color: var(--text-strong);
}
.kb-nav__home .material-icons-round { font-size: 20px; color: var(--accent-600); }
.kb-nav__home.is-active, .kb-nav__home:hover { background: var(--bg-soft); }
.kb-nav__cat > summary {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; cursor: pointer;
  list-style: none; font-weight: 700; font-size: .9rem; color: var(--text-strong);
}
.kb-nav__cat > summary::-webkit-details-marker { display: none; }
.kb-nav__cat > summary > .material-icons-round:first-child { font-size: 20px; color: var(--navy-500); }
.kb-nav__cat > summary > span:nth-child(2) { flex: 1; }
.kb-nav__chev { font-size: 20px; color: var(--muted); transition: transform .2s var(--ease); }
.kb-nav__cat[open] .kb-nav__chev { transform: rotate(180deg); }
.kb-nav__cat > summary:hover { background: var(--bg-soft); }
.kb-nav__cat ul { list-style: none; padding: 2px 0 8px 22px; margin: 0 0 0 21px; border-left: 1.5px solid var(--line); display: grid; gap: 1px; }
.kb-nav__cat li a {
  display: block; padding: 6px 12px; border-radius: 8px; font-size: .88rem; line-height: 1.4;
  color: var(--muted); transition: background .12s, color .12s;
}
.kb-nav__cat li a:hover { color: var(--navy-700); background: var(--bg-soft); }
.kb-nav__cat li a.is-active { color: var(--accent-700); background: #fff3ea; font-weight: 600; }
.kb-badge { font-style: normal; font-size: .64rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #fff; background: var(--accent-600); padding: 1px 6px; border-radius: 999px; margin-left: 4px; vertical-align: 1px; }
.kb-nav__foot { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); display: grid; gap: 2px; }
.kb-nav__foot a { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; font-size: .88rem; color: var(--muted); }
.kb-nav__foot a:hover { background: var(--bg-soft); color: var(--navy-700); }
.kb-nav__foot .material-icons-round { font-size: 19px; }

/* ---------- Article ---------- */
.kb-article { min-width: 0; max-width: 780px; }
.kb-crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .84rem; color: var(--muted); margin-bottom: 18px; }
.kb-crumbs a { color: var(--muted); text-decoration: none; }
.kb-crumbs a:hover { color: var(--accent-700); }
.kb-crumbs [aria-current] { color: var(--text-strong); font-weight: 600; }
.kb-head h1 { font-size: clamp(2rem, 3.4vw, 2.7rem); line-height: 1.12; letter-spacing: -.02em; font-weight: 800; color: var(--text-strong); margin: 0 0 14px; }
.kb-lead { font-size: 1.2rem; line-height: 1.6; color: var(--muted); margin: 0 0 18px; max-width: 680px; }
.kb-meta { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0 0 22px; font-size: .84rem; color: var(--muted); }
.kb-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.kb-meta .material-icons-round { font-size: 17px; color: #94a0bb; }
.kb-glance {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0;
  margin: 0 0 8px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--bg-soft);
}
.kb-glance > div { padding: 14px 18px; border-left: 1px solid var(--line); }
.kb-glance > div:first-child { border-left: 0; }
.kb-glance dt { display: flex; align-items: center; gap: 7px; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 4px; }
.kb-glance dt .material-icons-round { font-size: 17px; color: var(--accent-600); }
.kb-glance dd { margin: 0; font-size: .95rem; line-height: 1.5; color: var(--text-strong); font-weight: 500; }

/* mobile "on this page" */
.kb-mtoc { display: none; margin: 18px 0 4px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.kb-mtoc > summary { display: flex; align-items: center; gap: 10px; padding: 13px 16px; cursor: pointer; list-style: none; font-weight: 700; font-size: .95rem; color: var(--text-strong); }
.kb-mtoc > summary::-webkit-details-marker { display: none; }
.kb-mtoc > summary .material-icons-round:first-child { font-size: 20px; color: var(--accent-600); }
.kb-mtoc > summary .kb-faq__chev { margin-left: auto; }
.kb-mtoc[open] > summary .kb-faq__chev { transform: rotate(180deg); }
.kb-mtoc > div { padding: 0 8px 10px; }
.kb-mtoc ul { list-style: none; margin: 0; padding: 0; display: grid; }
.kb-mtoc a { display: block; padding: 9px 10px; font-size: .92rem; color: var(--text); text-decoration: none; border-radius: 8px; }
.kb-mtoc .kb-toc__l3 a { padding-left: 24px; color: var(--muted); font-size: .88rem; }

/* ---------- Prose ---------- */
.kb-prose { margin-top: 30px; font-size: 1.06rem; line-height: 1.78; color: var(--text); }
.kb-prose > *:first-child { margin-top: 0; }
.kb-prose h2 { font-size: 1.62rem; line-height: 1.25; letter-spacing: -.015em; font-weight: 800; color: var(--text-strong); margin: 60px 0 16px; padding-top: 34px; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--kb-hdr) + var(--kb-bar) + 18px); }
.kb-prose > h2:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.kb-prose h3 { font-size: 1.22rem; line-height: 1.35; font-weight: 700; color: var(--text-strong); margin: 36px 0 12px; scroll-margin-top: calc(var(--kb-hdr) + var(--kb-bar) + 18px); }
.kb-prose h4 { font-size: 1.02rem; font-weight: 700; color: var(--text-strong); margin: 26px 0 8px; }
.kb-prose p { margin: 0 0 16px; }
.kb-prose a:not(.kb-cta):not(.kb-anchor) { color: var(--accent-700); font-weight: 500; text-decoration: underline; text-decoration-color: rgba(201,84,10,.35); text-underline-offset: 3px; }
.kb-prose a:not(.kb-cta):not(.kb-anchor):hover { text-decoration-color: currentColor; }
.kb-prose strong { color: var(--text-strong); font-weight: 650; }
.kb-prose ul, .kb-prose ol { margin: 0 0 18px; padding-left: 1.35em; display: grid; gap: 7px; }
.kb-prose ul { list-style: disc; }
.kb-prose ol { list-style: decimal; }
.kb-prose li::marker { color: var(--accent-600); }
.kb-prose li > ul, .kb-prose li > ol { margin: 8px 0 0; }
.kb-prose li > p { margin: 0 0 8px; }
.kb-prose code { font: 600 .88em ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--bg-soft-2); color: var(--navy-700); border-radius: 6px; padding: 2px 6px; }
.kb-prose pre { background: #0e1432; color: #e7ecff; border-radius: 14px; padding: 16px 18px; overflow: auto; margin: 0 0 20px; font-size: .88rem; line-height: 1.6; }
.kb-prose pre code { background: none; color: inherit; padding: 0; font-weight: 500; }
.kb-prose kbd { font: 600 .82em var(--font-sans); background: #fff; border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 6px; padding: 1px 7px; }
.kb-prose hr { border: 0; border-top: 1px solid var(--line); margin: 36px 0; }
.kb-prose blockquote { margin: 0 0 18px; padding: 4px 18px; border-left: 3px solid var(--line-strong); color: var(--muted); }
.kb-anchor { margin-left: 8px; color: #c5cde0 !important; text-decoration: none !important; font-weight: 500; opacity: 0; transition: opacity .15s; }
.kb-prose h2:hover .kb-anchor, .kb-prose h3:hover .kb-anchor, .kb-anchor:focus { opacity: 1; }
.kb-prose img { max-width: 100%; height: auto; }

.kb-tablewrap { overflow-x: auto; margin: 0 0 22px; border: 1px solid var(--line); border-radius: 14px; }
.kb-tablewrap table { width: 100%; border-collapse: collapse; font-size: .94rem; line-height: 1.55; }
.kb-tablewrap th { text-align: left; background: var(--bg-soft); color: var(--text-strong); font-weight: 700; font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; padding: 11px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.kb-tablewrap td { padding: 12px 16px; border-top: 1px solid var(--line); vertical-align: top; }
.kb-tablewrap tr:first-child td { border-top: 0; }
.kb-tablewrap td:first-child { font-weight: 600; color: var(--text-strong); }

/* where to click:  Leave › Settings */
.kb-path { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; background: var(--bg-soft-2); border: 1px solid var(--line); border-radius: 8px; padding: 1px 9px; font-size: .92em; line-height: 1.6; }
.kb-path b { font-weight: 650; color: var(--navy-700); }
.kb-path__sep { color: var(--accent-600); font-weight: 700; }

.kb-cta { display: inline-flex; align-items: center; gap: 8px; margin: 4px 0 8px; padding: 11px 20px; border-radius: 999px; background: var(--grad-accent); color: #fff !important; font-weight: 650; font-size: .96rem; text-decoration: none; box-shadow: var(--shadow-accent); transition: transform .15s var(--ease); }
.kb-cta:hover { transform: translateY(-1px); }
.kb-cta .material-icons-round { font-size: 19px; }
.kb-cta--ghost { background: #fff; color: var(--navy-700) !important; border: 1.5px solid var(--line-strong); box-shadow: none; margin-right: 8px; }
.kb-cta--ghost:hover { border-color: var(--accent-500); }

/* ---------- Numbered steps ---------- */
.kb-steps { list-style: none !important; padding: 0 !important; margin: 20px 0 26px !important; counter-reset: kbstep; display: grid !important; gap: 0 !important; }
.kb-steps > li { counter-increment: kbstep; position: relative; padding: 2px 0 24px 56px; margin: 0; }
.kb-steps > li::before {
  content: counter(kbstep); position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; font-size: 1rem; color: #fff; background: var(--grad-accent);
  box-shadow: 0 6px 14px rgba(238,106,22,.28);
}
.kb-steps > li::after { content: ""; position: absolute; left: 18px; top: 42px; bottom: -3px; width: 2px; background: var(--line); border-radius: 2px; }
.kb-steps > li:last-child { padding-bottom: 4px; }
.kb-steps > li:last-child::after { display: none; }
.kb-steps > li > p:first-child { font-weight: 500; color: var(--text-strong); }
.kb-steps > li > *:last-child { margin-bottom: 0; }
.kb-steps > li > ul { margin-top: 8px; }

/* ---------- Callouts ---------- */
.kb-callout { display: grid; grid-template-columns: 28px 1fr; gap: 12px; margin: 22px 0; padding: 16px 20px 16px 16px; border-radius: 14px; border: 1px solid; border-left-width: 4px; font-size: 1rem; line-height: 1.7; }
.kb-callout__ic { font-size: 24px; margin-top: 1px; }
.kb-callout__t { margin: 0 0 4px !important; font-weight: 750; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.kb-callout__b > *:last-child { margin-bottom: 0 !important; }
.kb-callout__b p { margin: 0 0 10px; }
.kb-callout__b ul, .kb-callout__b ol { margin-bottom: 10px; }
.kb-callout--tip, .kb-callout--result { background: var(--kb-tip-bg); border-color: #bfe9d8; border-left-color: var(--kb-tip); }
.kb-callout--tip .kb-callout__ic, .kb-callout--tip .kb-callout__t, .kb-callout--result .kb-callout__ic, .kb-callout--result .kb-callout__t { color: var(--kb-tip); }
.kb-callout--note, .kb-callout--example { background: var(--kb-note-bg); border-color: #cfe0fb; border-left-color: var(--kb-note); }
.kb-callout--note .kb-callout__ic, .kb-callout--note .kb-callout__t, .kb-callout--example .kb-callout__ic, .kb-callout--example .kb-callout__t { color: var(--kb-note); }
.kb-callout--warning { background: var(--kb-warn-bg); border-color: #fadcae; border-left-color: var(--kb-warn); }
.kb-callout--warning .kb-callout__ic, .kb-callout--warning .kb-callout__t { color: var(--kb-warn); }
.kb-callout--important { background: var(--kb-imp-bg); border-color: #f7cccc; border-left-color: var(--kb-imp); }
.kb-callout--important .kb-callout__ic, .kb-callout--important .kb-callout__t { color: var(--kb-imp); }
.kb-callout--plain { background: var(--kb-plain-bg); border-color: #e2d6fb; border-left-color: var(--kb-plain); }
.kb-callout--plain .kb-callout__ic, .kb-callout--plain .kb-callout__t { color: var(--kb-plain); }

/* ---------- Screenshots ---------- */
.kb-shot { margin: 26px 0; }
.kb-shot a { display: block; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-sm); background: var(--bg-soft); }
.kb-shot img { display: block; width: 100%; height: auto; }
.kb-shot figcaption { margin-top: 10px; font-size: .88rem; color: var(--muted); text-align: center; }

/* ---------- FAQ ---------- */
.kb-faq { border: 1px solid var(--line); border-radius: 14px; margin: 0 0 10px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.kb-faq[open] { border-color: var(--line-strong); box-shadow: var(--shadow-xs); }
.kb-faq > summary { display: flex; align-items: center; gap: 14px; padding: 15px 18px; cursor: pointer; list-style: none; font-weight: 650; color: var(--text-strong); line-height: 1.45; }
.kb-faq > summary::-webkit-details-marker { display: none; }
.kb-faq > summary > span:first-child { flex: 1; }
.kb-faq__chev { color: var(--muted); font-size: 22px; transition: transform .2s var(--ease); flex: none; }
.kb-faq[open] .kb-faq__chev { transform: rotate(180deg); }
.kb-faq__a { padding: 0 18px 6px; }
.kb-faq__a > *:last-child { margin-bottom: 12px; }

/* ---------- Related / feedback / prev-next / help ---------- */
.kb-related { margin-top: 64px; }
.kb-related h2 { font-size: 1.3rem; margin: 0 0 16px; font-weight: 800; color: var(--text-strong); }
.kb-related__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.kb-related__card { display: flex; gap: 14px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; text-decoration: none; background: #fff; transition: border-color .15s, box-shadow .15s, transform .15s var(--ease); }
.kb-related__card:hover { border-color: var(--accent-300); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.kb-related__card > .material-icons-round { flex: none; width: 40px; height: 40px; border-radius: 12px; background: #fff3ea; color: var(--accent-600); display: grid; place-items: center; font-size: 22px; }
.kb-related__card b { display: block; color: var(--text-strong); font-size: .98rem; line-height: 1.35; }
.kb-related__card span span { display: block; margin-top: 3px; font-size: .86rem; line-height: 1.5; color: var(--muted); }

.kb-feedback { margin-top: 48px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg-soft); }
.kb-feedback__q { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; }
.kb-feedback__q b { color: var(--text-strong); }
.kb-feedback__q span { display: inline-flex; gap: 10px; }
.kb-feedback button { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: #fff; font: inherit; font-weight: 600; color: var(--navy-700); cursor: pointer; transition: border-color .15s, background .15s; }
.kb-feedback button:hover { border-color: var(--accent-500); }
.kb-feedback button .material-icons-round { font-size: 19px; color: var(--accent-600); }
.kb-feedback__yes { margin: 14px 0 0; color: var(--kb-tip); font-weight: 600; }
.kb-feedback__no { margin-top: 14px; }
.kb-feedback__no p { margin: 0 0 12px; color: var(--text); }
.kb-feedback[data-done] .kb-feedback__q { display: none; }

.kb-pn { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; }
.kb-pn__a { display: block; padding: 14px 18px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; background: #fff; transition: border-color .15s, box-shadow .15s; }
.kb-pn__a:hover { border-color: var(--accent-300); box-shadow: var(--shadow-sm); }
.kb-pn__a small { display: block; font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; margin-bottom: 2px; }
.kb-pn__a b { color: var(--navy-700); font-size: .98rem; line-height: 1.35; }
.kb-pn__a--next { text-align: right; grid-column: 2; }
.kb-pn__a--prev { grid-column: 1; }

.kb-help { display: flex; gap: 16px; align-items: flex-start; margin-top: 28px; padding: 20px 22px; border-radius: 16px; background: var(--grad-ink); color: var(--on-dark-muted); }
.kb-help > .material-icons-round { flex: none; width: 44px; height: 44px; border-radius: 14px; background: rgba(255,255,255,.1); color: var(--accent-300); display: grid; place-items: center; font-size: 24px; }
.kb-help b { color: #fff; display: block; margin-bottom: 4px; }
.kb-help p { margin: 0; font-size: .94rem; line-height: 1.65; color: inherit; }
.kb-help a { color: var(--accent-300); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Right rail: On this page ---------- */
.kb-rail { position: sticky; top: calc(var(--kb-hdr) + var(--kb-bar) + 20px); max-height: calc(100vh - var(--kb-hdr) - var(--kb-bar) - 40px); overflow-y: auto; scrollbar-width: thin; }
.kb-rail__t { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.kb-toc ul { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); display: grid; }
.kb-toc a { display: block; padding: 6px 14px; margin-left: -2px; border-left: 2px solid transparent; font-size: .86rem; line-height: 1.4; color: var(--muted); text-decoration: none; transition: color .12s, border-color .12s; }
.kb-toc .kb-toc__l3 a { padding-left: 26px; font-size: .82rem; }
.kb-toc a:hover { color: var(--navy-700); }
.kb-toc a.is-active { color: var(--accent-700); border-left-color: var(--accent-500); font-weight: 600; }
.kb-rail__top { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-size: .84rem; color: var(--muted); text-decoration: none; }
.kb-rail__top:hover { color: var(--accent-700); }
.kb-rail__top .material-icons-round { font-size: 17px; }
.kb-toc:empty, .kb-toc:empty + .kb-rail__top { display: none; }
.kb-rail:has(.kb-toc:empty) .kb-rail__t { display: none; }

/* =====================================================================
   HUB (/docs/)
   ===================================================================== */
.kb-hero { position: relative; padding: calc(var(--kb-hdr) + 56px) 0 54px; text-align: center; background:
  radial-gradient(900px 380px at 85% -10%, rgba(249,126,48,.16), transparent 60%),
  radial-gradient(760px 360px at 8% 0%, rgba(47,61,130,.13), transparent 60%), var(--bg-soft); border-bottom: 1px solid var(--line); }
.kb-hero .eyebrow { justify-content: center; }
.kb-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.08; letter-spacing: -.025em; font-weight: 800; color: var(--text-strong); margin: 10px auto 14px; max-width: 760px; }
.kb-hero__lead { font-size: 1.15rem; line-height: 1.6; color: var(--muted); max-width: 640px; margin: 0 auto 30px; }
.kb-hero .kb-search { max-width: 700px; margin-inline: auto; }
.kb-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; font-size: .88rem; color: var(--muted); align-items: center; }
.kb-chips a { padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line-strong); color: var(--navy-700); text-decoration: none; font-weight: 550; transition: border-color .15s, color .15s; }
.kb-chips a:hover { border-color: var(--accent-500); color: var(--accent-700); }

.kb-sec { padding: 64px 0 0; }
.kb-sec:last-of-type { padding-bottom: 20px; }
.kb-sec__h { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.kb-sec__h h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 800; letter-spacing: -.02em; color: var(--text-strong); margin: 0; }
.kb-sec__h p { margin: 6px 0 0; color: var(--muted); max-width: 640px; }

.kb-paths { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.kb-path-card { display: flex; flex-direction: column; padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow-xs); position: relative; overflow: hidden; }
.kb-path-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--grad-accent); opacity: .85; }
.kb-path-card__ic { width: 46px; height: 46px; border-radius: 14px; background: #fff3ea; color: var(--accent-600); display: grid; place-items: center; margin-bottom: 14px; }
.kb-path-card__ic .material-icons-round { font-size: 26px; }
.kb-path-card h3 { font-size: 1.1rem; font-weight: 800; color: var(--text-strong); margin: 0 0 4px; }
.kb-path-card > p { margin: 0 0 14px; font-size: .9rem; line-height: 1.55; color: var(--muted); }
.kb-path-card ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: pc; }
.kb-path-card li { counter-increment: pc; }
.kb-path-card li a { display: flex; gap: 10px; align-items: baseline; padding: 7px 0; font-size: .93rem; line-height: 1.4; color: var(--navy-700); text-decoration: none; font-weight: 550; border-top: 1px solid var(--line); }
.kb-path-card li:first-child a { border-top: 0; }
.kb-path-card li a::before { content: counter(pc); flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--bg-soft-2); color: var(--navy-600); font-size: .74rem; font-weight: 800; display: grid; place-items: center; transform: translateY(-1px); }
.kb-path-card li a:hover { color: var(--accent-700); }

.kb-cats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.kb-cat { padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: #fff; scroll-margin-top: 150px; transition: box-shadow .2s, border-color .2s; }
.kb-cat:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.kb-cat__head { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.kb-cat__ic { flex: none; width: 48px; height: 48px; border-radius: 14px; background: var(--grad-brand); color: #fff; display: grid; place-items: center; }
.kb-cat__ic .material-icons-round { font-size: 26px; }
.kb-cat h3 { font-size: 1.08rem; font-weight: 800; color: var(--text-strong); margin: 0; line-height: 1.3; }
.kb-cat h3 small { display: block; font-size: .78rem; font-weight: 500; color: var(--muted); margin-top: 2px; }
.kb-cat > p { margin: 0 0 12px; font-size: .9rem; line-height: 1.55; color: var(--muted); }
.kb-cat ul { list-style: none; margin: 0; padding: 0; display: grid; }
.kb-cat li a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: .93rem; color: var(--navy-700); text-decoration: none; font-weight: 550; line-height: 1.35; }
.kb-cat li:first-child a { border-top: 0; }
.kb-cat li a::after { content: "›"; color: #b4bdd3; font-size: 1.2rem; transition: transform .15s, color .15s; }
.kb-cat li a:hover { color: var(--accent-700); }
.kb-cat li a:hover::after { transform: translateX(3px); color: var(--accent-600); }

.kb-pop { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.kb-pop a { display: flex; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; text-decoration: none; background: #fff; transition: border-color .15s, transform .15s var(--ease), box-shadow .15s; }
.kb-pop a:hover { border-color: var(--accent-300); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.kb-pop .material-icons-round { flex: none; color: var(--accent-600); font-size: 26px; }
.kb-pop b { display: block; color: var(--text-strong); font-size: .98rem; line-height: 1.35; }
.kb-pop span span { display: block; margin-top: 3px; font-size: .86rem; line-height: 1.5; color: var(--muted); }

.kb-contact { margin-top: 64px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; padding: 34px; border-radius: 24px; background: var(--grad-ink); color: var(--on-dark-muted); align-items: center; }
.kb-contact h2 { color: #fff; font-size: 1.7rem; font-weight: 800; margin: 0 0 8px; letter-spacing: -.02em; }
.kb-contact p { margin: 0; line-height: 1.65; color: inherit; }
.kb-contact__btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
.kb-contact .kb-cta--ghost { background: transparent; color: #fff !important; border-color: rgba(255,255,255,.35); margin: 0; }
.kb-contact .kb-cta--ghost:hover { border-color: #fff; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1180px) {
  .kb-shell { grid-template-columns: var(--kb-side) minmax(0, 1fr); gap: 36px; }
  .kb-rail { display: none; }
  .kb-mtoc { display: block; }
  .kb-paths { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kb-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  :root { --kb-hdr: 60px; --kb-bar: 60px; }
  .kb-wrap { padding-inline: 16px; }
  .kb-shell { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 16px; padding-bottom: 110px; }
  .kb-navtoggle { display: inline-flex; flex: none; }
  .kb-top__in { gap: 10px; }
  .kb-side {
    position: static; max-height: none; overflow: visible; padding: 0;
    display: none; margin-bottom: 18px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow-sm);
  }
  .kb-side.is-open { display: block; padding: 10px; }
  .kb-search__key { display: none; }
  .kb-article { max-width: none; }
  .kb-prose { font-size: 1.04rem; line-height: 1.75; }
  .kb-prose h2 { margin-top: 44px; padding-top: 26px; font-size: 1.42rem; }
  .kb-related__grid { grid-template-columns: minmax(0, 1fr); }
  .kb-pn { grid-template-columns: minmax(0, 1fr); }
  .kb-pn__a--next, .kb-pn__a--prev { grid-column: 1; text-align: left; }
  .kb-glance { grid-template-columns: minmax(0, 1fr); }
  .kb-glance > div { border-left: 0; border-top: 1px solid var(--line); }
  .kb-glance > div:first-child { border-top: 0; }
  .kb-hero { padding: calc(var(--kb-hdr) + 36px) 0 40px; }
  .kb-hero .kb-wrap { padding-inline: 18px; }
  .kb-search--big .kb-search__in { height: 56px; font-size: 1rem; padding-left: 52px; }
  .kb-search--big .kb-search__ic { left: 16px; }
  .kb-sec { padding-top: 48px; }
  .kb-paths, .kb-cats, .kb-pop { grid-template-columns: minmax(0, 1fr); }
  .kb-contact { grid-template-columns: minmax(0, 1fr); padding: 26px 22px; }
  .kb-contact__btns { justify-content: flex-start; }
  .kb-steps > li { padding-left: 50px; }
  .kb-steps > li::before { width: 34px; height: 34px; font-size: .92rem; }
  .kb-steps > li::after { left: 16px; top: 40px; }
  .kb-callout { grid-template-columns: 24px 1fr; padding: 14px 14px 14px 12px; gap: 10px; }
  .kb-help { flex-direction: column; }
}
@media (max-width: 560px) {
  .kb-chips { justify-content: flex-start; }
  .kb-tablewrap th, .kb-tablewrap td { padding: 10px 12px; }
}

/* ---------- Print: a guide should print like a guide ---------- */
@media print {
  .site-header, .tabbar, .kb-top, .kb-side, .kb-rail, .kb-mtoc, .kb-feedback, .kb-pn, .kb-help, .kb-related, .consent, .footer, .kb-anchor { display: none !important; }
  .kb { padding-top: 0; }
  .kb-shell { display: block; padding: 0; }
  .kb-article { max-width: none; }
  .kb-prose { font-size: 11pt; }
  .kb-callout, .kb-faq, .kb-steps > li { break-inside: avoid; }
  .kb-faq:not([open]) .kb-faq__a { display: block; }
}
@media (prefers-reduced-motion: reduce) { .kb *, .kb *::before { transition: none !important; } }

/* permission reference: bullet list inside a table cell */
.kb-grants { list-style: disc; margin: 8px 0 0 !important; padding-left: 1.2em !important; display: grid; gap: 3px !important; font-size: .9rem; color: var(--muted); }
.kb-tablewrap td:first-child code { display: inline-block; margin-top: 4px; font-size: .74rem; word-break: break-all; }
