        /* Keep the shared foundation header/footer correct even if the external CSS is cached or unavailable. */
        .foundation-header {
            display: flex !important;
            align-items: center !important;
            justify-content: space-between !important;
            flex-wrap: wrap !important;
            gap: 12px 24px !important;
            width: 100% !important;
            min-height: 64px !important;
            padding: 10px 20px !important;
            background: #fff !important;
            border-bottom: 1px solid #e7dccb !important;
            box-sizing: border-box !important;
        }
        .foundation-brand {
            display: flex !important;
            align-items: center !important;
            flex: 1 1 280px !important;
            min-width: 0 !important;
            gap: 12px !important;
        }
        .foundation-header img.foundation-logo {
            display: block !important;
            width: 48px !important;
            min-width: 48px !important;
            max-width: 48px !important;
            height: 42px !important;
            max-height: 42px !important;
            object-fit: contain !important;
            flex: 0 0 48px !important;
        }
        .foundation-name {
            color: #5a321a !important;
            font-family: "Noto Sans Devanagari", "Mangal", Arial, sans-serif !important;
            font-size: 17px !important;
            font-weight: 700 !important;
            line-height: 1.5 !important;
        }
        .chatbot-home-menu {
            display: flex !important;
            align-items: center !important;
            justify-content: flex-end !important;
            flex: 0 0 auto !important;
            margin-left: auto !important;
        }
        .chatbot-home-menu a {
            display: inline-flex !important;
            align-items: center !important;
            justify-content: center !important;
            min-height: 44px !important;
            padding: 9px 20px !important;
            border: 1px solid #d7b98d !important;
            border-radius: 8px !important;
            background: #7a3e18 !important;
            color: #fff7e8 !important;
            font-family: "Noto Sans Devanagari", "Mangal", Arial, sans-serif !important;
            font-size: 14px !important;
            font-weight: 700 !important;
            line-height: 1.4 !important;
            text-decoration: none !important;
            white-space: nowrap !important;
        }
        .chatbot-home-menu a:hover, .chatbot-home-menu a:focus {
            background: #5e2d12 !important;
            color: #fff !important;
        }
        .site-footer {
            display: block !important;
            width: 100% !important;
            margin-top: 30px !important;
            padding: 18px 10px !important;
            border-top: 1px solid #ddd !important;
            background: #fafafa !important;
            color: #666 !important;
            font-size: 14px !important;
            text-align: center !important;
            box-sizing: border-box !important;
        }
        .site-footer a { color: #7a421f !important; font-weight: bold !important; text-decoration: none !important; }
        @media (max-width: 480px) {
            .foundation-header { padding: 9px 12px !important; gap: 8px 10px !important; }
            .foundation-brand { flex: 1 1 100% !important; gap: 10px !important; }
            .foundation-header img.foundation-logo {
                width: 42px !important; min-width: 42px !important; max-width: 42px !important;
                height: 36px !important; max-height: 36px !important; flex-basis: 42px !important;
            }
            .foundation-name { font-size: 14px !important; }
            .chatbot-home-menu { width: 100% !important; justify-content: flex-end !important; }
            .chatbot-home-menu a { padding: 8px 16px !important; }
        }

body {
    margin: 0;
    padding: 0;
    background: #f5f2eb;
    color: #29251f;
    font-family: "Noto Sans Devanagari", "Mangal", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.7;
}
* { box-sizing: border-box; }
.kg-page { max-width: 1250px; margin: 0 auto; padding: 18px; }
.kg-header { background: #fff; border: 1px solid #e4ddd0; border-radius: 12px; padding: 18px 22px; margin-bottom: 18px; }
.kg-header h1 { margin: 0; color: #623d20; font-size: 29px; }
.kg-header p { margin: 4px 0 14px; color: #655d52; }
.kg-granth-category { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 2px 0 12px; }
.kg-granth-options { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 22px; }
.kg-granth-options label { display: inline-flex; align-items: center; gap: 6px; color: #3f3428; cursor: pointer; }
.kg-granth-options input[type="radio"] { accent-color: #80552f; width: 17px; height: 17px; margin: 0; }
.kg-granth-select { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.kg-select-label { color: #563315; font-weight: bold; }
.kg-select { min-width: 260px; max-width: 100%; padding: 9px 36px 9px 12px; border: 1px solid #cdbb9f; border-radius: 7px; background: #fffdfa; color: #29251f; font: inherit; }
.kg-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 18px; align-items: start; }
.kg-panel { background: #fff; border: 1px solid #e4ddd0; border-radius: 12px; padding: 18px; margin-bottom: 18px; }
.kg-panel h2 { margin: 0 0 10px; color: #623d20; font-size: 23px; }
.kg-concepts { position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow-y: auto; }
.kg-concept-search-wrap { position: sticky; top: -18px; z-index: 2; margin: -6px -6px 12px; padding: 8px 6px 10px; background: #fff; border-bottom: 1px solid #eee6da; }
.kg-search-label { display: block; margin-bottom: 5px; color: #563315; font-size: 14px; font-weight: bold; }
.kg-concept-search { display: block; width: 100%; min-width: 0; padding: 9px 11px; border: 1px solid #cdbb9f; border-radius: 7px; background: #fffdfa; color: #29251f; font: inherit; font-size: 15px; }
.kg-concept-search:focus { outline: 2px solid #a67b49; outline-offset: 1px; }
.kg-result-count { margin-top: 4px; color: #756b5f; font-size: 13px; }
.kg-category-group { margin: 0 0 7px; border: 1px solid #e8e0d4; border-radius: 8px; overflow: hidden; }
.kg-category-toggle { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; padding: 8px 10px; border: 0; background: #faf7f1; color: #563315; text-align: left; font: inherit; font-size: 15px; font-weight: bold; cursor: pointer; }
.kg-category-toggle:hover, .kg-category-toggle[aria-expanded="true"] { background: #f2e8d9; }
.kg-category-count { flex: 0 0 auto; min-width: 25px; padding: 0 7px; border-radius: 12px; background: #fff; color: #725635; text-align: center; font-size: 13px; }
.kg-category-concepts[hidden] { display: none; }
.kg-category-concepts { padding: 3px 5px 6px; }
.kg-concept-link { display: block; padding: 8px 10px; margin: 3px 0; border-radius: 7px; color: #3e352b; text-decoration: none; border: 1px solid transparent; }
.kg-concept-link:hover { background: #f7f0e5; border-color: #e5d5bd; }
.kg-concept-link.selected { background: #efe2ce; border-color: #d8bd98; color: #563315; font-weight: bold; }
.kg-concept-name { display: block; }
.kg-concept-ref-count { display: inline-block; margin-top: 1px; color: #877866; font-size: 12px; font-weight: normal; }
.kg-concept-link[hidden], .kg-category-group[hidden] { display: none; }
.kg-navigation { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 12px; padding-bottom: 10px; border-bottom: 1px solid #eee6da; }
.kg-back-link, .kg-all-link { display: inline-block; color: #69421e; text-decoration: none; font-weight: bold; padding: 6px 10px; border: 1px solid #e5d5bd; border-radius: 7px; background: #fbf7f0; }
.kg-back-link:hover, .kg-all-link:hover { background: #efe2ce; text-decoration: underline; }
.kg-small-heading { color: #81715e; font-size: 14px; }
.kg-selected h2 { font-size: 28px; margin: 3px 0 7px; }
.kg-description { margin: 0 0 8px; }
.kg-status { display: inline-block; color: #795a2d; background: #f8f1e5; border: 1px solid #ead9bd; border-radius: 5px; padding: 1px 8px; font-size: 13px; margin-top: 5px; }
.kg-help { margin: -5px 0 12px; color: #6d655b; font-size: 15px; }
.kg-related-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kg-related-item { display: flex; gap: 8px; border: 1px solid #e8e0d4; border-radius: 9px; padding: 11px; background: #fffdfa; min-width: 0; }
.kg-connector { color: #a47b4b; font-size: 22px; line-height: 1.3; }
.kg-related-content { min-width: 0; }
.kg-related-title { color: #69421e; font-weight: bold; text-decoration: none; font-size: 18px; }
.kg-related-title:hover { text-decoration: underline; }
.kg-relation-type { color: #765b3d; font-size: 14px; font-weight: bold; }
.kg-relation-description { color: #514a41; font-size: 15px; }
.kg-shlok { border-top: 1px solid #eee6da; padding: 15px 2px; }
.kg-shlok:first-of-type { border-top: 0; }
.kg-shlok-number { color: #795a2d; font-weight: bold; font-size: 15px; margin-bottom: 5px; }
.kg-shlok-text {
    font: 600 18px/1.8 "Nirmala UI", "Segoe UI", sans-serif;
    white-space: pre-line;
    color: #29251f;
}
.kg-tukaram-original-scroll { max-height: 300px; overflow-y: auto; overscroll-behavior: contain; padding: 12px 14px; border: 1px solid #e5dcc4; border-radius: 9px; background: #fffdf8; }
.kg-tukaram-original-scroll { max-height: 300px; overflow-y: auto; overscroll-behavior: contain; padding: 12px 14px; border: 1px solid #e5dcc4; border-radius: 9px; background: #fffdf8; }
.kg-bhavarth-heading { margin-top: 10px; color: #69421e; font-weight: bold; }
.kg-bhavarth { white-space: pre-line; color: #514a41; }
.kg-arth-button { margin-top: 9px; padding: 7px 12px; border: 1px solid #d8bd98; border-radius: 7px; background: #fbf7f0; color: #563315; font: inherit; font-size: 15px; cursor: pointer; }
.kg-arth-button:hover { background: #efe2ce; }
.kg-arth-source-loaded { display: none; }
.kg-arth-button:disabled { cursor: wait; opacity: .7; }
.kg-arth-result { margin-top: 8px; padding: 10px 12px; border-left: 3px solid #d8bd98; background: #fbf7f0; }
.kg-arth-result[hidden], .kg-arth-button[hidden] { display: none; }
.kg-empty { padding: 12px; background: #faf7f1; border-radius: 7px; color: #6d655b; }
.kg-error:empty { display: none; }
.kg-error { display: block; margin: 10px 0; padding: 10px; color: #8b1d1d; background: #fff0f0; border: 1px solid #e8bcbc; border-radius: 7px; overflow-wrap: anywhere; }
.kg-footer { color: #6d655b; font-size: 14px; padding: 0 5px 20px; }
@media (max-width: 800px) {
    .kg-page { padding: 10px; }
    .kg-layout { grid-template-columns: 1fr; }
    .kg-concepts { position: static; max-height: none; }
    .kg-related-list { grid-template-columns: 1fr; }
    .kg-header h1 { font-size: 24px; }
    .kg-panel { padding: 14px; }
    .kg-tukaram-original-scroll { max-height: 260px; padding: 10px; }
    .kg-tukaram-original-scroll { max-height: 260px; padding: 10px; }
    .kg-select { width: 100%; min-width: 0; }
    .kg-concept-search-wrap { top: 0; }
}
@media (max-width: 760px) {
    .kg-shlok-text { font-size: 16px; }
}
