/* ============================================================
   Khalasha — Static pages shell (FAQ, How-to-use, Terms, Privacy)
   Scoped under .kh-faq / .kh-howto / .kh-doc so CMS-pasted content
   cannot bleed out, and hostile inline styles get neutralized.
   ============================================================ */

/* ---------- Shared hero band ---------- */
.kh-hero {
    position: relative;
    background:
        radial-gradient(1200px 400px at 50% -100px, rgba(199,110,97,.10) 0%, transparent 60%),
        linear-gradient(180deg, var(--bg-overlay) 0%, #ffffff 100%);
    padding: 64px 0 56px;
    margin-bottom: 32px;
    border-bottom: 1px solid #ececec;
    overflow: hidden;
}
.kh-hero__inner {
    max-width: 960px;
    margin-inline: auto;
    padding-inline: 20px;
    text-align: center;
    position: relative;
    z-index: 1;
}
.kh-breadcrumb {
    font-size: 13px;
    color: var(--gray-bold-color);
    margin-bottom: 10px;
    opacity: .8;
}
.kh-breadcrumb a {
    color: var(--main-blue-color);
}
.kh-breadcrumb a:hover { text-decoration: underline; }
.kh-breadcrumb__sep { margin-inline: 6px; opacity: .6; }
.kh-hero__title {
    font-family: var(--main-font-bold);
    color: var(--main-brown-color);
    font-size: clamp(30px, 4.4vw, 46px);
    margin: 0 0 14px;
    line-height: 1.2;
    letter-spacing: -0.01em;
    width: auto;        /* override global h1 { width: max-content } */
    white-space: normal;
}
.kh-hero__title::after {
    content: "";
    display: block;
    width: 64px;
    height: 4px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--main-brown-color), var(--main-blue-color));
    margin: 16px auto 0;
}
.kh-hero__subtitle {
    color: var(--gray-bold-color);
    font-size: 16px;
    max-width: 680px;
    margin: 16px auto 0;
    line-height: 1.7;
}

/* ============================================================
   FAQ — search-first with topic chips + Bootstrap accordion
   ============================================================ */
.kh-faq {
    padding-bottom: 80px;
}
.kh-faq__source { display: none !important; }

.kh-faq__searchbar {
    position: sticky;
    top: 0;
    z-index: 5;
    background: #ffffffee;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 16px 0;
    border-bottom: 1px solid #ececec;
    margin-bottom: 24px;
}
.kh-faq__searchbar-inner {
    max-width: 820px;
    margin-inline: auto;
    padding-inline: 20px;
}
.kh-faq__search {
    position: relative;
}
.kh-faq__search-input {
    width: 100%;
    height: 52px;
    border-radius: 14px;
    border: 1.5px solid #e2e2e2;
    background: #fff;
    padding-inline-start: 52px;
    padding-inline-end: 16px;
    font-size: 16px;
    font-family: var(--main-font-normal);
    color: var(--gray-bold-color);
    transition: border-color .2s, box-shadow .2s;
}
.kh-faq__search-input:focus {
    outline: none;
    border-color: var(--main-blue-color);
    box-shadow: 0 0 0 4px rgba(98,140,165,.15);
}
.kh-faq__search-icon {
    position: absolute;
    inset-inline-start: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--main-blue-color);
    font-size: 18px;
    pointer-events: none;
}

.kh-faq__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}
.kh-faq__chip {
    border: 1.5px solid #dcdcdc;
    background: #fff;
    color: var(--gray-bold-color);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 13px;
    font-family: var(--main-font-bold);
    cursor: pointer;
    transition: all .2s;
}
.kh-faq__chip:hover {
    border-color: var(--main-blue-color);
    color: var(--main-blue-color);
}
.kh-faq__chip.is-active {
    background: var(--main-blue-color);
    border-color: var(--main-blue-color);
    color: #fff;
}

