/* The knowledge base. Right-to-left first, with logical properties, so English is the
   same sheet mirrored. Everything here is under .kb (the public pages) or a kb- class,
   so the staff's editor can load this sheet beside the panel's own and show an article
   exactly as the public page does (.kb-content). */

@font-face { font-family: 'Rubik'; font-style: normal; font-weight: 300 600; font-display: swap; src: url('/static/fonts/rubik/iJWKBXyIfDnIV7nDrXyi0A.woff2') format('woff2'); unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: 'Rubik'; font-style: normal; font-weight: 300 600; font-display: swap; src: url('/static/fonts/rubik/iJWKBXyIfDnIV7nPrXyi0A.woff2') format('woff2'); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Rubik'; font-style: normal; font-weight: 300 600; font-display: swap; src: url('/static/fonts/rubik/iJWKBXyIfDnIV7nBrXw.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --kb-bg: #f6f8fc;
  --kb-surface: #ffffff;
  --kb-ink: #0b1b33;
  --kb-ink-soft: #2c3d57;
  --kb-muted: #63728a;
  --kb-line: #e3e9f3;
  --kb-line-soft: #eef2f8;
  --kb-blue: #3f76f2;
  --kb-blue-ink: #2a5bd0;
  --kb-blue-soft: #eaf1ff;
  --kb-navy: #0b1b33;
  --kb-navy-2: #14306a;
  --kb-green: #15803d;
  --kb-green-soft: #e8f7ee;
  --kb-amber: #a15c07;
  --kb-amber-soft: #fff6e3;
  --kb-red: #b42323;
  --kb-red-soft: #fdeded;
  --kb-radius: 14px;
  --kb-radius-s: 10px;
  --kb-shadow: 0 1px 2px rgba(11, 27, 51, .05), 0 4px 14px rgba(11, 27, 51, .05);
  --kb-shadow-up: 0 2px 4px rgba(11, 27, 51, .06), 0 14px 34px rgba(11, 27, 51, .11);
  --kb-font: "Rubik", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --kb-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --kb-top: 64px;
}

/* ---------- the public pages ---------- */

.kb, .kb *, .kb *::before, .kb *::after { box-sizing: border-box; }
html:has(> body.kb) { scroll-behavior: smooth; scroll-padding-top: calc(var(--kb-top) + 20px); -webkit-text-size-adjust: 100%; }
body.kb { margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--kb-bg); color: var(--kb-ink); font-family: var(--kb-font); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
.kb main { flex: 1; }
.kb h1, .kb h2, .kb p, .kb ul, .kb ol { margin: 0; }
.kb ul, .kb ol { padding: 0; list-style: none; }
.kb a { color: var(--kb-blue-ink); text-decoration: none; }
.kb a:hover { color: var(--kb-blue); }
.kb img { max-width: 100%; height: auto; }
.kb svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.kb :focus-visible { outline: 3px solid rgba(63, 118, 242, .45); outline-offset: 2px; border-radius: 8px; }
.kb-wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: 24px; }
.kb-muted { color: var(--kb-muted); font-size: .9rem; }
.kb-skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 60; padding: 10px 16px; border-radius: 10px; background: var(--kb-navy); color: #fff !important; transition: top .15s; }
.kb-skip:focus { top: 12px; }

