/* Knowledge base (/knowledge-base, sections and articles in ru, en, ro). Markup: includes/kb/page.php,
   script: assets/js/kb.js. Same design language as /hetzner-dedicated-servers and /rdp-dedicated-servers:
   Inter and JetBrains Mono, the neutral scale and the ABCD pink accent, a dark hero card. Each section has a
   tone (data-tone) that colours its icon, badges and summary box. Fonts: Inter and JetBrains Mono, SIL Open Font
   License (assets/fonts/catalog/LICENSE-*.txt). */

@font-face { font-family: "AbcdInter"; font-style: normal; font-weight: 100 900; font-display: swap;
    src: url("../fonts/catalog/inter-cyrillic-wght-normal.woff2") format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "AbcdInter"; font-style: normal; font-weight: 100 900; font-display: swap;
    src: url("../fonts/catalog/inter-latin-ext-wght-normal.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "AbcdInter"; font-style: normal; font-weight: 100 900; font-display: swap;
    src: url("../fonts/catalog/inter-latin-wght-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "AbcdMono"; font-style: normal; font-weight: 400; font-display: swap;
    src: url("../fonts/catalog/jetbrains-mono-latin-400-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2212; }
@font-face { font-family: "AbcdMono"; font-style: normal; font-weight: 500; font-display: swap;
    src: url("../fonts/catalog/jetbrains-mono-latin-500-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2212; }
/* Russian comments and ticket templates in code blocks keep the same monospace font (loaded only when used). */
@font-face { font-family: "AbcdMono"; font-style: normal; font-weight: 400; font-display: swap;
    src: url("../fonts/catalog/jetbrains-mono-cyrillic-400-normal.woff2") format("woff2");
    unicode-range: U+0400-045F; }

.kb,
.kb-zoom,
.kb-toast {
    --k-bg: #f5f6f8;
    --k-surface: #fff;
    --k-surface-2: #f8f9fb;
    --k-surface-3: #eef0f4;
    --k-border: #e4e7ec;
    --k-border-strong: #cfd4dc;
    --k-ink: #0f1218;
    --k-ink-2: #465063;
    --k-ink-3: #687184;
    --k-accent: #c2185b;
    --k-accent-hover: #a3134c;
    --k-accent-soft: #fdeef3;
    --k-accent-text: #b0124f;
    --k-glow: 194, 24, 91;
    --k-stage: #0d1016;
    --k-stage-2: #161a23;
    --k-stage-line: rgba(255, 255, 255, 0.11);
    --k-stage-ink-2: #c3c9d4;
    --k-stage-ink-3: #959eae;
    --k-code-bg: #0f1218;
    --k-code-ink: #e6e9ef;
    --k-focus: #0f1218;
    --k-info: #2445b5;
    --k-info-soft: #eef3ff;
    --k-warn: #8f4700;
    --k-warn-soft: #fff5e6;
    --k-danger: #b42318;
    --k-danger-soft: #fef0ee;
    --k-ok: #1e7a35;
    --k-ok-soft: #e9f6ec;
    /* Section tone, overridden by [data-tone]. */
    --k-tone: var(--k-accent);
    --k-tone-soft: var(--k-accent-soft);
    --k-tone-text: var(--k-accent-text);
    --k-sticky-top: 96px;
    --k-sans: "AbcdInter", Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --k-mono: "AbcdMono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-family: var(--k-sans);
    font-feature-settings: "cv11" 1;
    color: var(--k-ink);
    letter-spacing: 0;
    -webkit-font-smoothing: antialiased;
}

.kb [data-tone="start"],
.kb[data-tone="start"] { --k-tone: #c2185b; --k-tone-soft: #fdeef3; --k-tone-text: #b0124f; }
.kb [data-tone="hetzner"],
.kb[data-tone="hetzner"] { --k-tone: #d50c2d; --k-tone-soft: #fdecef; --k-tone-text: #b30a26; }
.kb [data-tone="ovh"],
.kb[data-tone="ovh"] { --k-tone: #1f4fd6; --k-tone-soft: #ebf0ff; --k-tone-text: #1a44bd; }
.kb [data-tone="windows"],
.kb[data-tone="windows"] { --k-tone: #0a6fc2; --k-tone-soft: #e7f2fb; --k-tone-text: #08609f; }
.kb [data-tone="network"],
.kb[data-tone="network"] { --k-tone: #1e7a35; --k-tone-soft: #e8f5ec; --k-tone-text: #1a6a2e; }
.kb [data-tone="billing"],
.kb[data-tone="billing"] { --k-tone: #8f4700; --k-tone-soft: #fff1dc; --k-tone-text: #7f3f00; }

.kb *,
.kb-zoom *,
.kb-toast * {
    box-sizing: border-box;
}

/* The theme sets Open Sans on headings and form controls with !important. */
html body .kb :is(h1, h2, h3, h4, button, input, select, textarea, table, th, td, summary),
html body :is(.kb-zoom, .kb-toast) :is(p, button) {
    font-family: var(--k-sans) !important;
    letter-spacing: 0;
}

.kb {
    display: block;
    overflow-x: clip;
    background: var(--k-bg);
    font-size: 15px;
    line-height: 1.55;
}

.kb :is(h1, h2, h3, h4) {
    margin: 0;
    color: var(--k-ink);
    font-family: var(--k-sans);
    text-transform: none;
    letter-spacing: -0.015em;
}

.kb :is(h1, h2) {
    text-wrap: balance;
}

.kb p {
    margin: 0;
}

.kb ul,
.kb ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

.kb a {
    text-decoration: none;
}

.kb :is(a, button, input, summary, [tabindex]):focus-visible,
.kb-zoom button:focus-visible {
    outline: 2px solid var(--k-focus) !important;
    outline-offset: 2px !important;
    box-shadow: none !important;
}

.kb-hero__stage,
.kb-help__card {
    --k-focus: #ffb3cf;
}

.kb :is(section, h2, h3, [id]) {
    scroll-margin-top: var(--k-sticky-top);
}

.kb-vh {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.kb-muted {
    color: var(--k-ink-3);
}

/* ---------------------------------------------------------------- Buttons and chips */

.kb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: var(--k-ink) !important;
    font: 600 14px/1.2 var(--k-sans);
    text-align: center;
    text-decoration: none !important;
    text-transform: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.kb-btn:active {
    transform: translateY(1px);
}

.kb-btn--primary {
    background: var(--k-accent);
    color: #fff !important;
}

.kb-btn--primary:hover {
    background: var(--k-accent-hover);
}

.kb-btn--ghost {
    border-color: var(--k-border-strong);
    background: var(--k-surface);
}

.kb-btn--ghost:hover {
    border-color: var(--k-ink-3);
}

.kb-btn--ghost[aria-pressed="true"] {
    border-color: var(--k-ink);
    background: var(--k-surface-3);
}

.kb-btn--glass {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.06);
    color: #fff !important;
}

.kb-btn--glass:hover {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.12);
}

.kb-btn--lg {
    min-height: 50px;
    padding: 0 24px;
    border-radius: 12px;
    font-size: 15px;
}

.kb-chip {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 4px 12px;
    border: 1px solid var(--k-stage-line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff !important;
    font-size: 13px;
    font-weight: 500;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.kb-chip:hover {
    border-color: rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.12);
}

/* ---------------------------------------------------------------- Breadcrumbs */

.kb-bc ol {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    color: var(--k-ink-3);
    font-size: 13px;
}

.kb-bc li {
    min-width: 0;
}

.kb-bc li + li::before {
    content: "/";
    margin-right: 4px;
    color: var(--k-border-strong);
}

.kb-bc a {
    color: var(--k-ink-2) !important;
}

.kb-bc a:hover {
    color: var(--k-accent-text) !important;
}

/* ---------------------------------------------------------------- Hero (hub, section, not found) */

.kb-hero {
    padding: 134px 0 8px;
}

.kb-hero .kb-bc ol {
    margin-bottom: 16px;
}

.kb-hero__stage {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 40px;
    align-items: center;
    padding: 44px 48px 44px;
    border-radius: 28px;
    background:
        radial-gradient(ellipse 55% 75% at 100% 0%, rgba(var(--k-glow), 0.38), transparent 70%),
        radial-gradient(ellipse 45% 60% at 0% 100%, rgba(0, 174, 239, 0.14), transparent 70%),
        linear-gradient(160deg, var(--k-stage-2) 0%, var(--k-stage) 60%);
    color: #fff;
    isolation: isolate;
}

.kb-hero__stage--section {
    grid-template-columns: minmax(0, 1fr);
    padding: 40px 48px;
}

.kb-hero__stage::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: radial-gradient(ellipse 70% 80% at 25% 20%, #000, transparent 75%);
    mask-image: radial-gradient(ellipse 70% 80% at 25% 20%, #000, transparent 75%);
    pointer-events: none;
}

.kb-hero__logo {
    display: block;
    width: auto;
    height: 52px;
    max-width: 100%;
    margin-bottom: 22px;
}

.kb-hero h1 {
    color: #fff;
    font-size: 44px;
    font-weight: 780;
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.kb-hero h1 span:not(.kb-vh) {
    display: block;
    margin-top: 6px;
    background: linear-gradient(90deg, #ff6fa3 0%, #8fd3ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.kb-hero--section h1 {
    font-size: 38px;
}

.kb-lead {
    max-width: 640px;
    margin-top: 16px !important;
    color: var(--k-stage-ink-2);
    font-size: 16px;
    line-height: 1.6;
}

.kb-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px !important;
    padding: 5px 12px 5px 6px;
    border: 1px solid var(--k-stage-line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--k-stage-ink-2);
    font-size: 13px;
    font-weight: 600;
}

.kb-eyebrow__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--k-tone);
    color: #fff;
    font-size: 11px;
}

.kb-hero__stats {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px !important;
    color: var(--k-ink-3);
    font-size: 13px;
}

.kb-hero__stats i {
    color: var(--k-accent-text);
}

/* Search */

.kb-search {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 640px;
    margin-top: 26px;
    border: 1px solid var(--k-border-strong);
    border-radius: 14px;
    background: var(--k-surface);
    box-shadow: 0 1px 2px rgba(15, 18, 24, 0.06);
}

.kb-search:focus-within {
    border-color: var(--k-ink-3);
    box-shadow: 0 0 0 4px rgba(var(--k-glow), 0.14);
}

.kb-hero .kb-search {
    border-color: transparent;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

/* The field itself has no outline (it sits inside the box), so the box shows the keyboard focus. */
.kb-search:has(.kb-search__input:focus-visible) {
    outline: 2px solid var(--k-focus);
    outline-offset: 2px;
}

.kb-search__icon {
    position: absolute;
    left: 16px;
    color: var(--k-ink-3);
    font-size: 15px;
    pointer-events: none;
}

html body .kb .kb-search__input {
    flex: 1;
    min-width: 0;
    height: 46px;
    margin: 0;
    padding: 0 12px 0 44px;
    border: 0;
    border-radius: 14px;
    outline: none;
    background: transparent;
    box-shadow: none;
    color: var(--k-ink);
    font-size: 15px;
}

html body .kb .kb-search--lg .kb-search__input {
    height: 56px;
    font-size: 16px;
}

.kb .kb-search__input:focus-visible {
    outline: none !important;
}

.kb-search__input::placeholder {
    color: var(--k-ink-3);
    opacity: 1;
}

.kb-search__input::-webkit-search-cancel-button {
    cursor: pointer;
}

.kb-search__btn {
    flex: none;
    height: 36px;
    margin-right: 6px;
    padding: 0 16px;
    border: 0;
    border-radius: 10px;
    background: var(--k-ink);
    color: #fff;
    font: 600 14px/1 var(--k-sans);
    cursor: pointer;
}

.kb-search--lg .kb-search__btn {
    height: 44px;
    padding: 0 20px;
    background: var(--k-accent);
}

.kb-search__btn:hover {
    filter: brightness(1.12);
}

.kb-search__panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 30;
    max-height: min(420px, 60vh);
    overflow-y: auto;
    padding: 6px;
    border: 1px solid var(--k-border);
    border-radius: 14px;
    background: var(--k-surface);
    box-shadow: 0 24px 48px rgba(15, 18, 24, 0.2);
    color: var(--k-ink);
    text-align: left;
}

.kb-search__opt {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--k-ink) !important;
    cursor: pointer;
}

.kb-search__opt b {
    display: block;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.35;
}

.kb-search__opt span {
    display: block;
    margin-top: 2px;
    color: var(--k-ink-3);
    font-size: 13px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kb-search__opt small {
    display: inline-block;
    margin-bottom: 2px;
    color: var(--k-tone-text);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.kb-search__opt mark {
    padding: 0;
    background: #fff1a8;
    color: inherit;
}

.kb-search__opt:hover,
.kb-search__opt[aria-selected="true"] {
    background: var(--k-surface-3);
}

.kb-search__none {
    padding: 12px;
    color: var(--k-ink-3);
    font-size: 14px;
}

.kb-popular {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
}

.kb-popular__label {
    color: var(--k-stage-ink-3);
    font-size: 13px;
}

/* Section doors on the right of the hub hero */

.kb-hero__side {
    display: grid;
    gap: 12px;
}

.kb-door {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    grid-template-areas:
        "icon title"
        "icon text"
        "icon meta";
    gap: 4px 14px;
    padding: 18px 20px;
    border: 1px solid var(--k-stage-line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff !important;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.kb-door:hover {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.09);
    transform: translateY(-2px);
}

.kb-door__icon {
    grid-area: icon;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--k-tone);
    color: #fff;
    font-size: 18px;
}

.kb-door__title {
    grid-area: title;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
}

.kb-door__text {
    grid-area: text;
    color: var(--k-stage-ink-2);
    font-size: 14px;
    line-height: 1.45;
}

.kb-door__meta {
    grid-area: meta;
    margin-top: 4px;
    color: var(--k-stage-ink-3);
    font-size: 13px;
    font-weight: 600;
}

.kb-door__meta i {
    margin-left: 4px;
    font-size: 11px;
}

/* ---------------------------------------------------------------- Blocks of the hub */

.kb-block {
    padding: 48px 0 0;
}

.kb-kicker {
    margin-bottom: 8px !important;
    color: var(--k-accent-text);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.kb-h2 {
    font-size: 30px;
    font-weight: 760;
    line-height: 1.15;
    letter-spacing: -0.025em;
}

.kb-h3 {
    font-size: 19px;
    font-weight: 700;
    line-height: 1.3;
}

.kb-block__lead {
    max-width: 680px;
    margin-top: 10px !important;
    color: var(--k-ink-2);
    font-size: 16px;
}

/* Search results without JavaScript */

.kb-results .kb-h2 {
    overflow-wrap: anywhere;
}

.kb-result-list {
    display: grid;
    gap: 10px;
    margin-top: 18px !important;
}

.kb-result-list a {
    display: block;
    padding: 16px 18px;
    border: 1px solid var(--k-border);
    border-radius: 14px;
    background: var(--k-surface);
    color: var(--k-ink) !important;
}

.kb-result-list a:hover {
    border-color: var(--k-border-strong);
}

.kb-result-list b {
    display: block;
    font-size: 16px;
}

.kb-result-list span {
    display: block;
    margin-top: 4px;
    color: var(--k-ink-2);
    font-size: 14px;
}

/* "Where to start": four numbered steps */

.kb-path {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 22px !important;
    counter-reset: none;
}

.kb-path a {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: 100%;
    padding: 20px 20px 22px;
    border: 1px solid var(--k-border);
    border-radius: 18px;
    background: var(--k-surface);
    color: var(--k-ink) !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.kb-path a:hover {
    border-color: var(--k-border-strong);
    box-shadow: 0 12px 28px rgba(15, 18, 24, 0.08);
    transform: translateY(-2px);
}

.kb-path li:not(:last-child) a::after {
    content: "";
    position: absolute;
    top: 37px;
    right: -15px;
    width: 16px;
    height: 2px;
    background: var(--k-border-strong);
}

.kb-path__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--k-ink);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
}

.kb-path__title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
}

.kb-path__text {
    color: var(--k-ink-2);
    font-size: 14px;
    line-height: 1.5;
}

/* Section cards */

.kb-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 22px;
}

.kb-sec {
    display: flex;
    flex-direction: column;
    padding: 22px 22px 14px;
    border: 1px solid var(--k-border);
    border-top: 3px solid var(--k-tone);
    border-radius: 18px;
    background: var(--k-surface);
}

.kb-sec__head {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    margin-bottom: 12px;
}

.kb-sec__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--k-tone-soft);
    color: var(--k-tone);
    font-size: 18px;
}

.kb-sec h3 {
    font-size: 18px;
    font-weight: 720;
    line-height: 1.3;
}

.kb-sec h3 a {
    color: var(--k-ink) !important;
}

.kb-sec h3 a:hover {
    color: var(--k-tone-text) !important;
}

.kb-sec__head p {
    margin-top: 4px !important;
    color: var(--k-ink-3);
    font-size: 13.5px;
    line-height: 1.45;
}

.kb-sec__list li + li {
    border-top: 1px solid var(--k-surface-3);
}

.kb-sec__list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 2px;
    color: var(--k-ink) !important;
    font-size: 14.5px;
    font-weight: 500;
    line-height: 1.4;
}

.kb-sec__list a::after {
    content: "\f054";
    flex: none;
    color: var(--k-border-strong);
    font: 900 10px/1 "Font Awesome 6 Free", "Font Awesome 5 Free";
    transition: color 0.15s ease, transform 0.15s ease;
}

.kb-sec__list a:hover {
    color: var(--k-tone-text) !important;
}

.kb-sec__list a:hover::after {
    color: var(--k-tone);
    transform: translateX(2px);
}

/* Article cards (section pages, related) */

.kb-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 4px !important;
}

.kb-cards--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 20px !important;
}

.kb-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: 100%;
    padding: 20px 22px;
    border: 1px solid var(--k-border);
    border-radius: 18px;
    background: var(--k-surface);
    color: var(--k-ink) !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.kb-card:hover {
    border-color: var(--k-border-strong);
    box-shadow: 0 12px 28px rgba(15, 18, 24, 0.08);
    transform: translateY(-2px);
}

.kb-card__sec {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--k-tone-text);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.kb-card__title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
}

.kb-card__text {
    color: var(--k-ink-2);
    font-size: 14px;
    line-height: 1.5;
}

.kb-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin-top: auto;
    padding-top: 6px;
    color: var(--k-ink-3);
    font-size: 13px;
}

.kb-card__meta i {
    margin-right: 6px;
}

.kb-other {
    margin-top: 36px;
}

.kb-other ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px !important;
}

.kb-other a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 6px 14px;
    border: 1px solid var(--k-border);
    border-radius: 999px;
    background: var(--k-surface);
    color: var(--k-ink) !important;
    font-size: 14px;
    font-weight: 600;
}

.kb-other a i {
    color: var(--k-tone);
}

.kb-other a:hover {
    border-color: var(--k-border-strong);
}

/* Help and servers */

.kb-help__card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px 40px;
    align-items: center;
    padding: 36px 40px;
    border-radius: 24px;
    background:
        radial-gradient(ellipse 60% 90% at 100% 0%, rgba(var(--k-glow), 0.32), transparent 70%),
        linear-gradient(160deg, var(--k-stage-2) 0%, var(--k-stage) 70%);
    color: #fff;
}

.kb-help__card .kb-h2 {
    color: #fff;
}

.kb-help__card p {
    max-width: 560px;
    margin-top: 10px !important;
    color: var(--k-stage-ink-2);
    font-size: 15.5px;
}

.kb-help__btns {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.kb-help__mail {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--k-stage-ink-2) !important;
    font-size: 14px;
}

.kb-help__mail:hover {
    color: #fff !important;
}

.kb-servers {
    padding-bottom: 72px;
}

.kb-servers__list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px !important;
}