.kh-faq__list-wrap {
    max-width: 820px;
    margin-inline: auto;
    padding-inline: 20px;
}
.kh-faq__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.kh-faq__item {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 14px;
    overflow: hidden;
    transition: box-shadow .2s, border-color .2s;
}
.kh-faq__item:hover {
    border-color: #d8d8d8;
    box-shadow: 0 2px 14px rgba(0,0,0,.04);
}
.kh-faq__item.is-open {
    border-color: var(--main-blue-color);
    box-shadow: 0 4px 18px rgba(98,140,165,.12);
}
.kh-faq__q {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 18px 22px;
    background: transparent;
    border: 0;
    text-align: start;
    font-family: var(--main-font-bold);
    font-size: 16px;
    color: var(--main-brown-color);
    cursor: pointer;
    line-height: 1.5;
}
.kh-faq__q:focus-visible {
    outline: 2px solid var(--main-blue-color);
    outline-offset: -2px;
}
.kh-faq__q-text { flex: 1; }
.kh-faq__chevron {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--main-bg-gray);
    color: var(--main-blue-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
    transition: transform .25s, background .2s, color .2s;
}
.kh-faq__item.is-open .kh-faq__chevron {
    transform: rotate(180deg);
    background: var(--main-blue-color);
    color: #fff;
}
.kh-faq__a {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
}
.kh-faq__item.is-open .kh-faq__a {
    max-height: 1200px;
}
.kh-faq__a-inner {
    padding: 0 22px 20px;
    color: var(--gray-bold-color);
    font-size: 15px;
    line-height: 1.8;
    font-family: var(--main-font-normal);
}
.kh-faq__a-inner mark {
    background: rgba(199,110,97,.18);
    color: inherit;
    padding: 0 3px;
    border-radius: 3px;
}

.kh-faq__toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 18px 0 14px;
    font-size: 13px;
    color: var(--gray-bold-color);
}
.kh-faq__count[aria-live] { font-family: var(--main-font-bold); }
.kh-faq__expand-all {
    background: none;
    border: 0;
    color: var(--main-blue-color);
    cursor: pointer;
    font-family: var(--main-font-bold);
    font-size: 13px;
    padding: 4px 8px;
}
.kh-faq__expand-all:hover { text-decoration: underline; }

.kh-faq__empty {
    display: none;
    text-align: center;
    padding: 48px 20px;
    color: var(--gray-bold-color);
}
.kh-faq__empty.is-shown { display: block; }
.kh-faq__empty i {
    font-size: 42px;
    color: var(--main-blue-color);
    opacity: .5;
    margin-bottom: 14px;
}
.kh-faq__empty-title {
    font-family: var(--main-font-bold);
    font-size: 18px;
    color: var(--main-brown-color);
    margin-bottom: 6px;
}

/* ============================================================
   How-to-use — Audience tabs + vertical stepper
   ============================================================ */
.kh-howto {
    padding-bottom: 80px;
}
.kh-howto__source { display: none !important; }

.kh-howto__tabs {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0 auto 36px;
    max-width: 700px;
    padding-inline: 20px;
}
.kh-howto__tab {
    flex: 1 1 280px;
    min-height: 64px;
    border: 2px solid transparent;
    background: #fff;
    border-radius: 14px;
    padding: 14px 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: start;
    transition: all .25s;
    box-shadow: 0 2px 10px rgba(0,0,0,.04);
}
.kh-howto__tab:hover { transform: translateY(-2px); }
.kh-howto__tab-icon {
    width: 38px; height: 38px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
    color: #fff;
}
.kh-howto__tab[data-tab="blue"] .kh-howto__tab-icon { background: var(--main-blue-color); }
.kh-howto__tab[data-tab="brown"] .kh-howto__tab-icon { background: var(--main-brown-color); }
.kh-howto__tab-title {
    font-family: var(--main-font-bold);
    font-size: 16px;
    color: var(--gray-bold-color);
    line-height: 1.3;
}
.kh-howto__tab-sub {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}
.kh-howto__tab[data-tab="blue"].is-active {
    border-color: var(--main-blue-color);
    background: rgba(98,140,165,.06);
}
.kh-howto__tab[data-tab="brown"].is-active {
    border-color: var(--main-brown-color);
    background: rgba(199,110,97,.06);
}
.kh-howto__tab.is-active .kh-howto__tab-title {
    color: var(--gray-bold-color);
}