.kb-progress { position: fixed; inset-inline: 0; top: 0; height: 3px; z-index: 50; pointer-events: none; }
.kb-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #3f76f2, #7aa2ff); }
.kb-preview-bar { background: #fff6e3; color: #7a4a05; text-align: center; padding: 8px 16px; font-size: .9rem; font-weight: 500; }
.kb-preview-bar a { margin-inline-start: 10px; font-weight: 600; text-decoration: underline; }

/* the top bar */
.kb-top { position: sticky; top: 0; z-index: 40; height: var(--kb-top); background: rgba(255, 255, 255, .86); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--kb-line); }
.kb-top-in { height: 100%; display: flex; align-items: center; gap: 20px; }
.kb-brand { display: flex; align-items: center; gap: 12px; color: var(--kb-ink) !important; font-weight: 600; white-space: nowrap; }
.kb-brand span { padding-inline-start: 12px; border-inline-start: 1px solid var(--kb-line); font-size: .98rem; }
.kb-top-links { margin-inline-start: auto; display: flex; align-items: center; gap: 14px; white-space: nowrap; }
.kb-lang { font-size: .9rem; font-weight: 500; color: var(--kb-ink-soft) !important; padding: 6px 10px; border-radius: 8px; }
.kb-lang:hover { background: var(--kb-line-soft); }
.kb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 16px; border: 1px solid var(--kb-line); border-radius: 999px; background: #fff; color: var(--kb-ink) !important; font: inherit; font-size: .9rem; font-weight: 500; cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s, background .15s; }
.kb-btn:hover { border-color: #c6d3ea; box-shadow: var(--kb-shadow); }
.kb-btn-solid { border-color: transparent; background: var(--kb-blue); color: #fff !important; font-weight: 600; }
.kb-btn-solid:hover { background: var(--kb-blue-ink); border-color: transparent; }

/* the search box, in the hero and in the top bar */
.kb-search { position: relative; display: flex; align-items: center; }
.kb-search > svg { position: absolute; inset-inline-start: 16px; width: 20px; height: 20px; color: var(--kb-muted); pointer-events: none; }
.kb-search input { width: 100%; border: 1px solid var(--kb-line); background: #fff; color: var(--kb-ink); font: inherit; outline: none; -webkit-appearance: none; appearance: none; transition: border-color .15s, box-shadow .15s; }
.kb-search input::-webkit-search-cancel-button { display: none; }
.kb-search input::placeholder { color: #8d9ab0; }
.kb-search input:focus { border-color: var(--kb-blue); box-shadow: 0 0 0 4px rgba(63, 118, 242, .16); }
.kb-search kbd { position: absolute; inset-inline-end: 12px; padding: 1px 7px; border: 1px solid var(--kb-line); border-radius: 6px; background: var(--kb-bg); color: var(--kb-muted); font: 500 .75rem var(--kb-mono); pointer-events: none; }
.kb-search input:focus ~ kbd { display: none; }
.kb-search-top { flex: 1; max-width: 460px; margin-inline: auto; }
.kb-search-top input { height: 40px; padding-inline: 44px 40px; border-radius: 999px; font-size: .92rem; background: var(--kb-bg); }
.kb-search-top input:focus { background: #fff; }
.kb-search-hero { max-width: 680px; margin: 28px auto 0; }
.kb-search-hero > svg { inset-inline-start: 22px; width: 22px; height: 22px; }
.kb-search-hero input { height: 64px; padding-inline: 58px 130px; border-radius: 18px; border-color: transparent; font-size: 1.08rem; box-shadow: 0 10px 40px rgba(3, 12, 30, .35); }
.kb-search-hero input:focus { border-color: transparent; box-shadow: 0 0 0 4px rgba(122, 162, 255, .5), 0 10px 40px rgba(3, 12, 30, .35); }
.kb-search-hero .kb-btn { position: absolute; inset-inline-end: 10px; height: 44px; padding: 0 22px; border-radius: 12px; }

.kb-suggest { position: absolute; top: calc(100% + 8px); inset-inline: 0; z-index: 45; padding: 6px; border: 1px solid var(--kb-line); border-radius: 14px; background: #fff; box-shadow: var(--kb-shadow-up); text-align: start; }
.kb-suggest a { display: grid; gap: 1px; padding: 9px 12px; border-radius: 10px; color: var(--kb-ink) !important; }
.kb-suggest a small { color: var(--kb-muted); font-size: .78rem; }
.kb-suggest a:hover, .kb-suggest a.kb-on { background: var(--kb-blue-soft); }
.kb-suggest .kb-suggest-all { color: var(--kb-blue-ink) !important; font-weight: 500; font-size: .9rem; border-top: 1px solid var(--kb-line-soft); border-radius: 0 0 10px 10px; margin-top: 4px; }
.kb-suggest-none { padding: 12px; color: var(--kb-muted); font-size: .9rem; }

/* the hero */
.kb-hero { position: relative; overflow: hidden; background: linear-gradient(160deg, #0b1b33 0%, #10285a 55%, #1b3f8f 100%); color: #fff; text-align: center; }
.kb-hero-glow { position: absolute; inset: 0; background: radial-gradient(600px 300px at 15% 0%, rgba(86, 140, 255, .38), transparent 70%), radial-gradient(520px 320px at 88% 100%, rgba(122, 92, 255, .28), transparent 70%); }
.kb-hero-in { position: relative; padding-block: 76px 84px; }
.kb-eyebrow { display: inline-block; padding: 5px 14px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; background: rgba(255, 255, 255, .08); font-size: .82rem; font-weight: 500; letter-spacing: .02em; }
.kb-hero h1 { margin-top: 18px; font-size: clamp(2rem, 4.6vw, 3.1rem); line-height: 1.15; font-weight: 600; letter-spacing: -.01em; }
html[lang="he"] .kb-hero h1 { letter-spacing: 0; }
.kb-hero-sub { max-width: 620px; margin: 14px auto 0 !important; color: rgba(255, 255, 255, .78); font-size: 1.08rem; }
.kb-hero-note { margin-top: 18px !important; color: rgba(255, 255, 255, .6); font-size: .86rem; }

/* the home page */
.kb-home { padding-block: 44px 72px; display: grid; gap: 56px; }
.kb-section-title { margin-bottom: 18px !important; font-size: 1.2rem; font-weight: 600; }
.kb-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.kb-cat { display: flex; flex-direction: column; gap: 12px; padding: 22px; border: 1px solid var(--kb-line); border-radius: var(--kb-radius); background: var(--kb-surface); box-shadow: var(--kb-shadow); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.kb-cat:hover { transform: translateY(-3px); box-shadow: var(--kb-shadow-up); border-color: #cfdcf3; }
.kb-cat-head { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; color: var(--kb-ink) !important; }
.kb-cat-icon { grid-row: span 2; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: linear-gradient(140deg, #eaf1ff, #dbe7ff); color: var(--kb-blue-ink); }
.kb-cat-icon svg { width: 24px; height: 24px; }
.kb-cat-name { font-size: 1.08rem; font-weight: 600; line-height: 1.3; }
.kb-cat-count { color: var(--kb-muted); font-size: .82rem; }
.kb-cat-desc { color: var(--kb-ink-soft); font-size: .92rem; }
.kb-cat-list { display: grid; gap: 2px; margin-top: 2px !important; padding-top: 12px !important; border-top: 1px solid var(--kb-line-soft); }
.kb-cat-list a { display: block; padding: 6px 8px; margin-inline: -8px; border-radius: 8px; color: var(--kb-ink-soft); font-size: .93rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kb-cat-list a:hover { background: var(--kb-blue-soft); color: var(--kb-blue-ink); }
.kb-cat-more { margin-top: auto; padding-top: 4px; font-size: .88rem; font-weight: 500; }
.kb-lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; }
.kb-rank, .kb-recent { display: grid; gap: 4px; counter-reset: kb-rank; }
.kb-rank a, .kb-recent a { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; padding: 12px 14px; border-radius: 12px; color: var(--kb-ink) !important; transition: background .15s; }
.kb-recent a { grid-template-columns: 1fr; }
.kb-rank a::before { counter-increment: kb-rank; content: counter(kb-rank); grid-row: span 2; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--kb-blue-soft); color: var(--kb-blue-ink); font-size: .84rem; font-weight: 600; }
.kb-rank a:hover, .kb-recent a:hover { background: #fff; box-shadow: var(--kb-shadow); }
.kb-rank-title { font-weight: 500; }
.kb-rank-meta { color: var(--kb-muted); font-size: .82rem; }
.kb-empty { padding: 44px 24px; border: 1px dashed #cdd8ea; border-radius: var(--kb-radius); background: #fff; color: var(--kb-muted); text-align: center; }
.kb-empty strong { display: block; margin-bottom: 6px; color: var(--kb-ink); font-size: 1.05rem; }

/* inner pages */
.kb-page { padding-block: 26px 72px; }
.kb-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 22px; color: var(--kb-muted); font-size: .88rem; }
.kb-crumbs a { color: var(--kb-muted); }
.kb-crumbs a:hover { color: var(--kb-blue-ink); }
.kb-crumbs [aria-current] { color: var(--kb-ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46ch; }
.kb-crumbs span[aria-hidden] { opacity: .5; }
.kb-cols { display: grid; gap: 36px; align-items: start; }
.kb-cols-2 { grid-template-columns: 250px minmax(0, 1fr); }
.kb-cols-3 { grid-template-columns: 250px minmax(0, 1fr) 220px; }
.kb-side, .kb-toc { position: sticky; top: calc(var(--kb-top) + 24px); max-height: calc(100vh - var(--kb-top) - 48px); overflow-y: auto; scrollbar-width: thin; }
.kb-side-title { margin-bottom: 10px !important; color: var(--kb-muted); font-size: .76rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.kb-side-list { display: grid; gap: 2px; }
.kb-side-list a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; color: var(--kb-ink-soft); font-size: .92rem; line-height: 1.35; }
.kb-side-list a svg { flex: none; width: 18px; height: 18px; color: var(--kb-muted); }
.kb-side-list a span { flex: 1; }
.kb-side-list a small { color: var(--kb-muted); font-size: .76rem; }
.kb-side-list a:hover { background: #fff; color: var(--kb-ink); }
.kb-side-list a[aria-current] { background: var(--kb-blue-soft); color: var(--kb-blue-ink); font-weight: 500; }
.kb-side-list a[aria-current] svg { color: var(--kb-blue-ink); }
.kb-cat-hero { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 26px; }
.kb-cat-hero h1 { font-size: 1.9rem; line-height: 1.2; font-weight: 600; }
.kb-cat-hero p { margin-top: 6px; color: var(--kb-ink-soft); }
.kb-cat-icon-big { flex: none; width: 60px; height: 60px; border-radius: 17px; }
.kb-cat-icon-big svg { width: 30px; height: 30px; }
.kb-search-head { margin-bottom: 22px; }
.kb-search-head h1 { font-size: 1.6rem; font-weight: 600; line-height: 1.25; }
.kb-search-head q { color: var(--kb-blue-ink); }
.kb-results { display: grid; gap: 12px; }
.kb-result { display: grid; gap: 5px; padding: 18px 20px; border: 1px solid var(--kb-line); border-radius: var(--kb-radius); background: #fff; color: var(--kb-ink) !important; transition: border-color .15s, box-shadow .15s, transform .15s; }
.kb-result:hover { border-color: #c5d5f2; box-shadow: var(--kb-shadow-up); transform: translateY(-1px); }
.kb-result-cat { color: var(--kb-blue-ink); font-size: .78rem; font-weight: 600; }
.kb-result-title { font-size: 1.06rem; font-weight: 600; line-height: 1.35; }
.kb-result-text { color: var(--kb-ink-soft); font-size: .93rem; }
.kb-result-meta { color: var(--kb-muted); font-size: .8rem; }
.kb mark, .kb-content mark { padding: 0 2px; border-radius: 4px; background: #fff0b8; color: inherit; }

/* an article */
.kb-article { min-width: 0; padding: 40px 44px; border: 1px solid var(--kb-line); border-radius: 18px; background: #fff; box-shadow: var(--kb-shadow); }
.kb-article-head { margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid var(--kb-line-soft); }
.kb-article-head h1 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); line-height: 1.22; font-weight: 600; letter-spacing: -.01em; }
html[lang="he"] .kb-article-head h1 { letter-spacing: 0; }
.kb-lead { margin-top: 12px !important; color: var(--kb-ink-soft); font-size: 1.12rem; line-height: 1.6; }
.kb-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 16px !important; color: var(--kb-muted); font-size: .86rem; }
.kb-meta span { display: inline-flex; align-items: center; gap: 6px; }
.kb-meta svg { width: 16px; height: 16px; }
.kb-toc ol, .kb-toc-inline ol { display: grid; gap: 1px; border-inline-start: 2px solid var(--kb-line); }
.kb-toc a, .kb-toc-inline a { display: block; margin-inline-start: -2px; padding: 6px 14px; border-inline-start: 2px solid transparent; color: var(--kb-muted); font-size: .86rem; line-height: 1.4; }
.kb-toc a:hover, .kb-toc-inline a:hover { color: var(--kb-ink); }
.kb-toc a.kb-on { border-inline-start-color: var(--kb-blue); color: var(--kb-blue-ink); font-weight: 500; }
.kb-toc-3 a { padding-inline-start: 28px; font-size: .82rem; }
.kb-toc-inline { display: none; margin-bottom: 24px; padding: 14px 18px; border: 1px solid var(--kb-line); border-radius: 12px; background: var(--kb-bg); }
.kb-toc-inline summary { cursor: pointer; font-weight: 600; font-size: .92rem; }
.kb-toc-inline ol { margin-top: 12px; }
.kb-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px !important; }
.kb-tags a { display: block; padding: 4px 12px; border-radius: 999px; background: var(--kb-bg); border: 1px solid var(--kb-line); color: var(--kb-ink-soft); font-size: .82rem; }
.kb-tags a:hover { border-color: #c5d5f2; color: var(--kb-blue-ink); }
.kb-feedback { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 40px; padding: 20px 24px; border-radius: 14px; background: linear-gradient(140deg, #f3f7ff, #eef3fd); }
.kb-feedback h2 { font-size: 1.02rem; font-weight: 600; }
.kb-feedback-form { display: flex; gap: 10px; margin: 0; }
.kb-vote { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px; border: 1px solid #cfdcf3; border-radius: 999px; background: #fff; color: var(--kb-ink); font: inherit; font-size: .92rem; font-weight: 500; cursor: pointer; transition: border-color .15s, color .15s, transform .15s; }
.kb-vote svg { width: 18px; height: 18px; }
.kb-vote:hover { border-color: var(--kb-blue); color: var(--kb-blue-ink); transform: translateY(-1px); }
.kb-feedback-done { color: var(--kb-green); font-weight: 500; }
.kb-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; }
.kb-pager a { display: grid; gap: 3px; padding: 16px 18px; border: 1px solid var(--kb-line); border-radius: 14px; color: var(--kb-ink) !important; transition: border-color .15s, box-shadow .15s; }
.kb-pager a:hover { border-color: #c5d5f2; box-shadow: var(--kb-shadow); }
.kb-pager small { color: var(--kb-muted); font-size: .78rem; }
.kb-pager span { font-weight: 500; line-height: 1.35; }
.kb-pager-next { text-align: end; }

/* the foot */
.kb-foot { border-top: 1px solid var(--kb-line); background: #fff; }
.kb-foot-in { padding-block: 34px 28px; display: grid; gap: 24px; }
.kb-help { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 28px; border-radius: 18px; background: linear-gradient(135deg, #0b1b33, #173a80); color: #fff; }
.kb-help strong { font-size: 1.12rem; font-weight: 600; }
.kb-help p { margin-top: 4px; color: rgba(255, 255, 255, .75); font-size: .93rem; }
.kb-help .kb-btn-solid { background: #fff; color: var(--kb-navy) !important; height: 44px; padding: 0 22px; }
.kb-help .kb-btn-solid:hover { background: #eef3ff; }
.kb-copy { color: var(--kb-muted); font-size: .84rem; text-align: center; }

/* a picture opened large */
.kb-lightbox { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 28px; background: rgba(6, 14, 30, .88); cursor: zoom-out; }
.kb-lightbox[hidden] { display: none; }
.kb-lightbox img { max-width: 100%; max-height: calc(100vh - 56px); border-radius: 10px; box-shadow: 0 20px 80px rgba(0, 0, 0, .5); background: #fff; }
.kb-lightbox-close { position: absolute; top: 16px; inset-inline-end: 20px; width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; }

/* ---------- an article's body: the public page and the staff's editor alike ---------- */

.kb-content { color: var(--kb-ink-soft); font-family: var(--kb-font); font-size: 1.05rem; line-height: 1.8; overflow-wrap: break-word; }
.kb-content > :first-child { margin-top: 0; }
.kb-content > :last-child { margin-bottom: 0; }
.kb-content p { margin: 0 0 1.1em; }
.kb-content h2, .kb-content h3, .kb-content h4 { position: relative; color: var(--kb-ink); font-weight: 600; line-height: 1.3; scroll-margin-top: calc(var(--kb-top) + 20px); }
.kb-content h2 { margin: 2em 0 .7em; padding-top: 1.1em; border-top: 1px solid var(--kb-line-soft); font-size: 1.5rem; }
.kb-content h2:first-child { padding-top: 0; border-top: 0; }
.kb-content h3 { margin: 1.7em 0 .6em; font-size: 1.22rem; }
.kb-content h4 { margin: 1.4em 0 .5em; font-size: 1.05rem; }
.kb-content a { color: var(--kb-blue-ink); text-decoration: underline; text-decoration-color: rgba(42, 91, 208, .35); text-underline-offset: 3px; }
.kb-content a:hover { text-decoration-color: currentColor; }
.kb-content strong { color: var(--kb-ink); font-weight: 600; }
.kb-content ul, .kb-content ol { margin: 0 0 1.1em; padding-inline-start: 1.5em; }
.kb-content ul { list-style: disc; }
.kb-content ol { list-style: decimal; }
.kb-content li { margin: .35em 0; padding-inline-start: .2em; }
.kb-content li::marker { color: var(--kb-blue); font-weight: 600; }
.kb-content li > ul, .kb-content li > ol { margin: .35em 0 0; }
.kb-content li > p { margin: 0 0 .5em; }
.kb-content img { display: block; max-width: 100%; height: auto; margin: 1.4em auto; border: 1px solid var(--kb-line); border-radius: 12px; box-shadow: var(--kb-shadow); cursor: zoom-in; }
.kb-content img.kb-img-s { max-width: min(100%, 320px); }
.kb-content img.kb-img-m { max-width: min(100%, 520px); }
.kb-content img.kb-img-l { max-width: min(100%, 760px); }
.kb-content img.kb-img-start { margin-inline: 0 auto; }
.kb-content img.kb-img-border { border: 0; box-shadow: none; border-radius: 0; }
.kb-content figure { margin: 1.4em 0; }
.kb-content figure img { margin-bottom: .6em; }
.kb-content figcaption { color: var(--kb-muted); font-size: .88rem; text-align: center; }
.kb-content code, .kb-content kbd { font-family: var(--kb-mono); font-size: .88em; direction: ltr; unicode-bidi: isolate; }
.kb-content code { padding: .15em .4em; border-radius: 6px; background: #eef2f9; color: #1b3a7a; }
.kb-content kbd { padding: .12em .5em; border: 1px solid #cdd7e8; border-bottom-width: 2px; border-radius: 6px; background: #fff; color: var(--kb-ink); }
.kb-content pre { position: relative; margin: 1.3em 0; padding: 18px 20px; border-radius: 12px; background: #0f1d36; color: #e6edfb; font: .88rem/1.7 var(--kb-mono); text-align: left; white-space: pre; overflow-x: auto; tab-size: 2; }
.kb-content blockquote { margin: 1.3em 0; padding: 4px 20px; border-inline-start: 4px solid #c9d8f6; color: var(--kb-ink-soft); font-style: italic; }
.kb-content blockquote > :last-child { margin-bottom: 0; }
.kb-content hr { height: 1px; margin: 2em 0; border: 0; background: var(--kb-line); }
.kb-content table { display: block; width: max-content; max-width: 100%; margin: 1.4em 0; border-collapse: separate; border-spacing: 0; border: 1px solid var(--kb-line); border-radius: 12px; overflow-x: auto; font-size: .95rem; line-height: 1.55; }
.kb-content th, .kb-content td { padding: 10px 16px; border-bottom: 1px solid var(--kb-line); border-inline-start: 1px solid var(--kb-line); text-align: start; vertical-align: top; }
.kb-content th:first-child, .kb-content td:first-child { border-inline-start: 0; }
.kb-content tr:last-child td { border-bottom: 0; }
.kb-content th { background: #f3f6fc; color: var(--kb-ink); font-weight: 600; }
.kb-content td > :last-child, .kb-content th > :last-child { margin-bottom: 0; }
.kb-content details { margin: 1.2em 0; padding: 12px 18px; border: 1px solid var(--kb-line); border-radius: 12px; }
.kb-content summary { cursor: pointer; color: var(--kb-ink); font-weight: 600; }
.kb-content sub, .kb-content sup { font-size: .75em; line-height: 0; }

/* a note: for your information, a tip, careful, danger */
.kb-content .kb-callout { position: relative; margin: 1.4em 0; padding: 16px 20px; padding-inline-start: 54px; border: 1px solid; border-radius: 12px; font-size: .98em; line-height: 1.7; }
.kb-content .kb-callout > :last-child { margin-bottom: 0; }
.kb-content .kb-callout::before { content: ""; position: absolute; inset-inline-start: 18px; top: 18px; width: 22px; height: 22px; background: center / contain no-repeat; }
.kb-content .kb-callout-info { border-color: #cfdcf8; background: #f2f6ff; color: #1f3d7a; }
.kb-content .kb-callout-info::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232a5bd0' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v5.500M12 7.500h.010'/%3E%3C/svg%3E"); }
.kb-content .kb-callout-tip { border-color: #c5e8d2; background: #eefaf3; color: #14532d; }
.kb-content .kb-callout-tip::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315803d' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 17.500h6M10 20.500h4M12 3.500a6 6 0 0 0-3.500 10.900c.600.500 1 1.200 1 2v.100h5v-.100c0-.800.400-1.500 1-2A6 6 0 0 0 12 3.500z'/%3E%3C/svg%3E"); }
.kb-content .kb-callout-warning { border-color: #f3dca6; background: #fffaec; color: #6f4406; }
.kb-content .kb-callout-warning::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b26a06' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4 3 19.500h18z'/%3E%3Cpath d='M12 10v4.500M12 17h.010'/%3E%3C/svg%3E"); }
.kb-content .kb-callout-danger { border-color: #f4c7c7; background: #fff3f3; color: #7f1d1d; }
.kb-content .kb-callout-danger::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b42323' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M8.300 3.500h7.400l4.800 4.800v7.400l-4.800 4.800H8.300l-4.800-4.800V8.300z' stroke-linejoin='round'/%3E%3Cpath d='M12 8v5M12 16.500h.010'/%3E%3C/svg%3E"); }
.kb-content .kb-callout strong { color: inherit; }
.kb-content .kb-callout a { color: inherit; }

/* what the public page adds to a body: a link beside a heading, a copy button on code */
.kb-anchor { position: absolute; inset-inline-end: 100%; top: auto; bottom: .1em; padding-inline: 6px; color: #b3c0d6 !important; font-weight: 400; text-decoration: none !important; opacity: 0; transition: opacity .15s; }
.kb-content h2:hover .kb-anchor, .kb-content h3:hover .kb-anchor, .kb-anchor:focus { opacity: 1; }
.kb-copy-code { position: absolute; top: 10px; right: 10px; height: 28px; padding: 0 10px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 8px; background: rgba(255, 255, 255, .08); color: #c8d5ee; font: 500 .74rem var(--kb-font); cursor: pointer; opacity: 0; transition: opacity .15s, background .15s; }
.kb-content pre:hover .kb-copy-code, .kb-copy-code:focus { opacity: 1; }
.kb-copy-code:hover { background: rgba(255, 255, 255, .18); }

@media (max-width: 1180px) {
  .kb-cols-3 { grid-template-columns: 230px minmax(0, 1fr); }
  .kb-toc { display: none; }
  .kb-toc-inline { display: block; }
}
@media (max-width: 860px) {
  :root { --kb-top: 58px; }
  .kb-wrap { padding-inline: 16px; }
  .kb-cols-2, .kb-cols-3 { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .kb-side { position: static; max-height: none; order: 2; padding-top: 24px; border-top: 1px solid var(--kb-line); }
  .kb-article { padding: 26px 20px; border-radius: 14px; }
  .kb-brand span { display: none; }
  .kb-search-top kbd, .kb-lang { display: none; }
  .kb-search-top input { padding-inline: 40px 12px; }
  .kb-search-top > svg { inset-inline-start: 12px; }
  .kb-top-in { gap: 12px; }
  .kb-hero-in { padding-block: 52px 60px; }
  .kb-search-hero input { height: 56px; padding-inline: 52px 16px; font-size: 1rem; }
  .kb-search-hero .kb-btn { display: none; }
  .kb-home { padding-block: 32px 56px; gap: 40px; }
  .kb-content { font-size: 1rem; }
  .kb-pager { grid-template-columns: 1fr; }
  .kb-anchor { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html:has(> body.kb) { scroll-behavior: auto; }
  .kb *, .kb *::before, .kb *::after { transition: none !important; }
}
@media print {
  .kb-top, .kb-side, .kb-toc, .kb-foot, .kb-feedback, .kb-pager, .kb-progress, .kb-crumbs { display: none !important; }
  .kb-article { border: 0; box-shadow: none; padding: 0; }
  .kb-cols { display: block; }
}