.kb-servers__list a {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    height: 100%;
    padding: 14px 16px;
    border: 1px solid var(--k-border);
    border-radius: 14px;
    background: var(--k-surface);
    color: var(--k-ink) !important;
    transition: border-color 0.15s ease;
}

.kb-servers__list a:hover,
.kb-servers__list a.is-match {
    border-color: var(--k-tone);
}

.kb-servers__list i {
    margin-top: 3px;
    color: var(--k-tone);
    font-size: 16px;
}

.kb-servers__list b {
    display: block;
    font-size: 14.5px;
}

.kb-servers__list small {
    display: block;
    margin-top: 2px;
    color: var(--k-ink-3);
    font-size: 12.5px;
    line-height: 1.4;
}

/* ---------------------------------------------------------------- Article page */

.kb-topbar {
    padding: 128px 0 0;
}

.kb-topbar__in {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    padding-bottom: 18px !important;
    border-bottom: 1px solid var(--k-border);
}

.kb-topbar .kb-bc {
    min-width: 0;
    flex: 1 1 360px;
}

.kb-bc__current {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 42ch;
}

.kb-topbar .kb-search {
    flex: 0 1 380px;
    min-width: 0;
    margin-top: 0;
}

html body .kb .kb-topbar .kb-search__input {
    height: 42px;
}