.kh-howto__panes {
    max-width: 980px;
    margin-inline: auto;
    padding-inline: 20px;
}
.kh-howto__pane { display: none; }
.kh-howto__pane.is-active { display: block; animation: kh-fade .35s ease; }
@keyframes kh-fade {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.kh-howto__timeline {
    position: relative;
    list-style: none;
    margin: 0;
    padding: 0;
}
/* The vertical rail — dashed, lane-color */
.kh-howto__timeline::before {
    content: "";
    position: absolute;
    top: 40px;
    bottom: 40px;
    inset-inline-start: 33px; /* center under the 68px badge */
    width: 0;
    border-inline-start: 2px dashed currentColor;
    opacity: .35;
}
.kh-howto__pane[data-tab="blue"] .kh-howto__timeline { color: var(--main-blue-color); }
.kh-howto__pane[data-tab="brown"] .kh-howto__timeline { color: var(--main-brown-color); }

.kh-howto__step {
    position: relative;
    padding-inline-start: 96px;
    padding-bottom: 36px;
    color: var(--gray-bold-color);
}
.kh-howto__step:last-child { padding-bottom: 0; }

/* Layered ring badge: outer thin ring + inner gradient circle + leading-zero numeral */
.kh-howto__step-num {
    position: absolute;
    inset-inline-start: 0;
    top: -2px;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    border: 2px solid currentColor;
    background: #fff;
    color: currentColor;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: transform .25s ease;
}
.kh-howto__step-num::before {
    content: "";
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, currentColor 0%, rgba(255,255,255,.45) 220%);
    box-shadow: 0 8px 22px -10px currentColor;
}
.kh-howto__pane[data-tab="blue"] .kh-howto__step-num::before {
    background: linear-gradient(135deg, var(--main-blue-color), #8aaec3);
}
.kh-howto__pane[data-tab="brown"] .kh-howto__step-num::before {
    background: linear-gradient(135deg, var(--main-brown-color), #d18a7f);
}
.kh-howto__step-num-text {
    position: relative;
    z-index: 1;
    color: #fff;
    font-family: var(--main-font-bold);
    font-size: 17px;
    letter-spacing: 0.04em;
    line-height: 1;
}

.kh-howto__step-card {
    background: #fff;
    border-radius: 16px;
    padding: 22px 26px;
    box-shadow: 0 2px 14px rgba(0,0,0,.05);
    border: 1px solid #ececec;
    display: flex;
    gap: 22px;
    align-items: flex-start;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.kh-howto__step:hover .kh-howto__step-card {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px -8px rgba(0,0,0,.12);
    border-color: currentColor;
}
.kh-howto__step:hover .kh-howto__step-num {
    transform: scale(1.04);
}
.kh-howto__step-img {
    flex-shrink: 0;
    width: 130px;
    max-width: 28%;
}
.kh-howto__step-img img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    background: var(--main-bg-gray);
}
.kh-howto__step-body { flex: 1; min-width: 0; }
.kh-howto__step-title {
    font-family: var(--main-font-bold);
    font-size: 18px;
    color: currentColor;
    margin: 0 0 10px;
    line-height: 1.4;
}
.kh-howto__step-body p {
    margin: 0 0 6px;
    color: var(--gray-bold-color);
    font-size: 15px;
    line-height: 1.75;
}
.kh-howto__step-body p:last-child { margin-bottom: 0; }

@media (max-width: 700px) {
    .kh-howto__step { padding-inline-start: 70px; padding-bottom: 28px; }
    .kh-howto__step-num { width: 52px; height: 52px; }
    .kh-howto__step-num::before { inset: 5px; }
    .kh-howto__step-num-text { font-size: 14px; }
    .kh-howto__timeline::before { inset-inline-start: 25px; top: 32px; bottom: 32px; }
    .kh-howto__step-card { flex-direction: column; padding: 16px; }
    .kh-howto__step-img { width: 100%; max-width: 180px; margin-inline: auto; }
}

/* ============================================================
   Legal docs (Terms + Privacy) — sticky sidebar TOC + modern prose
   ============================================================ */
.kh-doc-wrap {
    max-width: 1200px;
    margin-inline: auto;
    padding: 0 20px 80px;
}
.kh-doc-grid {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 56px;
    align-items: start;
}
@media (max-width: 980px) {
    .kh-doc-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* Sticky aside — offset clears the 75px fixed navbar */
.kh-doc__aside {
    position: sticky;
    top: 100px;
    align-self: start;
    max-height: calc(100vh - 130px);
    overflow-y: auto;
    padding-inline-end: 8px;
    scrollbar-width: thin;
}
.kh-doc__aside::-webkit-scrollbar { width: 6px; }
.kh-doc__aside::-webkit-scrollbar-thumb { background: #e0d8d4; border-radius: 3px; }

@media (max-width: 980px) {
    .kh-doc__aside {
        position: relative;
        top: 0;
        max-height: none;
    }
}

.kh-doc__toc-title {
    font-family: var(--main-font-bold);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--gray-bold-color);
    margin: 0 0 14px;
    padding-inline-start: 14px;
    opacity: .65;
}

/* TOC — numbered, modern, with sliding active state */
.kh-doc__toc {
    list-style: none;
    margin: 0;
    padding: 4px 0;
    counter-reset: kh-toc;
    border-inline-start: 2px solid #ececec;
}
.kh-doc__toc > li {
    counter-increment: kh-toc;
    margin: 0;
}
.kh-doc__toc > li > a {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 9px 14px;
    font-size: 14px;
    color: var(--gray-bold-color);
    line-height: 1.5;
    border-inline-start: 2px solid transparent;
    margin-inline-start: -2px;
    border-radius: 0 8px 8px 0;
    transition: color .2s ease, background .2s ease, border-color .2s ease, padding .2s ease;
    text-decoration: none;
}
html[dir="rtl"] .kh-doc__toc > li > a { border-radius: 8px 0 0 8px; }

.kh-doc__toc > li > a::before {
    content: counter(kh-toc, decimal-leading-zero);
    flex-shrink: 0;
    font-family: var(--main-font-bold);
    font-size: 10px;
    color: var(--main-blue-color);
    opacity: .5;
    width: 20px;
    padding-top: 2px;
    letter-spacing: .03em;
    transition: opacity .2s, color .2s;
}
.kh-doc__toc > li > a:hover {
    color: var(--main-blue-color);
    background: rgba(98,140,165,.05);
}
.kh-doc__toc > li > a:hover::before { opacity: .85; }
.kh-doc__toc > li > a.is-active {
    color: var(--main-brown-color);
    background: rgba(199,110,97,.08);
    border-inline-start-color: var(--main-brown-color);
    font-family: var(--main-font-bold);
}
.kh-doc__toc > li > a.is-active::before {
    color: var(--main-brown-color);
    opacity: 1;
}
.kh-doc__toc li.is-h3 > a { padding-inline-start: 30px; font-size: 13px; }

/* Mobile collapsible TOC */
.kh-doc__toc-mobile { display: none; }
@media (max-width: 980px) {
    .kh-doc__toc-mobile {
        display: block;
        background: #fff;
        border: 1px solid #efe7e2;
        border-radius: 14px;
        margin-bottom: 24px;
        overflow: hidden;
        box-shadow: 0 1px 2px rgba(0,0,0,.04);
    }
    .kh-doc__toc-mobile summary {
        padding: 14px 18px;
        font-family: var(--main-font-bold);
        color: var(--main-brown-color);
        cursor: pointer;
        list-style: none;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }
    .kh-doc__toc-mobile summary::-webkit-details-marker { display: none; }
    .kh-doc__toc-mobile summary::before {
        content: "\f0ca";
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        color: var(--main-blue-color);
        margin-inline-end: auto;
    }
    .kh-doc__toc-mobile summary::after {
        content: "\f078";
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        font-size: 12px;
        color: var(--main-blue-color);
        transition: transform .25s;
    }
    .kh-doc__toc-mobile[open] summary::after { transform: rotate(180deg); }
    .kh-doc__toc-mobile .kh-doc__toc {
        border-inline-start: none;
        padding: 4px 8px 14px;
    }
    .kh-doc__aside { display: none; }
}

.kh-doc__main { min-width: 0; }

.kh-doc__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    align-items: center;
    margin-bottom: 24px;
    font-size: 13px;
    color: var(--gray-bold-color);
}
.kh-doc__meta-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: linear-gradient(135deg, rgba(98,140,165,.10), rgba(98,140,165,.04));
    border: 1px solid rgba(98,140,165,.18);
    border-radius: 999px;
    padding: 7px 14px;
    color: var(--main-blue-color);
    font-family: var(--main-font-bold);
    font-size: 12px;
}
.kh-doc__meta-badge i { font-size: 12px; }
.kh-doc__print {
    margin-inline-start: auto;
    background: #fff;
    border: 1px solid #dcdcdc;
    border-radius: 999px;
    padding: 7px 16px;
    color: var(--gray-bold-color);
    font-size: 13px;
    font-family: var(--main-font-bold);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: all .2s;
}
.kh-doc__print:hover {
    border-color: var(--main-blue-color);
    color: var(--main-blue-color);
    background: rgba(98,140,165,.04);
}

/* === Prose container — modern card with accent stripe === */
.kh-doc__content {
    display: block; /* override global `article { display: none }` from index.css */
    position: relative;
    background: linear-gradient(180deg, #fffefb 0%, #ffffff 80%);
    border: 1px solid #efe7e2;
    border-radius: 22px;
    padding: 52px 56px;
    max-width: none;
    font-family: var(--main-font-normal);
    color: #333;
    font-size: 17px;
    line-height: 1.9;
    box-shadow:
        0 1px 2px rgba(0,0,0,.03),
        0 18px 40px -20px rgba(199,110,97,.18);
    counter-reset: kh-sec;
    overflow: hidden;
}
.kh-doc__content::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, var(--main-brown-color) 0%, var(--main-blue-color) 100%);
}
@media (max-width: 700px) {
    .kh-doc__content { padding: 30px 22px; font-size: 16px; }
}

/* === Neutralize hostile CKEditor/MS-Word inline styles === */
.kh-doc__content,
.kh-doc__content *,
.kh-doc__content *[style] {
    font-family: var(--main-font-normal) !important;
}
.kh-doc__content [style*="font-size"] { font-size: inherit !important; }
.kh-doc__content [style*="margin-right"],
.kh-doc__content [style*="margin-left"],
.kh-doc__content [style*="text-indent"],
.kh-doc__content [style*="margin-top"],
.kh-doc__content [style*="margin-bottom"] {
    margin-inline-start: 0 !important;
    margin-inline-end: 0 !important;
    text-indent: 0 !important;
}
.kh-doc__content [style*="color"] { color: inherit !important; }
.kh-doc__content [style*="background"] { background: transparent !important; }
.kh-doc__content o\:p { display: none; }
.kh-doc__content .MsoNormal { margin: 0 0 14px; line-height: inherit; }

/* Unwrap pasted <section class="container"> wrapper */
.kh-doc__content > section,
.kh-doc__content > .container { display: contents; }

/* Hide the duplicate H1 inside the content — hero already shows the title */
.kh-doc__content h1 { display: none; }

/* Default h2/h3 — treated as body text (the AR pages use <h2> for paragraphs).
   Only the JS-detected "real" headings (.kh-doc__heading) get heading styling. */