.kb-topbar .kb-search__btn {
    height: 32px;
    margin-right: 5px;
    padding: 0 12px;
    font-size: 13px;
}

.kb-layout {
    display: grid;
    grid-template-columns: 236px minmax(0, 1fr) 220px;
    gap: 40px;
    align-items: start;
    padding-top: 32px !important;
}

/* The side columns run the full height of the article, so their sticky inner boxes have room to stick. */
.kb-nav,
.kb-toc {
    align-self: stretch;
}

/* Left: articles of the section */

.kb-nav__in {
    position: sticky;
    top: var(--k-sticky-top);
    max-height: calc(100vh - var(--k-sticky-top) - 16px);
    overflow-y: auto;
    padding-bottom: 16px;
    scrollbar-width: thin;
}

.kb-nav__title {
    margin-bottom: 8px !important;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.kb-nav__title a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--k-ink) !important;
}

.kb-nav__title i {
    color: var(--k-tone);
}

.kb-nav__title--other {
    margin-top: 26px !important;
    color: var(--k-ink-3);
}

.kb-nav ul a {
    display: block;
    padding: 7px 10px 7px 12px;
    border-left: 2px solid var(--k-border);
    color: var(--k-ink-2) !important;
    font-size: 14px;
    line-height: 1.4;
}

.kb-nav ul a:hover {
    border-left-color: var(--k-ink-3);
    color: var(--k-ink) !important;
}

.kb-nav ul a[aria-current="page"] {
    border-left-color: var(--k-tone);
    background: linear-gradient(90deg, var(--k-tone-soft), transparent);
    color: var(--k-ink) !important;
    font-weight: 650;
}

.kb-nav__other a {
    display: flex !important;
    align-items: center;
    gap: 8px;
    border-left-color: transparent !important;
}

.kb-nav__other i {
    width: 16px;
    color: var(--k-ink-3);
    text-align: center;
}

/* Right: table of contents */

.kb-toc__in {
    position: sticky;
    top: var(--k-sticky-top);
    max-height: calc(100vh - var(--k-sticky-top) - 16px);
    overflow-y: auto;
    scrollbar-width: thin;
}

.kb-toc__title {
    margin-bottom: 8px !important;
    color: var(--k-ink-3);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.kb-toc a {
    display: block;
    padding: 6px 0 6px 12px;
    border-left: 2px solid var(--k-border);
    color: var(--k-ink-3) !important;
    font-size: 13.5px;
    line-height: 1.4;
}

.kb-toc a:hover {
    color: var(--k-ink) !important;
}

.kb-toc a.is-active {
    border-left-color: var(--k-tone);
    color: var(--k-ink) !important;
    font-weight: 600;
}

.kb-toc-inline {
    display: none;
}

/* Center: the article */

.kb-article {
    min-width: 0;
    max-width: 780px;
}

.kb-article__head .kb-eyebrow {
    border-color: var(--k-border);
    background: var(--k-surface);
    color: var(--k-ink-2);
}

.kb-article h1 {
    font-size: 38px;
    font-weight: 780;
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.kb-article__head .kb-lead {
    max-width: none;
    color: var(--k-ink-2);
    font-size: 18px;
    line-height: 1.6;
}

.kb-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px !important;
}

.kb-meta li {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 12px;
    border: 1px solid var(--k-border);
    border-radius: 999px;
    background: var(--k-surface);
    color: var(--k-ink-2);
    font-size: 13px;
    font-weight: 500;
}

.kb-meta i {
    color: var(--k-ink-3);
}

.kb-summary {
    margin-top: 26px;
    padding: 20px 22px;
    border: 1px solid color-mix(in srgb, var(--k-tone) 22%, transparent);
    border-radius: 16px;
    background: var(--k-tone-soft);
}

.kb-summary__title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px !important;
    color: var(--k-tone-text) !important;
    font-size: 13px !important;
    font-weight: 750 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
}