.kh-doc__content h2,
.kh-doc__content h4 {
    font-family: var(--main-font-normal) !important;
    font-weight: 400;
    font-size: inherit;
    color: #3a3a3a;
    margin: 0 0 14px;
    line-height: inherit;
    padding: 0;
    border: 0;
}

/* === The auto-numbered SECTION HEADING === */
.kh-doc__content h2.kh-doc__heading,
.kh-doc__content h3.kh-doc__heading,
.kh-doc__content h4.kh-doc__heading,
.kh-doc__content p.kh-doc__pseudo-heading {
    counter-increment: kh-sec;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    font-family: var(--main-font-bold) !important;
    font-size: 22px !important;
    color: var(--main-brown-color);
    font-weight: 700;
    margin: 44px 0 18px;
    padding-bottom: 14px;
    line-height: 1.35;
    border-bottom: 1px solid #efe7e2;
    scroll-margin-top: 110px;
}
.kh-doc__content h2.kh-doc__heading::before,
.kh-doc__content h3.kh-doc__heading::before,
.kh-doc__content h4.kh-doc__heading::before,
.kh-doc__content p.kh-doc__pseudo-heading::before {
    content: counter(kh-sec, decimal-leading-zero);
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--main-brown-color), #d18a7f);
    color: #fff;
    font-family: var(--main-font-bold) !important;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    letter-spacing: .03em;
    box-shadow: 0 6px 14px -4px rgba(199,110,97,.45);
}
.kh-doc__content p.kh-doc__pseudo-heading strong { font-weight: inherit; }
.kh-doc__content h2.kh-doc__heading:first-child,
.kh-doc__content h3.kh-doc__heading:first-child,
.kh-doc__content p.kh-doc__pseudo-heading:first-child { margin-top: 0; }