.kb-summary li,
.kb-needs li {
    position: relative;
    padding-left: 24px;
    font-size: 15.5px;
    line-height: 1.55;
}

.kb-summary li + li,
.kb-needs li + li {
    margin-top: 6px;
}

.kb-summary li::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 0.62em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--k-tone);
}

.kb-needs {
    margin-top: 16px;
    padding: 18px 22px;
    border: 1px solid var(--k-border);
    border-radius: 16px;
    background: var(--k-surface);
}

.kb-needs__title {
    margin-bottom: 10px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
}

.kb-needs li::before {
    content: "\f00c";
    position: absolute;
    left: 0;
    top: 0.25em;
    color: var(--k-ok);
    font: 900 12px/1.4 "Font Awesome 6 Free", "Font Awesome 5 Free";
}

/* Article text */

.kb-prose {
    margin-top: 8px;
    color: var(--k-ink);
    font-size: 17px;
    line-height: 1.7;
}

.kb-prose > * + * {
    margin-top: 16px !important;
}

.kb-prose h2 {
    margin-top: 44px !important;
    font-size: 26px;
    font-weight: 750;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.kb-prose h3 {
    margin-top: 28px !important;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.35;
}

.kb-prose p,
.kb-prose li {
    color: var(--k-ink);
}

/* Article HTML outside .kb-prose (lead, "In short", "You will need") gets the same links and code. */
.kb-prose a,
.kb-summary a,
.kb-needs a,
.kb-article__head .kb-lead a {
    color: var(--k-accent-text) !important;
    text-decoration: underline !important;
    text-decoration-thickness: 1px !important;
    text-underline-offset: 3px;
}

.kb-prose a:hover,
.kb-summary a:hover,
.kb-needs a:hover,
.kb-article__head .kb-lead a:hover {
    text-decoration-thickness: 2px !important;
}

.kb-prose ul:not(.kb-steps) > li,
.kb-prose ol:not(.kb-steps) > li {
    position: relative;
    padding-left: 26px;
}

.kb-prose ul:not(.kb-steps) > li + li,
.kb-prose ol:not(.kb-steps) > li + li {
    margin-top: 8px;
}

.kb-prose ul:not(.kb-steps) > li::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 0.72em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--k-ink-3);
}

.kb-prose ol:not(.kb-steps) {
    counter-reset: kb-ol;
}

.kb-prose ol:not(.kb-steps) > li {
    counter-increment: kb-ol;
}

.kb-prose ol:not(.kb-steps) > li::before {
    content: counter(kb-ol) ".";
    position: absolute;
    left: 2px;
    color: var(--k-ink-3);
    font-weight: 700;
}

.kb-prose strong,
.kb-prose b {
    font-weight: 700;
}

.kb-prose code,
.kb-summary code,
.kb-needs code,
.kb-article__head .kb-lead code {
    padding: 2px 6px;
    border-radius: 6px;
    background: var(--k-surface-3);
    color: var(--k-ink);
    font-family: var(--k-mono);
    font-size: 0.86em;
    /* JetBrains Mono joins "--" and "->" into one sign: a reader would type an em dash instead of two hyphens. */
    font-variant-ligatures: none;
    word-break: break-word;
}

.kb-summary code {
    background: rgba(15, 18, 24, 0.07);
}

/* In a table a name such as Current_Pending_Sector stays whole: the table scrolls sideways instead. */
.kb-table code {
    word-break: normal;
}

/* A label of the provider's interface: a button, tab or menu item as the panel shows it. */
.kb-ui {
    display: inline-block;
    padding: 1px 8px;
    border: 1px solid var(--k-border-strong);
    border-bottom-width: 2px;
    border-radius: 6px;
    background: var(--k-surface);
    color: var(--k-ink);
    font-family: var(--k-sans);
    font-size: 0.88em;
    font-weight: 600;
    line-height: 1.5;
    /* A short label moves to the next line whole; only one longer than the line wraps inside its box. */
    max-width: 100%;
}

/* A path through menus: <span class="kb-crumbs"><span>Servers</span><span>Reset</span></span> */
.kb-crumbs {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 18px;
    vertical-align: baseline;
}

.kb-crumbs > span {
    position: relative;
    display: inline-block;
    padding: 1px 8px;
    border: 1px solid var(--k-border-strong);
    border-bottom-width: 2px;
    border-radius: 6px;
    background: var(--k-surface);
    font-size: 0.88em;
    font-weight: 600;
    line-height: 1.5;
    max-width: 100%;
}

.kb-crumbs > span + span::before {
    content: "\f054";
    position: absolute;
    left: -13px;
    top: 50%;
    color: var(--k-ink-3);
    font: 900 9px/1 "Font Awesome 6 Free", "Font Awesome 5 Free";
    transform: translateY(-50%);
}

/* Steps: <ol class="kb-steps"><li><h3>…</h3><p>…</p>…</li></ol> */
.kb-steps {
    counter-reset: kb-step;
    margin-top: 22px !important;
}

.kb-steps > li {
    position: relative;
    padding: 0 0 28px 56px;
    counter-increment: kb-step;
}

.kb-steps > li::before {
    content: counter(kb-step);
    position: absolute;
    left: 0;
    top: -2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--k-tone);
    color: #fff;
    font-size: 16px;
    font-weight: 750;
}

.kb-steps > li:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 17px;
    top: 40px;
    bottom: 4px;
    width: 2px;
    border-radius: 2px;
    background: var(--k-border);
}

.kb-steps > li > h3 {
    margin-top: 2px !important;
    font-size: 19px;
}

.kb-steps > li > * + * {
    margin-top: 12px !important;
}

/* Callouts: <div class="kb-note kb-note--warn"><p>…</p></div> (info, tip, warn, danger) */
.kb-note {
    position: relative;
    padding: 16px 18px 16px 50px;
    border: 1px solid var(--k-border);
    border-left: 4px solid var(--k-info);
    border-radius: 12px;
    background: var(--k-info-soft);
    font-size: 15.5px;
    line-height: 1.6;
}

.kb-note::before {
    content: "\f05a";
    position: absolute;
    left: 18px;
    top: 17px;
    color: var(--k-info);
    font: 900 18px/1.2 "Font Awesome 6 Free", "Font Awesome 5 Free";
}

.kb-note > * + * {
    margin-top: 8px !important;
}

.kb-note--tip {
    border-left-color: var(--k-ok);
    background: var(--k-ok-soft);
}

.kb-note--tip::before {
    content: "\f0eb";
    color: var(--k-ok);
}

.kb-note--warn {
    border-left-color: #d97706;
    background: var(--k-warn-soft);
}

.kb-note--warn::before {
    content: "\f071";
    color: #b45309;
}

.kb-note--danger {
    border-left-color: var(--k-danger);
    background: var(--k-danger-soft);
}

.kb-note--danger::before {
    content: "\f06a";
    color: var(--k-danger);
}

/* Code */
.kb-code {
    position: relative;
    margin: 0;
    padding: 16px 18px;
    overflow-x: auto;
    border-radius: 12px;
    background: var(--k-code-bg);
    color: var(--k-code-ink);
    font-family: var(--k-mono);
    font-size: 14px;
    font-variant-ligatures: none;
    line-height: 1.6;
    tab-size: 4;
    white-space: pre;
}

.kb-code code {
    padding: 0;
    background: none;
    color: inherit;
    font-size: inherit;
    word-break: normal;
}

.kb-code-box {
    position: relative;
}

.kb-code.has-copy {
    padding-top: 46px;
}

.kb-code__copy {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 30px;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #e6e9ef;
    font: 600 12px/1 var(--k-sans);
    cursor: pointer;
}

.kb-code__copy:hover {
    background: rgba(255, 255, 255, 0.16);
}

.kb-code__copy.is-done {
    border-color: rgba(105, 219, 124, 0.5);
    color: #8ce99a;
}

/* Screenshots */
.kb-shot {
    margin: 20px 0 0 !important;
}

.kb-shot__zoom {
    display: block;
    overflow: hidden;
    border: 1px solid var(--k-border-strong);
    border-radius: 12px;
    background: var(--k-surface);
    box-shadow: 0 10px 30px rgba(15, 18, 24, 0.08);
    cursor: zoom-in;
}

.kb-shot img {
    display: block;
    width: 100%;
    height: auto;
}

.kb-shot--small .kb-shot__zoom {
    max-width: 460px;
}

.kb-shot figcaption {
    margin-top: 10px;
    color: var(--k-ink-3);
    font-size: 14px;
    line-height: 1.5;
}