/* Non-promoted h3 still gets a subtle subhead treatment */
.kh-doc__content h3 {
    font-family: var(--main-font-bold) !important;
    font-size: 17px;
    color: var(--main-blue-color);
    margin: 28px 0 12px;
    scroll-margin-top: 110px;
    font-weight: 600;
    white-space: normal; /* override global h3 { white-space: nowrap } */
    line-height: 1.4;
}

.kh-doc__content p {
    margin: 0 0 14px;
    color: #444;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.9;
}
.kh-doc__content ul,
.kh-doc__content ol {
    margin: 6px 0 18px;
    padding-inline-start: 26px;
}
.kh-doc__content li {
    margin-bottom: 8px;
    color: #444;
}
.kh-doc__content ul li::marker { color: var(--main-blue-color); }
.kh-doc__content ol li::marker { color: var(--main-brown-color); font-family: var(--main-font-bold); }

/* MS-Word pastes wrap list text in <sub> — reset that */
.kh-doc__content li sub,
.kh-doc__content sub { vertical-align: baseline; font-size: inherit; }

.kh-doc__content a {
    color: var(--main-blue-color);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}
.kh-doc__content a:hover {
    color: var(--main-brown-color);
    text-decoration-thickness: 2px;
}
.kh-doc__content strong,
.kh-doc__content b {
    color: inherit;
    font-family: var(--main-font-bold) !important;
}

/* Heading anchor link — copy-to-clipboard */
.kh-doc__anchor {
    opacity: 0;
    margin-inline-start: auto;
    font-size: 12px;
    color: var(--main-blue-color);
    text-decoration: none;
    transition: opacity .15s;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(98,140,165,.08);
}
.kh-doc__content h2.kh-doc__heading:hover .kh-doc__anchor,
.kh-doc__content h3.kh-doc__heading:hover .kh-doc__anchor,
.kh-doc__content h4.kh-doc__heading:hover .kh-doc__anchor,
.kh-doc__content p.kh-doc__pseudo-heading:hover .kh-doc__anchor { opacity: .9; }
.kh-doc__anchor:hover { opacity: 1 !important; background: rgba(98,140,165,.18); }

/* Back to top button */
.kh-doc__top-btn {
    position: fixed;
    bottom: 24px;
    inset-inline-end: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 0;
    background: var(--main-blue-color);
    color: #fff;
    box-shadow: 0 4px 14px rgba(0,0,0,.2);
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 50;
    font-size: 16px;
}
.kh-doc__top-btn.is-shown { display: inline-flex; }
.kh-doc__top-btn:hover { background: var(--main-brown-color); }

/* Print stylesheet — clean version for printing legal docs */
@media print {
    .home-header-banner, footer, .kh-doc__aside, .kh-doc__toc-mobile,
    .kh-doc__top-btn, .kh-doc__print, .kh-doc__anchor, .kh-hero {
        display: none !important;
    }
    .kh-doc-grid { display: block; }
    .kh-doc__content { border: none; padding: 0; max-width: none; box-shadow: none; }
    body { background: #fff; }
}