.kb-shot--missing .kb-shot__ph {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    padding: 20px;
    border: 2px dashed var(--k-border-strong);
    border-radius: 12px;
    background: repeating-linear-gradient(45deg, var(--k-surface-2), var(--k-surface-2) 10px, var(--k-surface-3) 10px, var(--k-surface-3) 20px);
    color: var(--k-ink-3);
    font-family: var(--k-mono);
    font-size: 13px;
    text-align: center;
}

/* Tables */
.kb-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--k-border);
    border-radius: 12px;
    background: var(--k-surface);
}

.kb-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    line-height: 1.5;
}

.kb-table th,
.kb-table td {
    padding: 11px 14px;
    border-bottom: 1px solid var(--k-border);
    text-align: left;
    vertical-align: top;
}

.kb-table th {
    background: var(--k-surface-2);
    color: var(--k-ink-2);
    font-size: 13px;
    font-weight: 700;
}

.kb-table tr:last-child td {
    border-bottom: 0;
}

/* Collapsible extra detail: <details class="kb-more"><summary>…</summary>…</details> */
.kb-more,
.kb-faq details {
    border: 1px solid var(--k-border);
    border-radius: 12px;
    background: var(--k-surface);
}

.kb-more > summary,
.kb-faq summary {
    position: relative;
    padding: 14px 44px 14px 18px;
    font-size: 16px;
    font-weight: 650;
    line-height: 1.45;
    list-style: none;
    cursor: pointer;
}

.kb-more > summary::-webkit-details-marker,
.kb-faq summary::-webkit-details-marker {
    display: none;
}

.kb-more > summary::after,
.kb-faq summary::after {
    content: "\f078";
    position: absolute;
    right: 18px;
    top: 18px;
    color: var(--k-ink-3);
    font: 900 12px/1 "Font Awesome 6 Free", "Font Awesome 5 Free";
    transition: transform 0.2s ease;
}

.kb-more[open] > summary::after,
.kb-faq details[open] summary::after {
    transform: rotate(180deg);
}

.kb-more > :not(summary),
.kb-faq details > div {
    padding: 0 18px 16px;
    font-size: 15.5px;
}

.kb-more > :not(summary) + :not(summary) {
    margin-top: 0 !important;
    padding-top: 0;
}

.kb-faq {
    display: grid;
    gap: 10px;
}

.kb-faq details > div > * + * {
    margin-top: 8px !important;
}

/* Feedback and support */

.kb-feedback {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 18px;
    margin-top: 44px;
    padding: 18px 22px;
    border: 1px solid var(--k-border);
    border-radius: 16px;
    background: var(--k-surface);
}

.kb-feedback__q {
    font-size: 16px;
    font-weight: 700;
}

.kb-feedback__btns {
    display: flex;
    gap: 10px;
}

.kb-feedback__done {
    flex-basis: 100%;
    color: var(--k-ink-2);
    font-size: 15px;
}

.kb-feedback__done .kb-btn {
    margin-top: 10px;
}

.kb-feedback__done .kb-feedback__q {
    margin-bottom: 10px;
    color: var(--k-ink);
    font-size: 15px;
}

.kb-feedback__reasons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.kb-reason {
    min-height: 36px;
    padding: 6px 14px;
    border: 1px solid var(--k-border);
    border-radius: 999px;
    background: var(--k-bg);
    color: var(--k-ink-2);
    font: inherit;
    font-size: 14px;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.kb-reason:hover {
    border-color: var(--k-ink-3);
    color: var(--k-ink);
}

.kb-reason[aria-pressed="true"] {
    border-color: var(--k-accent);
    background: var(--k-accent-soft);
    color: var(--k-accent-text);
}

.kb-reason:focus-visible {
    outline: 2px solid var(--k-accent);
    outline-offset: 2px;
}

.kb-support {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px 24px;
    align-items: center;
    margin-top: 16px;
    padding: 22px 24px;
    border-radius: 16px;
    background: var(--k-ink);
    color: #fff;
}

.kb-support__title {
    color: #fff !important;
    font-size: 18px !important;
    font-weight: 700 !important;
}

.kb-support p {
    margin-top: 4px !important;
    color: var(--k-stage-ink-2);
    font-size: 14.5px;
}

.kb-support__btns {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.kb-support .kb-btn--ghost {
    border-color: rgba(255, 255, 255, 0.25);
    background: transparent;
    color: #fff !important;
}

.kb-support .kb-btn--ghost:hover {
    border-color: rgba(255, 255, 255, 0.5);
}

.kb-support {
    --k-focus: #ffb3cf;
}

.kb-related {
    padding-top: 56px;
}

/* ---------------------------------------------------------------- Screenshot viewer and toast */

.kb-zoom {
    width: min(1400px, 96vw);
    max-width: none;
    max-height: 94vh;
    margin: auto;
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: 14px;
    background: transparent;
}

.kb-zoom::backdrop {
    background: rgba(8, 10, 14, 0.86);
}

.kb-zoom img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 86vh;
    object-fit: contain;
    border-radius: 12px;
    background: #fff;
}

.kb-zoom__cap {
    margin-top: 10px !important;
    color: #e6e9ef;
    font-size: 14px;
    text-align: center;
}

.kb-zoom__close {
    position: absolute;
    top: -14px;
    right: -14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: var(--k-ink);
    font-size: 18px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
    cursor: pointer;
}

.kb-toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 2000;
    max-width: calc(100vw - 32px);
    padding: 12px 18px;
    border-radius: 12px;
    background: var(--k-ink);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
    transform: translateX(-50%);
}

/* ---------------------------------------------------------------- Responsive */

@media (max-width: 1199.98px) {
    .kb-layout {
        grid-template-columns: 220px minmax(0, 1fr);
        gap: 36px;
    }

    .kb-toc {
        display: none;
    }

    .kb-toc-inline {
        display: block;
        margin-top: 16px;
        border: 1px solid var(--k-border);
        border-radius: 14px;
        background: var(--k-surface);
    }

    .kb-toc-inline summary {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 13px 18px;
        font-size: 15px;
        font-weight: 650;
        list-style: none;
        cursor: pointer;
    }

    .kb-toc-inline summary::-webkit-details-marker {
        display: none;
    }

    .kb-toc-inline summary i {
        color: var(--k-ink-3);
    }

    .kb-toc-inline ol {
        padding: 0 18px 14px 46px !important;
        list-style: decimal !important;
        color: var(--k-ink-3);
    }

    .kb-toc-inline li + li {
        margin-top: 6px;
    }

    .kb-toc-inline a {
        color: var(--k-ink-2) !important;
        font-size: 14.5px;
    }

    .kb-hero__stage {
        gap: 28px;
        padding: 40px;
    }

    .kb-hero h1 {
        font-size: 40px;
    }

    .kb-servers__list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .kb {
        --k-sticky-top: 80px;
    }

    .kb-hero {
        padding-top: 124px;
    }

    .kb-hero__stage {
        grid-template-columns: minmax(0, 1fr);
    }

    .kb-hero__side {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .kb-door {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "icon"
            "title"
            "text"
            "meta";
    }

    .kb-path {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .kb-path li:not(:last-child) a::after {
        display: none;
    }

    .kb-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .kb-topbar {
        padding-top: 124px;
    }

    .kb-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .kb-nav {
        order: 2;
        padding: 20px 22px;
        border: 1px solid var(--k-border);
        border-radius: 16px;
        background: var(--k-surface);
    }

    .kb-nav__in {
        position: static;
        max-height: none;
        overflow: visible;
        padding-bottom: 0;
    }

    .kb-article {
        max-width: none;
    }

    .kb-help__card {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 767.98px) {
    .kb-hero {
        padding-top: 108px;
    }

    .kb-hero__stage,
    .kb-hero__stage--section {
        padding: 28px 20px 26px;
        border-radius: 22px;
    }

    .kb-hero__logo {
        height: 40px;
        margin-bottom: 18px;
    }

    .kb-hero h1,
    .kb-hero--section h1 {
        font-size: 31px;
    }

    .kb-lead {
        font-size: 15.5px;
    }

    .kb-hero__side {
        grid-template-columns: minmax(0, 1fr);
    }

    .kb-door {
        grid-template-columns: 40px minmax(0, 1fr);
        grid-template-areas:
            "icon title"
            "icon text"
            "icon meta";
        padding: 14px 16px;
    }

    .kb-door__icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    html body .kb .kb-search--lg .kb-search__input {
        height: 52px;
        font-size: 16px;
    }

    html body .kb .kb-search__input {
        font-size: 16px;
    }

    .kb-search--lg .kb-search__btn {
        height: 40px;
        padding: 0 14px;
    }

    .kb-block {
        padding-top: 36px;
    }

    .kb-h2 {
        font-size: 25px;
    }

    .kb-path,
    .kb-grid,
    .kb-cards,
    .kb-cards--3 {
        grid-template-columns: minmax(0, 1fr);
    }

    .kb-path a {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        column-gap: 14px;
        padding: 16px 18px;
    }

    .kb-path__text {
        flex-basis: 100%;
    }

    .kb-sec {
        padding: 18px 18px 10px;
    }

    .kb-topbar {
        padding-top: 116px;
    }

    .kb-topbar .kb-search {
        flex: 1 1 100%;
    }

    .kb-bc__current {
        max-width: 24ch;
    }

    .kb-layout {
        padding-top: 22px !important;
    }

    .kb-article h1 {
        font-size: 29px;
    }

    .kb-article__head .kb-lead {
        font-size: 16.5px;
    }

    .kb-prose {
        font-size: 16px;
    }

    .kb-prose h2 {
        margin-top: 36px !important;
        font-size: 22px;
    }

    .kb-steps > li {
        padding-left: 46px;
    }

    .kb-steps > li::before {
        width: 32px;
        height: 32px;
        font-size: 15px;
    }

    .kb-steps > li:not(:last-child)::after {
        left: 15px;
        top: 36px;
    }

    .kb-steps > li > h3 {
        font-size: 17.5px;
    }

    /* Screenshots use the full width on phones. */
    .kb-steps .kb-shot {
        margin-left: -46px !important;
    }

    .kb-note {
        padding: 14px 14px 14px 44px;
    }

    .kb-note::before {
        left: 14px;
    }

    .kb-code {
        font-size: 13px;
    }

    /* Three or four columns squeezed into a phone leave a few letters per line: keep them readable and let the
       table scroll sideways in its wrapper instead. */
    .kb-table:has(tr > :nth-child(3)) {
        min-width: 560px;
    }

    .kb-table:has(tr > :nth-child(4)) {
        min-width: 680px;
    }

    .kb-support {
        grid-template-columns: minmax(0, 1fr);
        padding: 20px;
    }

    .kb-help__card {
        padding: 28px 22px;
        border-radius: 20px;
    }

    .kb-help__btns .kb-btn {
        flex: 1 1 100%;
    }

    .kb-servers__list {
        grid-template-columns: minmax(0, 1fr);
    }

    .kb-zoom__close {
        top: 8px;
        right: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .kb *,
    .kb *::before,
    .kb *::after {
        transition: none !important;
        animation: none !important;
    }
}

@media print {
    .kb-hero__stage,
    .kb-nav,
    .kb-toc,
    .kb-topbar .kb-search,
    .kb-feedback,
    .kb-support,
    .kb-related,
    .kb-servers,
    .kb-help {
        display: none !important;
    }

    .kb-layout {
        display: block;
    }

    .kb-code {
        white-space: pre-wrap;
    }
}
