/* Upendo Knowledge Base Viewer. Scoped to .kbv-root; inherits the theme's fonts and text color, follows the theme's Bootstrap
   variables when they exist, and styles its own buttons, fields, and boxes so it looks finished without Bootstrap's component CSS.
   The site theme's stylesheet loads after this one, so selectors are prefixed with .kbv-root where a theme rule could win. */

/* ---------- Tokens and shell ---------- */
.kbv-root {
    --kbv-line: var(--bs-border-color, #dee2e6);
    --kbv-field-line: color-mix(in srgb, currentColor 22%, transparent);
    --kbv-muted: var(--bs-secondary-color, #5f6577);
    --kbv-soft: var(--bs-tertiary-bg, rgba(0, 0, 0, .04));
    --kbv-accent: var(--bs-primary, #0d6efd);
    --kbv-accent-fg: #ffffff;
    --kbv-accent-soft: color-mix(in srgb, var(--kbv-accent) 9%, transparent);
    --kbv-surface: var(--bs-body-bg, #ffffff);
    --kbv-radius: 14px;
    --kbv-card-shadow: 0 1px 2px rgba(31, 36, 51, .05), 0 3px 12px rgba(31, 36, 51, .05);
    --kbv-shadow: 0 12px 28px rgba(31, 36, 51, .12);
    --kbv-hero-bg: linear-gradient(135deg, color-mix(in srgb, var(--kbv-accent) 13%, var(--kbv-surface)) 0%, color-mix(in srgb, var(--kbv-accent) 4%, var(--kbv-surface)) 60%, color-mix(in srgb, var(--kbv-accent) 9%, var(--kbv-surface)) 100%);
    --kbv-speed: .18s;
    --kbv-success: var(--bs-success-text-emphasis, #0f5132);
    --kbv-success-soft: var(--bs-success-bg-subtle, #d1e7dd);
    /* The sticky sidebar clears the site theme's sticky header. The default fits the runsonUpendo2026 header in its
       compact (scrolled) state; a theme with a taller or shorter header sets --kbv-header-offset. */
    --kbv-header-offset: 6rem;
    --kbv-sticky-top: calc(var(--kbv-header-offset) + 1rem);
    container-type: inline-size;
    container-name: kbv;
}
.kbv-root *, .kbv-root *::before, .kbv-root *::after { box-sizing: border-box; }
.kbv-root a:focus-visible, .kbv-root button:focus-visible, .kbv-root input:focus-visible { outline: 2px solid var(--kbv-accent); outline-offset: 2px; }
/* The site theme animates every property of links (transition: all); only colors, backgrounds, borders, shadows, and
   position change on hover here, never the text metrics. */
.kbv-root a, .kbv-root button { transition-property: color, background-color, border-color, box-shadow, text-decoration-color, opacity, transform, filter; transition-duration: var(--kbv-speed); transition-timing-function: ease; }
.kbv-root .kbv-icon { flex: none; font-size: .95em; line-height: 1; }
.kbv-root .visually-hidden, .kbv-root .sr-only, .kbv-root .kbv-live, .kbv-live { 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; }

/* ---------- Buttons and fields ---------- */
.kbv-root .kbv-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; font: inherit; font-size: 15px; font-weight: 600; line-height: 1.2; letter-spacing: normal; padding: 10px 18px; min-height: 42px; border-radius: 8px; border: 1px solid var(--kbv-accent); background: var(--kbv-accent); color: var(--kbv-accent-fg); cursor: pointer; text-decoration: none; white-space: nowrap; box-shadow: none; }
.kbv-root .kbv-btn:hover, .kbv-root .kbv-btn:focus-visible { filter: brightness(1.08); color: var(--kbv-accent-fg); text-decoration: none; }
.kbv-root .kbv-btn.kbv-btn-quiet { background: var(--kbv-surface); color: inherit; border-color: var(--kbv-field-line); }
.kbv-root .kbv-btn.kbv-btn-quiet:hover, .kbv-root .kbv-btn.kbv-btn-quiet:focus-visible { border-color: var(--kbv-accent); color: var(--kbv-accent); filter: none; }
.kbv-root .kbv-btn.kbv-btn-sm { font-size: 13px; padding: 5px 11px; min-height: 32px; gap: 6px; }
.kbv-root .kbv-btn[hidden] { display: none; }
.kbv-root .kbv-btn.kbv-copy.kbv-is-copied, .kbv-root .kbv-btn.kbv-copy.kbv-is-copied:hover { border-color: currentColor; background: var(--kbv-success-soft); color: var(--kbv-success); }
.kbv-root .kbv-input { display: block; width: 100%; font: inherit; font-size: 15px; line-height: 1.3; color: inherit; padding: 10px 14px; min-height: 42px; border: 1px solid var(--kbv-field-line); border-radius: 8px; background-color: var(--kbv-surface); box-shadow: none; margin: 0; }
.kbv-root .kbv-input:focus { border-color: var(--kbv-accent); box-shadow: 0 0 0 3px var(--kbv-accent-soft); outline: none; }

/* ---------- Layout ---------- */
.kbv-root .kbv-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; align-items: start; max-width: 1180px; }
.kbv-root .kbv-layout.kbv-has-aside { grid-template-columns: minmax(0, 1fr) 280px; gap: 2.25rem; }
.kbv-root .kbv { display: grid; gap: 1.5rem; min-width: 0; max-width: 860px; }
.kbv-note { margin: 0 0 1rem; font-size: .85rem; padding: .5rem .75rem; border: 1px solid #f0d9a2; border-radius: .5rem; background: #fff8e6; color: #6b4c00; }
.kbv-toolbar { display: flex; justify-content: flex-end; gap: .5rem; }
.kbv-banner { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; justify-content: space-between; padding: .65rem .9rem; border: 1px solid #f0d9a2; border-radius: .5rem; background: #fff8e6; color: #6b4c00; font-size: .9rem; }

/* ---------- Breadcrumbs and header ---------- */
.kbv-back { margin: 0; font-size: .9rem; }
.kbv-root .kbv-back a, .kbv-root .kbv-listing-link { display: inline-flex; align-items: center; gap: .4rem; color: var(--kbv-accent); text-decoration: none; }
.kbv-root .kbv-back a:hover, .kbv-root .kbv-listing-link:hover { text-decoration: underline; }
.kbv-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem; font-size: .875rem; color: var(--kbv-muted); }
.kbv-crumbs li { margin: 0; }
.kbv-root .kbv-crumbs li + li::before { content: "\203A"; margin-right: .35rem; opacity: .6; }
.kbv-root .kbv-crumbs a { color: inherit; text-decoration: none; }
.kbv-root .kbv-crumbs a:hover, .kbv-root .kbv-crumbs a:focus-visible { color: var(--kbv-accent); text-decoration: underline; }
.kbv-crumbs [aria-current] { color: var(--bs-body-color, inherit); }
/* The last crumb links to the article itself; it reads as the current page (body color, semibold) until hovered. */
.kbv-root .kbv-crumbs a[aria-current] { color: var(--bs-body-color, inherit); font-weight: 600; }
.kbv-root .kbv-header { display: grid; gap: .7rem; padding: 1.6rem 1.75rem; border: 1px solid color-mix(in srgb, var(--kbv-accent) 15%, var(--kbv-line)); border-radius: calc(var(--kbv-radius) + 4px); background: var(--kbv-hero-bg); }
.kbv-root .kbv-title { margin: 0; overflow-wrap: anywhere; font-size: clamp(1.75rem, 1.35rem + 1.6vw, 2.2rem); font-weight: 700; line-height: 1.15; letter-spacing: -.01em; }
.kbv-root .kbv-category { justify-self: start; display: inline-flex; align-items: center; gap: .4rem; padding: .22rem .75rem; border: 1px solid color-mix(in srgb, var(--kbv-accent) 28%, transparent); border-radius: 999px; background: var(--kbv-surface); color: var(--kbv-accent); font-size: .75rem; font-weight: 700; line-height: 1.4; text-transform: uppercase; letter-spacing: .05em; }
.kbv-root a.kbv-category-link, .kbv-root a.kbv-category-link:hover, .kbv-root a.kbv-category-link:focus-visible { text-decoration: none; font-size: .75rem; font-weight: 700; line-height: 1.4; letter-spacing: .05em; transform: none; }
.kbv-root a.kbv-category-link:hover, .kbv-root a.kbv-category-link:focus-visible { border-color: var(--kbv-accent); background: var(--kbv-accent); color: var(--kbv-accent-fg); }
.kbv-root .kbv-lead { margin: 0; font-size: 1.2rem; line-height: 1.5; color: inherit; opacity: .78; }
.kbv-root .kbv-meta { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .85rem; color: var(--kbv-muted); }
.kbv-root .kbv-meta-item { display: inline-flex; align-items: center; gap: .4rem; }
.kbv-root .kbv-meta-item .kbv-icon { color: var(--kbv-accent); }
.kbv-hero { margin: 0; }
.kbv-root .kbv-hero img { display: block; width: 100%; max-width: 100%; height: auto; max-height: 420px; object-fit: cover; border-radius: var(--kbv-radius); box-shadow: var(--kbv-card-shadow); }

/* ---------- Article body ---------- */
.kbv-root .kbv-body { overflow-wrap: anywhere; font-size: 1.04rem; line-height: 1.7; }
.kbv-root .kbv-body > :first-child { margin-top: 0; }
.kbv-root .kbv-body img, .kbv-root .kbv-body video, .kbv-root .kbv-body iframe { max-width: 100%; height: auto; }
.kbv-root .kbv-body img { border-radius: .6rem; }
.kbv-root .kbv-body h2 { font-size: 1.45rem; line-height: 1.3; margin: 2rem 0 .65rem; padding-bottom: .4rem; border-bottom: 1px solid var(--kbv-line); }
.kbv-root .kbv-body h3 { font-size: 1.2rem; line-height: 1.35; margin: 1.5rem 0 .45rem; }
.kbv-root .kbv-body h4 { font-size: 1.05rem; line-height: 1.4; margin: 1.25rem 0 .4rem; }
.kbv-root .kbv-body p { margin: 0 0 1rem; }
.kbv-root .kbv-body ul, .kbv-root .kbv-body ol { margin: 0 0 1rem; padding-left: 1.5rem; }
.kbv-root .kbv-body li + li { margin-top: .3rem; }
.kbv-root .kbv-body li::marker { color: var(--kbv-accent); }
.kbv-root .kbv-body ol > li::marker { font-weight: 700; }
.kbv-root .kbv-body a:not([class]) { color: var(--kbv-accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.kbv-root .kbv-body a:not([class]):hover { text-decoration-thickness: 2px; }
.kbv-root .kbv-body a[data-kb-article] { text-decoration-style: dotted; }
.kbv-root .kbv-body hr { margin: 1.75rem 0; border: 0; border-top: 1px solid var(--kbv-line); }
/* Blockquotes read as tip callouts with an "i" badge (drawn in CSS, so it needs no icon font). */
.kbv-root .kbv-body blockquote { position: relative; margin: 0 0 1.15rem; padding: .9rem 1.1rem .9rem 3.2rem; border: 1px solid color-mix(in srgb, var(--kbv-accent) 22%, var(--kbv-line)); border-left: 4px solid var(--kbv-accent); border-radius: .65rem; background: var(--kbv-accent-soft); }
.kbv-root .kbv-body blockquote::before { content: "i"; position: absolute; left: .95rem; top: 1rem; display: grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--kbv-accent); color: var(--kbv-accent-fg); font-size: .85rem; font-style: normal; font-weight: 700; line-height: 1; }
.kbv-root .kbv-body blockquote > :last-child { margin-bottom: 0; }
.kbv-root .kbv-body code { padding: .1rem .35rem; border-radius: .3rem; background: var(--kbv-soft); font-size: .9em; }
.kbv-root .kbv-body pre { overflow-x: auto; padding: .9rem 1.1rem; border: 1px solid var(--kbv-line); border-radius: .6rem; background: var(--kbv-soft); font-size: .9rem; line-height: 1.55; }
.kbv-root .kbv-body pre code { padding: 0; background: none; font-size: inherit; }
.kbv-root .kbv-body table { display: block; width: 100%; max-width: 100%; overflow-x: auto; margin: 0 0 1.15rem; border-collapse: collapse; font-size: .95rem; }
.kbv-root .kbv-body th, .kbv-root .kbv-body td { border: 1px solid var(--kbv-line); padding: .55rem .8rem; text-align: left; vertical-align: top; }
.kbv-root .kbv-body th { background: color-mix(in srgb, var(--kbv-accent) 9%, var(--kbv-surface)); font-weight: 600; }
.kbv-root .kbv-body tbody tr:nth-child(even) > td { background: var(--kbv-soft); }

/* ---------- Topics ---------- */
.kbv-root .kbv-tags { display: flex; flex-wrap: wrap; gap: .5rem .6rem; align-items: center; font-size: .875rem; color: var(--kbv-muted); }
.kbv-root .kbv-tags-label { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; }
.kbv-tag-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.kbv-root .kbv-tag-list li { margin: 0; }
.kbv-root .kbv-tag-list a, .kbv-root .kbv-tag-list span { display: inline-block; font-size: .78rem; font-weight: 500; line-height: 1.5; letter-spacing: normal; padding: .15rem .7rem; border: 1px solid var(--kbv-line); border-radius: 999px; background: var(--kbv-surface); color: inherit; text-decoration: none; }
.kbv-root .kbv-tag-list a { color: var(--kbv-accent); cursor: pointer; }
.kbv-root .kbv-tag-list a:hover, .kbv-root .kbv-tag-list a:focus-visible { border-color: color-mix(in srgb, var(--kbv-accent) 45%, transparent); background: var(--kbv-accent-soft); color: var(--kbv-accent); font-size: .78rem; font-weight: 500; text-decoration: none; transform: none; }
.kbv-root .kbv-tag-list a:active { background: color-mix(in srgb, var(--kbv-accent) 16%, transparent); }

/* ---------- Downloads ---------- */
.kbv-section { border-top: 1px solid var(--kbv-line); padding-top: 1.15rem; }
.kbv-root .kbv-section h2 { margin: 0 0 .8rem; font-size: 1.15rem; line-height: 1.3; }
.kbv-root .kbv-section-title { display: flex; align-items: center; gap: .5rem; }
.kbv-root .kbv-section-title .kbv-icon { color: var(--kbv-accent); }
.kbv-root .kbv-files { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .75rem; }
.kbv-root .kbv-files li { margin: 0; }
.kbv-root .kbv-files a { display: flex; gap: .85rem; align-items: center; height: 100%; padding: .75rem .9rem; border: 1px solid var(--kbv-line); border-radius: .8rem; background: var(--kbv-surface); box-shadow: var(--kbv-card-shadow); color: inherit; text-decoration: none; }
.kbv-root .kbv-files a:hover, .kbv-root .kbv-files a:focus-visible { border-color: var(--kbv-accent); box-shadow: var(--kbv-shadow); transform: translateY(-2px); text-decoration: none; }
.kbv-root .kbv-files b { display: block; overflow-wrap: anywhere; color: var(--kbv-accent); font-weight: 600; line-height: 1.35; }
.kbv-root .kbv-files small { display: block; color: var(--kbv-muted); font-size: .8rem; line-height: 1.4; }
.kbv-root .kbv-file-text { display: grid; gap: .1rem; flex: 1 1 auto; min-width: 0; }
.kbv-root .kbv-ext { flex: none; display: grid; place-items: center; align-content: center; gap: .2rem; width: 3rem; height: 3rem; border-radius: .65rem; background: var(--kbv-accent-soft); color: var(--kbv-accent); font-size: .62rem; font-weight: 700; line-height: 1; text-transform: uppercase; letter-spacing: .04em; }
.kbv-root .kbv-ext i { font-size: 1.15rem; line-height: 1; }
.kbv-root .kbv-file-dl { flex: none; color: var(--kbv-muted); }
.kbv-root .kbv-files a:hover .kbv-file-dl, .kbv-root .kbv-files a:focus-visible .kbv-file-dl { color: var(--kbv-accent); }

/* ---------- Previous and next ---------- */
.kbv-prevnext { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.kbv-root .kbv-prevnext a { display: grid; gap: .3rem; align-content: start; padding: .9rem 1.1rem; border: 1px solid var(--kbv-line); border-radius: .8rem; background: var(--kbv-surface); box-shadow: var(--kbv-card-shadow); color: inherit; text-decoration: none; }
.kbv-root .kbv-prevnext a:hover, .kbv-root .kbv-prevnext a:focus-visible { border-color: var(--kbv-accent); box-shadow: var(--kbv-shadow); background: color-mix(in srgb, var(--kbv-accent) 4%, var(--kbv-surface)); text-decoration: none; }
.kbv-root .kbv-prevnext small { display: inline-flex; align-items: center; gap: .4rem; color: var(--kbv-muted); font-size: .75rem; font-weight: 700; line-height: 1.4; text-transform: uppercase; letter-spacing: .06em; }
.kbv-root .kbv-prevnext b { color: var(--kbv-accent); font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.kbv-root .kbv-next { grid-column: 2; text-align: right; }
.kbv-root .kbv-next small { justify-content: flex-end; }

/* ---------- Sidebar: shareable link and related articles ----------
   The whole sidebar column sticks below the theme's sticky header on wide screens (see the responsive block); the
   panels inside it stay static. Each related entry is one block link with its own line height, so the theme's
   content-list spacing doesn't apply. */
.kbv-root .kbv-aside { display: grid; gap: 1rem; align-content: start; align-self: start; min-width: 0; }
.kbv-root .kbv-share { display: grid; gap: .65rem; padding: 1rem; border: 1px solid color-mix(in srgb, var(--kbv-accent) 30%, var(--kbv-line)); border-radius: var(--kbv-radius); background: var(--kbv-accent-soft); }
.kbv-root .kbv-share .kbv-share-heading { display: flex; align-items: center; gap: .5rem; margin: 0; font-size: 1rem; line-height: 1.3; }
.kbv-root .kbv-share-heading .kbv-icon { color: var(--kbv-accent); }
.kbv-root .kbv-share-url-row { display: flex; align-items: center; gap: .5rem; min-width: 0; padding: .4rem .6rem; border: 1px solid var(--kbv-line); border-radius: 8px; background: var(--kbv-surface); }
.kbv-root .kbv-share-url-row .kbv-icon { color: var(--kbv-accent); }
.kbv-root .kbv-share-url { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--bs-font-monospace, monospace); font-size: 12.5px; line-height: 1.4; }
.kbv-root .kbv-share-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.kbv-root .kbv-share-actions .kbv-btn { flex: 1 1 auto; }
.kbv-root .kbv-share-actions .kbv-btn[hidden] { display: none; }
.kbv-root .kbv-related { position: static; display: grid; gap: .5rem; padding: 1.1rem 1rem; border: 1px solid var(--kbv-line); border-radius: var(--kbv-radius); background: var(--kbv-surface); box-shadow: var(--kbv-card-shadow); }
.kbv-root .kbv-related .kbv-related-heading { display: flex; align-items: center; gap: .5rem; margin: 0; padding: 0 .4rem .65rem; border-bottom: 1px solid var(--kbv-line); font-size: 1.05rem; line-height: 1.3; }
.kbv-root .kbv-related-heading .kbv-icon { color: var(--kbv-accent); }
.kbv-root .kbv-related .kbv-related-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .2rem; }
.kbv-root .kbv-related .kbv-related-item { position: static; display: block; margin: 0; padding: 0; line-height: 1.4; }
.kbv-root .kbv-related .kbv-related-link { position: relative; display: grid; gap: .2rem; padding: .6rem .65rem; border-radius: .6rem; background: transparent; box-shadow: none; color: inherit; text-decoration: none; }
.kbv-root .kbv-related .kbv-related-link:hover, .kbv-root .kbv-related .kbv-related-link:focus-visible { background: var(--kbv-accent-soft); box-shadow: none; color: inherit; text-decoration: none; }
.kbv-root .kbv-related .kbv-related-title { display: block; color: var(--kbv-accent); font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.kbv-root .kbv-related .kbv-related-link:hover .kbv-related-title { text-decoration: underline; }
.kbv-root .kbv-related .kbv-related-summary { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; color: var(--kbv-muted); font-size: .85rem; line-height: 1.45; }

/* ---------- Unavailable ---------- */
.kbv-root .kbv-empty { display: grid; gap: .85rem; justify-items: center; text-align: center; padding: 2.5rem 1.25rem; border: 1px dashed var(--kbv-field-line); border-radius: var(--kbv-radius); background: color-mix(in srgb, var(--kbv-accent) 3%, var(--kbv-surface)); color: var(--kbv-muted); }
.kbv-root .kbv-empty .kbv-title { color: var(--bs-body-color, inherit); font-size: 1.6rem; }
.kbv-empty p { margin: 0; }
.kbv-search { display: flex; flex-wrap: wrap; gap: .5rem; width: 100%; max-width: 32rem; }
.kbv-search .kbv-input { flex: 1 1 14rem; width: auto; min-width: 0; }

/* ---------- Responsive, motion, print ---------- */
@container kbv (max-width: 900px) {
    .kbv-root .kbv-layout.kbv-has-aside { grid-template-columns: minmax(0, 1fr); }
}
/* Desktop only (the theme's compact sticky header applies from 1200px): the sidebar stays in view while the article
   scrolls and scrolls on its own when it is taller than the window. It has no z-index, so the theme's header, menus,
   and dropdowns stay above it. The padding and negative margin keep card shadows and focus outlines from being clipped. */
@media (min-width: 1200px) and (min-height: 560px) {
    @container kbv (min-width: 901px) {
        .kbv-root .kbv-layout.kbv-has-aside > .kbv-aside { position: sticky; top: var(--kbv-sticky-top); max-height: calc(100vh - var(--kbv-sticky-top) - 1rem); overflow-y: auto; overscroll-behavior: contain; padding: 6px; margin: -6px; scrollbar-width: thin; }
    }
}
@container kbv (max-width: 560px) {
    .kbv-root .kbv-header { padding: 1.15rem 1.1rem; }
    .kbv-prevnext { grid-template-columns: minmax(0, 1fr); }
    .kbv-root .kbv-next { grid-column: auto; }
}
@media (max-width: 767.98px) {
    .kbv-root .kbv-layout.kbv-has-aside { grid-template-columns: minmax(0, 1fr); }
    .kbv-prevnext { grid-template-columns: minmax(0, 1fr); }
    .kbv-root .kbv-next { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
    .kbv-root a, .kbv-root button { transition: none; }
    .kbv-root .kbv-files a:hover, .kbv-root .kbv-files a:focus-visible { transform: none; }
}
@media print {
    .kbv-toolbar, .kbv-banner, .kbv-prevnext, .kbv-related, .kbv-share, .kbv-search { display: none !important; }
    .kbv-root .kbv-header { background: none; border: 0; padding: 0; }
}

/* =====================================================================
   Named themes. The Viewer uses the website-wide Knowledge Base theme chosen in the Knowledge Base Listing's
   Configure listing > Display (one theme for every Listing and Viewer on the website). The root gets the modifier class
   kbv--theme-{name}; _default (kbv--theme-default) is the look above and none of these rules reach it. Each theme
   reuses the palette, shapes, and signature details of the same theme in the Blog Viewer, Blog Article List, and
   Hotcakes Product List modules, and matches the Knowledge Base Listing's theme of the same name. Themed panels set
   their own text color, so a theme reads the same on light and dark site themes. Selectors start with
   .kbv-root.kbv--theme-{name} so they outrank the shared .kbv-root rules.
   ===================================================================== */

/* ---------- Beach: sea teal and warm sand, sunlit gradients, soft pill shapes, a teal-to-sand wave rule ---------- */
.kbv-root.kbv--theme-beach {
    --kbv-accent: #0b7285;
    --kbv-accent-fg: #ffffff;
    --kbv-accent-soft: rgba(11, 114, 133, .1);
    --kbv-line: rgba(0, 105, 148, .22);
    --kbv-field-line: rgba(11, 114, 133, .38);
    --kbv-muted: #56676c;
    --kbv-soft: #eaf8fb;
    --kbv-surface: #ffffff;
    --kbv-radius: 18px;
    --kbv-card-shadow: 0 .75rem 1.75rem rgba(11, 114, 133, .1);
    --kbv-shadow: 0 18px 42px rgba(11, 114, 133, .16);
    --kbv-theme-ink: #173f4f;
    --kbv-theme-title: #0b6b88;
    --kbv-theme-sand: #f4c27a;
    --kbv-theme-card-bg: linear-gradient(180deg, #ffffff 0%, #fffaf4 100%);
    --kbv-theme-wave: linear-gradient(90deg, #0b6b88, #f5b86f);
}
.kbv-root.kbv--theme-beach .kbv-btn { border-radius: 999px; }
.kbv-root.kbv--theme-beach .kbv-btn:not(.kbv-btn-quiet):hover, .kbv-root.kbv--theme-beach .kbv-btn:not(.kbv-btn-quiet):focus-visible { background: #08556d; border-color: #08556d; filter: none; }
.kbv-root.kbv--theme-beach .kbv-input { border-radius: 999px; padding-inline: 18px; background-color: #ffffff; color: var(--kbv-theme-ink); }
/* Header: the Blog Viewer's Beach hero (sun glow, aqua-to-cream gradient, wave rule) with its wave mark. */
.kbv-root.kbv--theme-beach .kbv-header { position: relative; overflow: hidden; padding: 1.75rem 1.9rem 2.1rem; border: 1px solid rgba(11, 107, 136, .16); border-radius: 22px; background: radial-gradient(circle at top right, rgba(245, 184, 111, .38), transparent 32%), linear-gradient(135deg, rgba(234, 248, 251, .98), rgba(255, 251, 242, .98)); box-shadow: 0 18px 40px rgba(11, 107, 136, .1); color: var(--kbv-theme-ink); }
.kbv-root.kbv--theme-beach .kbv-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--kbv-theme-wave); pointer-events: none; }
.kbv-root.kbv--theme-beach .kbv-theme-mark { position: absolute; top: 1.1rem; right: 1.2rem; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: rgba(244, 194, 122, .45); color: var(--kbv-theme-title); font-size: 1.05rem; }
.kbv-root.kbv--theme-beach .kbv-header > .kbv-title, .kbv-root.kbv--theme-beach .kbv-header > .kbv-category { margin-right: 3rem; }
.kbv-root.kbv--theme-beach .kbv-title { color: var(--kbv-theme-title); }
.kbv-root.kbv--theme-beach .kbv-lead { color: var(--kbv-theme-ink); opacity: .85; }
.kbv-root.kbv--theme-beach .kbv-category { border-color: transparent; background: rgba(11, 114, 133, .1); color: var(--kbv-accent); letter-spacing: .08em; }
.kbv-root.kbv--theme-beach .kbv-hero img { border-bottom: 5px solid var(--kbv-theme-sand); box-shadow: var(--kbv-card-shadow); }
.kbv-root.kbv--theme-beach .kbv-crumbs a:hover, .kbv-root.kbv--theme-beach .kbv-crumbs a:focus-visible { color: var(--kbv-accent); }
/* Article body: teal headings over sand rules, aqua tip callouts with a sand badge, aqua table heads. */
.kbv-root.kbv--theme-beach .kbv-body h2 { border-bottom: 3px solid rgba(244, 194, 122, .75); color: var(--kbv-theme-title); }
.kbv-root.kbv--theme-beach .kbv-body h3, .kbv-root.kbv--theme-beach .kbv-body h4 { color: var(--kbv-theme-ink); }
.kbv-root.kbv--theme-beach .kbv-body blockquote { border-color: rgba(11, 107, 136, .2); border-left-color: var(--kbv-accent); border-radius: 16px; background: linear-gradient(135deg, #eaf8fb, #fffaf4); color: var(--kbv-theme-ink); }
.kbv-root.kbv--theme-beach .kbv-body blockquote::before { background: var(--kbv-theme-sand); color: var(--kbv-theme-ink); }
.kbv-root.kbv--theme-beach .kbv-body code { background: #eaf8fb; color: #0b5566; }
.kbv-root.kbv--theme-beach .kbv-body pre { border-color: rgba(11, 107, 136, .2); border-radius: 14px; background: #f3fbfc; color: var(--kbv-theme-ink); }
.kbv-root.kbv--theme-beach .kbv-body pre code { background: none; color: inherit; }
.kbv-root.kbv--theme-beach .kbv-body th { background: #eaf8fb; color: var(--kbv-theme-ink); }
.kbv-root.kbv--theme-beach .kbv-body tbody tr:nth-child(even) > td { background: #fffaf4; }
/* Topics, downloads, previous and next: sunlit cards with the sand rule. */
.kbv-root.kbv--theme-beach .kbv-tag-list a { border-color: rgba(11, 107, 136, .35); color: var(--kbv-theme-title); }
.kbv-root.kbv--theme-beach .kbv-tag-list a:hover, .kbv-root.kbv--theme-beach .kbv-tag-list a:focus-visible { border-color: var(--kbv-accent); background: var(--kbv-accent); color: var(--kbv-accent-fg); }
.kbv-root.kbv--theme-beach .kbv-section { border-top: 3px solid rgba(244, 194, 122, .6); }
.kbv-root.kbv--theme-beach .kbv-section h2 { color: var(--kbv-theme-title); }
.kbv-root.kbv--theme-beach .kbv-files a { border-bottom: 3px solid var(--kbv-theme-sand); border-radius: 16px; background: var(--kbv-theme-card-bg); color: var(--kbv-theme-ink); }
.kbv-root.kbv--theme-beach .kbv-ext { border-radius: 50%; background: rgba(244, 194, 122, .4); color: var(--kbv-theme-title); }
.kbv-root.kbv--theme-beach .kbv-prevnext a { border-bottom: 3px solid var(--kbv-theme-sand); border-radius: 16px; background: var(--kbv-theme-card-bg); color: var(--kbv-theme-ink); }
.kbv-root.kbv--theme-beach .kbv-prevnext a:hover, .kbv-root.kbv--theme-beach .kbv-prevnext a:focus-visible { background: linear-gradient(180deg, #eaf8fb, #fffaf4); }
.kbv-root.kbv--theme-beach .kbv-prevnext b { color: var(--kbv-theme-title); }
/* Sidebar: the Blog Viewer's Beach widget for the share card and related articles. */
.kbv-root.kbv--theme-beach .kbv-share, .kbv-root.kbv--theme-beach .kbv-related { border: 1px solid rgba(11, 107, 136, .14); border-radius: 16px; background: linear-gradient(180deg, rgba(234, 248, 251, .8), rgba(255, 255, 255, .95)); box-shadow: var(--kbv-card-shadow); color: var(--kbv-theme-ink); }
.kbv-root.kbv--theme-beach .kbv-share-url-row { border-color: rgba(244, 194, 122, .9); border-radius: 999px; background: #fff7ea; }
.kbv-root.kbv--theme-beach .kbv-related .kbv-related-heading { border-bottom: 3px solid rgba(244, 194, 122, .7); color: var(--kbv-theme-title); }
.kbv-root.kbv--theme-beach .kbv-related .kbv-related-link { border-radius: 12px; }
.kbv-root.kbv--theme-beach .kbv-related .kbv-related-link:hover, .kbv-root.kbv--theme-beach .kbv-related .kbv-related-link:focus-visible { background: rgba(11, 114, 133, .1); }
.kbv-root.kbv--theme-beach .kbv-related .kbv-related-title { color: var(--kbv-theme-title); }
.kbv-root.kbv--theme-beach .kbv-empty { border: 1px solid rgba(11, 107, 136, .16); border-radius: 22px; background: radial-gradient(circle at top right, rgba(245, 184, 111, .3), transparent 35%), linear-gradient(180deg, rgba(234, 248, 251, .9), rgba(255, 255, 255, .95)); color: var(--kbv-muted); }
.kbv-root.kbv--theme-beach .kbv-empty .kbv-title { color: var(--kbv-theme-title); }

/* ---------- Industrial: charcoal steel plates, amber safety accents, square corners, offset shadows, hazard rules ---------- */
.kbv-root.kbv--theme-industrial {
    --kbv-accent: #b45309;
    --kbv-accent-fg: #ffffff;
    --kbv-accent-soft: rgba(180, 83, 9, .1);
    --kbv-line: #adb5bd;
    --kbv-field-line: #6c757d;
    --kbv-muted: #565e64;
    --kbv-soft: #f1f3f5;
    --kbv-surface: #f8f9fa;
    --kbv-radius: 3px;
    --kbv-card-shadow: .35rem .35rem 0 rgba(33, 37, 41, .16);
    --kbv-shadow: .5rem .5rem 0 rgba(33, 37, 41, .22);
    --kbv-theme-steel: #32373d;
    --kbv-theme-frame: #343a40;
    --kbv-theme-ink: #212529;
    --kbv-theme-plate: #f4f1ec;
    --kbv-theme-seam: #d4cec4;
    --kbv-theme-hazard: repeating-linear-gradient(90deg, #b45309 0 20px, transparent 20px 30px);
}
.kbv-root.kbv--theme-industrial .kbv-btn { border-radius: 2px; border-color: var(--kbv-theme-steel); background: var(--kbv-theme-steel); color: #ffffff; font-weight: 700; }
.kbv-root.kbv--theme-industrial .kbv-btn:not(.kbv-btn-quiet):hover, .kbv-root.kbv--theme-industrial .kbv-btn:not(.kbv-btn-quiet):focus-visible { background: #1f2327; border-color: #1f2327; color: #ffffff; filter: none; }
.kbv-root.kbv--theme-industrial .kbv-btn.kbv-btn-quiet { background: #ffffff; color: var(--kbv-theme-ink); border-color: var(--kbv-field-line); }
.kbv-root.kbv--theme-industrial .kbv-btn.kbv-btn-quiet:hover, .kbv-root.kbv--theme-industrial .kbv-btn.kbv-btn-quiet:focus-visible { border-color: var(--kbv-theme-steel); background: var(--kbv-theme-plate); color: var(--kbv-theme-ink); }
.kbv-root.kbv--theme-industrial .kbv-btn.kbv-copy.kbv-is-copied, .kbv-root.kbv--theme-industrial .kbv-btn.kbv-copy.kbv-is-copied:hover { border-color: currentColor; background: var(--kbv-success-soft); color: var(--kbv-success); }
.kbv-root.kbv--theme-industrial .kbv-input { border-width: 2px; border-color: var(--kbv-theme-frame); border-radius: 2px; background-color: #ffffff; color: var(--kbv-theme-ink); }
/* Header: the Blog Viewer's Industrial header (warm plate, amber edge on the left) with the list modules' 2px frame
   and offset shadow, a tool mark, and the hazard rule under it (Templates/Industrial/Article.html). */
.kbv-root.kbv--theme-industrial .kbv-header { position: relative; padding: 1.5rem 1.6rem; border: 2px solid var(--kbv-theme-frame); border-left: .45rem solid var(--kbv-accent); border-radius: 0; background: linear-gradient(135deg, rgba(244, 241, 236, .96), rgba(255, 255, 255, .96)); box-shadow: var(--kbv-card-shadow); color: var(--kbv-theme-ink); }
.kbv-root.kbv--theme-industrial .kbv-theme-mark { position: absolute; top: 1rem; right: 1rem; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 2px; background: #212529; color: #ffc107; font-size: 1rem; }
.kbv-root.kbv--theme-industrial .kbv-header > .kbv-title, .kbv-root.kbv--theme-industrial .kbv-header > .kbv-category { margin-right: 3rem; }
.kbv-root.kbv--theme-industrial .kbv-rule { height: 5px; margin-top: -.5rem; background: var(--kbv-theme-hazard); }
.kbv-root.kbv--theme-industrial .kbv-title { color: var(--kbv-theme-steel); font-size: clamp(1.55rem, 1.2rem + 1.3vw, 2rem); font-weight: 800; letter-spacing: .02em; text-transform: uppercase; }
.kbv-root.kbv--theme-industrial .kbv-lead { color: #343a40; opacity: 1; }
.kbv-root.kbv--theme-industrial .kbv-category { border: 1px solid rgba(33, 37, 41, .25); border-radius: 2px; background: #fff3cd; color: #7c2d12; letter-spacing: .08em; }
.kbv-root.kbv--theme-industrial a.kbv-category-link:hover, .kbv-root.kbv--theme-industrial a.kbv-category-link:focus-visible { border-color: var(--kbv-theme-steel); background: var(--kbv-theme-steel); color: #ffffff; }
.kbv-root.kbv--theme-industrial .kbv-meta { font-size: .78rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.kbv-root.kbv--theme-industrial .kbv-hero img { border: 2px solid var(--kbv-theme-frame); border-radius: 0; box-shadow: var(--kbv-card-shadow); }
.kbv-root.kbv--theme-industrial .kbv-crumbs { font-weight: 600; letter-spacing: .03em; text-transform: uppercase; }
.kbv-root.kbv--theme-industrial .kbv-crumbs ol { font-size: .78rem; }
/* Article body: heavy uppercase section heads over charcoal rules, plate callouts with an amber edge, a shop-floor
   terminal for code, and charcoal table heads. */
.kbv-root.kbv--theme-industrial .kbv-body h2 { border-bottom: 2px solid var(--kbv-theme-frame); color: var(--kbv-theme-steel); font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
.kbv-root.kbv--theme-industrial .kbv-body h3, .kbv-root.kbv--theme-industrial .kbv-body h4 { color: var(--kbv-theme-ink); font-weight: 800; }
.kbv-root.kbv--theme-industrial .kbv-body blockquote { border: 1px solid var(--kbv-theme-seam); border-left: .45rem solid var(--kbv-accent); border-radius: 0; background: var(--kbv-theme-plate); color: var(--kbv-theme-ink); }
.kbv-root.kbv--theme-industrial .kbv-body blockquote::before { border-radius: 2px; background: #212529; color: #ffc107; }
.kbv-root.kbv--theme-industrial .kbv-body blockquote a:not([class]) { color: #7c2d12; }
.kbv-root.kbv--theme-industrial .kbv-body img { border-radius: 0; }
.kbv-root.kbv--theme-industrial .kbv-body code { border-radius: 2px; background: #e9ecef; color: #212529; }
.kbv-root.kbv--theme-industrial .kbv-body pre { border: 2px solid var(--kbv-theme-frame); border-radius: 0; background: #212529; color: #f8f9fa; box-shadow: var(--kbv-card-shadow); }
.kbv-root.kbv--theme-industrial .kbv-body pre code { background: none; color: inherit; }
.kbv-root.kbv--theme-industrial .kbv-body th { background: var(--kbv-theme-steel); color: #ffffff; font-size: .85rem; letter-spacing: .05em; text-transform: uppercase; }
.kbv-root.kbv--theme-industrial .kbv-body th, .kbv-root.kbv--theme-industrial .kbv-body td { border-color: var(--kbv-line); }
/* Topics, downloads, previous and next: framed steel plates with offset shadows. */
.kbv-root.kbv--theme-industrial .kbv-tag-list a, .kbv-root.kbv--theme-industrial .kbv-tag-list span { border-radius: 2px; background: #ffffff; color: var(--kbv-theme-ink); font-weight: 600; }
.kbv-root.kbv--theme-industrial .kbv-tag-list a:hover, .kbv-root.kbv--theme-industrial .kbv-tag-list a:focus-visible { border-color: var(--kbv-theme-steel); background: var(--kbv-theme-steel); color: #ffffff; }
.kbv-root.kbv--theme-industrial .kbv-section { border-top: 2px solid var(--kbv-theme-frame); }
.kbv-root.kbv--theme-industrial .kbv-section h2 { color: var(--kbv-theme-steel); font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.kbv-root.kbv--theme-industrial .kbv-files a { border: 2px solid var(--kbv-theme-frame); border-radius: 3px; color: var(--kbv-theme-ink); }
.kbv-root.kbv--theme-industrial .kbv-files a:hover, .kbv-root.kbv--theme-industrial .kbv-files a:focus-visible { border-color: var(--kbv-theme-frame); transform: translate(-2px, -2px); }
.kbv-root.kbv--theme-industrial .kbv-files b { color: var(--kbv-theme-ink); font-weight: 800; }
.kbv-root.kbv--theme-industrial .kbv-ext { border-radius: 2px; background: #212529; color: #ffc107; }
.kbv-root.kbv--theme-industrial .kbv-prevnext a { border: 2px solid var(--kbv-theme-frame); border-radius: 3px; color: var(--kbv-theme-ink); }
.kbv-root.kbv--theme-industrial .kbv-prevnext a:hover, .kbv-root.kbv--theme-industrial .kbv-prevnext a:focus-visible { border-color: var(--kbv-theme-frame); background: #ffffff; transform: translate(-2px, -2px); }
.kbv-root.kbv--theme-industrial .kbv-prevnext small { color: var(--kbv-accent); }
.kbv-root.kbv--theme-industrial .kbv-prevnext b { color: var(--kbv-theme-ink); font-weight: 800; }
/* Sidebar: the Blog Viewer's Industrial widget (plate, seam border, amber top edge). */
.kbv-root.kbv--theme-industrial .kbv-share, .kbv-root.kbv--theme-industrial .kbv-related { border: 1px solid var(--kbv-theme-seam); border-top: .35rem solid var(--kbv-accent); border-radius: 0; background: var(--kbv-theme-plate); box-shadow: none; color: var(--kbv-theme-ink); }
.kbv-root.kbv--theme-industrial .kbv-share .kbv-share-heading, .kbv-root.kbv--theme-industrial .kbv-related .kbv-related-heading { font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.kbv-root.kbv--theme-industrial .kbv-share-url-row { border: 2px solid var(--kbv-theme-frame); border-radius: 2px; background: #ffffff; }
.kbv-root.kbv--theme-industrial .kbv-related .kbv-related-heading { border-bottom: 2px solid var(--kbv-theme-frame); }
.kbv-root.kbv--theme-industrial .kbv-related .kbv-related-item + .kbv-related-item { border-top: 1px dashed #868e96; }
.kbv-root.kbv--theme-industrial .kbv-related .kbv-related-link { border-radius: 0; }
.kbv-root.kbv--theme-industrial .kbv-related .kbv-related-link:hover, .kbv-root.kbv--theme-industrial .kbv-related .kbv-related-link:focus-visible { background: #ffffff; box-shadow: inset 4px 0 0 var(--kbv-accent); }
.kbv-root.kbv--theme-industrial .kbv-related .kbv-related-title { color: var(--kbv-theme-ink); font-weight: 700; }
.kbv-root.kbv--theme-industrial .kbv-empty { border: 2px dashed var(--kbv-theme-frame); border-radius: 3px; background: repeating-linear-gradient(135deg, rgba(52, 58, 64, .04) 0 12px, transparent 12px 24px), var(--kbv-theme-plate); color: var(--kbv-muted); }
.kbv-root.kbv--theme-industrial .kbv-empty .kbv-title { color: var(--kbv-theme-steel); font-weight: 800; text-transform: uppercase; }

/* ---------- Professional: navy headings, corporate blue, a white article shell, hairlines, a quiet accent rule ---------- */
.kbv-root.kbv--theme-professional {
    --kbv-accent: #1d4ed8;
    --kbv-accent-fg: #ffffff;
    --kbv-accent-soft: rgba(29, 78, 216, .08);
    --kbv-line: rgba(13, 27, 42, .16);
    --kbv-field-line: rgba(13, 27, 42, .3);
    --kbv-muted: #5b6b7d;
    --kbv-soft: #f5f7fb;
    --kbv-surface: #ffffff;
    --kbv-radius: 10px;
    --kbv-card-shadow: 0 .5rem 1.5rem rgba(15, 23, 42, .08);
    --kbv-shadow: 0 1rem 2.25rem rgba(18, 52, 77, .14);
    --kbv-theme-navy: #0d1b2a;
    --kbv-theme-navy-2: #12344d;
    --kbv-theme-text: #1e2a35;
    --kbv-theme-rule: rgba(29, 78, 216, .16);
}
.kbv-root.kbv--theme-professional .kbv-btn { border-radius: 6px; }
.kbv-root.kbv--theme-professional .kbv-btn:not(.kbv-btn-quiet):hover, .kbv-root.kbv--theme-professional .kbv-btn:not(.kbv-btn-quiet):focus-visible { background: var(--kbv-theme-navy-2); border-color: var(--kbv-theme-navy-2); filter: none; }
.kbv-root.kbv--theme-professional .kbv-input { border-radius: 6px; background-color: #ffffff; color: var(--kbv-theme-navy); }
.kbv-root.kbv--theme-professional .kbv-input:focus { box-shadow: 0 0 0 .2rem rgba(15, 76, 129, .18); }
/* Article shell: the Blog Viewer's Professional shell (white panel, hairline frame, soft navy shadow) around the whole
   article (Templates/Professional/Article.html), with its header panel, eyebrow label, and summary rule. */
.kbv-root.kbv--theme-professional .kbv-shell { padding: clamp(1.25rem, 2.5vw, 2rem); border: 1px solid rgba(18, 52, 77, .14); border-radius: 12px; background: #ffffff; box-shadow: 0 .75rem 2rem rgba(18, 52, 77, .08); color: var(--kbv-theme-text); }
.kbv-root.kbv--theme-professional .kbv-header { gap: .8rem; padding: clamp(1.25rem, 2.5vw, 2rem); border: 1px solid rgba(18, 52, 77, .14); border-top: 4px solid var(--kbv-theme-navy-2); border-radius: 10px; background: linear-gradient(135deg, rgba(15, 76, 129, .08), rgba(96, 112, 128, .04)), #ffffff; color: var(--kbv-theme-text); }
.kbv-root.kbv--theme-professional .kbv-title { color: var(--kbv-theme-navy-2); letter-spacing: -.02em; }
.kbv-root.kbv--theme-professional .kbv-category { padding: 0; border: 0; border-radius: 0; background: none; color: var(--kbv-accent); letter-spacing: .12em; }
.kbv-root.kbv--theme-professional a.kbv-category-link:hover, .kbv-root.kbv--theme-professional a.kbv-category-link:focus-visible { border: 0; background: none; color: var(--kbv-theme-navy-2); text-decoration: underline; }
.kbv-root.kbv--theme-professional .kbv-lead { padding-left: 1rem; border-left: 4px solid var(--kbv-accent); color: #475569; font-size: 1.15rem; opacity: 1; }
.kbv-root.kbv--theme-professional .kbv-hero img { border-radius: 10px; box-shadow: 0 .75rem 1.75rem rgba(18, 52, 77, .12); }
.kbv-root.kbv--theme-professional .kbv-crumbs a[aria-current] { color: var(--kbv-theme-navy-2); }
/* Article body: the Blog Viewer's Professional content type scale (larger text, generous line height, navy heads),
   message-style callouts, and soft table heads. */
.kbv-root.kbv--theme-professional .kbv-body { font-size: 1.05rem; line-height: 1.75; color: var(--kbv-theme-text); }
.kbv-root.kbv--theme-professional .kbv-body h2, .kbv-root.kbv--theme-professional .kbv-body h3, .kbv-root.kbv--theme-professional .kbv-body h4 { color: var(--kbv-theme-navy-2); letter-spacing: -.01em; }
.kbv-root.kbv--theme-professional .kbv-body h2 { margin-top: 1.75rem; }
.kbv-root.kbv--theme-professional .kbv-body blockquote { border-color: var(--kbv-line); border-left-color: var(--kbv-accent); border-radius: 8px; background: #f5f7fb; color: var(--kbv-theme-text); }
.kbv-root.kbv--theme-professional .kbv-body blockquote::before { border-radius: 4px; }
.kbv-root.kbv--theme-professional .kbv-body code { background: #f5f7fb; color: var(--kbv-theme-navy-2); }
.kbv-root.kbv--theme-professional .kbv-body pre { border-radius: 8px; background: #f5f7fb; }
.kbv-root.kbv--theme-professional .kbv-body th { background: #f5f7fb; color: var(--kbv-theme-navy-2); border-bottom: 2px solid var(--kbv-theme-navy-2); }
.kbv-root.kbv--theme-professional .kbv-body tbody tr:nth-child(even) > td { background: #fafbfd; }
/* Topics, downloads, previous and next: the Blog Viewer's Professional tag links and the list modules' Professional
   card (white, hairline frame, a thin blue rule on top). */
.kbv-root.kbv--theme-professional .kbv-tag-list a, .kbv-root.kbv--theme-professional .kbv-tag-list span { border-radius: 4px; background: #f5f7fb; color: var(--kbv-theme-navy-2); }
.kbv-root.kbv--theme-professional .kbv-tag-list a:hover, .kbv-root.kbv--theme-professional .kbv-tag-list a:focus-visible { border-color: var(--kbv-accent); background: var(--kbv-accent); color: #ffffff; }
.kbv-root.kbv--theme-professional .kbv-section h2 { color: var(--kbv-theme-navy-2); }
.kbv-root.kbv--theme-professional .kbv-files a { border-radius: 10px; background: #ffffff; color: var(--kbv-theme-text); }
.kbv-root.kbv--theme-professional .kbv-ext { border-radius: 8px; }
.kbv-root.kbv--theme-professional .kbv-files b { color: var(--kbv-theme-navy-2); }
.kbv-root.kbv--theme-professional .kbv-prevnext a { border-top: .25rem solid var(--kbv-theme-rule); border-radius: 10px; background: #ffffff; color: var(--kbv-theme-text); }
.kbv-root.kbv--theme-professional .kbv-prevnext a:hover, .kbv-root.kbv--theme-professional .kbv-prevnext a:focus-visible { border-top-color: var(--kbv-accent); background: #ffffff; }
.kbv-root.kbv--theme-professional .kbv-prevnext small { color: var(--kbv-accent); letter-spacing: .12em; }
.kbv-root.kbv--theme-professional .kbv-prevnext b { color: var(--kbv-theme-navy-2); }
/* Sidebar: the Blog Viewer's Professional message panel for the share card and its widget for related articles. */
.kbv-root.kbv--theme-professional .kbv-share { border: 1px solid var(--kbv-line); border-left: 4px solid var(--kbv-accent); border-radius: 8px; background: #f5f7fb; color: var(--kbv-theme-text); }
.kbv-root.kbv--theme-professional .kbv-share-url-row { border-radius: 6px; background: #ffffff; }
.kbv-root.kbv--theme-professional .kbv-related { border-color: var(--kbv-line); background: #ffffff; box-shadow: 0 .5rem 1.25rem rgba(18, 52, 77, .07); color: var(--kbv-theme-text); }
.kbv-root.kbv--theme-professional .kbv-related .kbv-related-heading { color: var(--kbv-theme-navy-2); }
.kbv-root.kbv--theme-professional .kbv-related .kbv-related-item + .kbv-related-item { border-top: 1px solid rgba(13, 27, 42, .08); }
.kbv-root.kbv--theme-professional .kbv-related .kbv-related-link { border-radius: 4px; }
.kbv-root.kbv--theme-professional .kbv-related .kbv-related-link:hover, .kbv-root.kbv--theme-professional .kbv-related .kbv-related-link:focus-visible { background: #f5f7fb; }
.kbv-root.kbv--theme-professional .kbv-related .kbv-related-title { color: var(--kbv-theme-navy-2); }
.kbv-root.kbv--theme-professional .kbv-related .kbv-related-link:hover .kbv-related-title { color: var(--kbv-accent); }
.kbv-root.kbv--theme-professional .kbv-empty { justify-items: start; text-align: left; border: 1px solid var(--kbv-line); border-left: 4px solid var(--kbv-accent); border-radius: 8px; background: #f5f7fb; color: var(--kbv-theme-text); }
.kbv-root.kbv--theme-professional .kbv-empty .kbv-title { color: var(--kbv-theme-navy-2); letter-spacing: -.02em; }

/* ---------- Techie: a dark console header on a blueprint grid, neon gradient rules, monospace labels, dark side panels ---------- */
.kbv-root.kbv--theme-techie {
    --kbv-accent: #4c3dff;
    --kbv-accent-fg: #ffffff;
    --kbv-accent-soft: rgba(76, 61, 255, .08);
    --kbv-line: rgba(76, 61, 255, .18);
    --kbv-muted: #5b6178;
    --kbv-soft: rgba(76, 61, 255, .06);
    --kbv-radius: 16px;
    --kbv-card-shadow: 0 .75rem 1.5rem rgba(15, 23, 42, .18);
    --kbv-shadow: 0 0 0 1px rgba(56, 189, 248, .6), 0 20px 46px rgba(15, 23, 42, .35);
    --kbv-theme-ink: #15162f;
    --kbv-theme-neon: linear-gradient(90deg, #38bdf8, #818cf8, #f472b6);
    --kbv-theme-mono: var(--bs-font-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace);
}
/* The dark panels (header, downloads, previous and next, sidebar, unavailable message) switch the tokens to the list
   modules' Techie card palette, so every shared rule inside them stays readable. */
.kbv-root.kbv--theme-techie .kbv-header,
.kbv-root.kbv--theme-techie .kbv-files a,
.kbv-root.kbv--theme-techie .kbv-prevnext a,
.kbv-root.kbv--theme-techie .kbv-share,
.kbv-root.kbv--theme-techie .kbv-related,
.kbv-root.kbv--theme-techie .kbv-empty {
    --kbv-accent: #38bdf8;
    --kbv-accent-fg: #0f172a;
    --kbv-accent-soft: rgba(56, 189, 248, .14);
    --kbv-line: rgba(56, 189, 248, .35);
    --kbv-field-line: rgba(147, 197, 253, .45);
    --kbv-muted: #93c5fd;
    --kbv-soft: rgba(148, 163, 184, .14);
    --kbv-surface: #0f172a;
    color-scheme: dark;
    color: #e2e8f0;
}
.kbv-root.kbv--theme-techie .kbv-btn:not(.kbv-btn-quiet):hover, .kbv-root.kbv--theme-techie .kbv-btn:not(.kbv-btn-quiet):focus-visible { background: #3525d6; border-color: #3525d6; filter: none; }
.kbv-root.kbv--theme-techie .kbv-header .kbv-btn:not(.kbv-btn-quiet):hover, .kbv-root.kbv--theme-techie .kbv-empty .kbv-btn:not(.kbv-btn-quiet):hover, .kbv-root.kbv--theme-techie .kbv-empty .kbv-btn:not(.kbv-btn-quiet):focus-visible { background: #7dd3fc; border-color: #7dd3fc; color: #0f172a; }
.kbv-root.kbv--theme-techie .kbv-input { font-family: var(--kbv-theme-mono); background-color: #020617; }
.kbv-root.kbv--theme-techie .kbv-input::placeholder { color: #94a3b8; opacity: 1; }
/* Header: the Blog Viewer's Techie hero (blueprint grid, cyan and pink glows) as a dark console window with three
   status lights and a chip mark (Templates/Techie/Article.html), topped by the neon gradient rule. */
.kbv-root.kbv--theme-techie .kbv-header { position: relative; overflow: hidden; padding: 1.4rem 1.75rem 1.75rem; border: 1px solid var(--kbv-line); border-radius: 20px; background-color: #0b1120; background-image: radial-gradient(circle at top right, rgba(56, 189, 248, .22), transparent 34%), radial-gradient(circle at bottom left, rgba(244, 114, 182, .16), transparent 36%), linear-gradient(rgba(56, 189, 248, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(56, 189, 248, .08) 1px, transparent 1px); background-size: auto, auto, 22px 22px, 22px 22px; box-shadow: 0 22px 52px rgba(76, 61, 255, .18); }
.kbv-root.kbv--theme-techie .kbv-header::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--kbv-theme-neon); pointer-events: none; }
.kbv-root.kbv--theme-techie .kbv-header-bar { display: flex; align-items: center; gap: 6px; margin-bottom: .2rem; }
.kbv-root.kbv--theme-techie .kbv-header-bar span { width: 10px; height: 10px; border-radius: 50%; background: #38bdf8; }
.kbv-root.kbv--theme-techie .kbv-header-bar span:nth-child(2) { background: #818cf8; }
.kbv-root.kbv--theme-techie .kbv-header-bar span:nth-child(3) { background: #f472b6; }
.kbv-root.kbv--theme-techie .kbv-header-bar i { margin-left: auto; color: #7dd3fc; font-size: 1rem; }
.kbv-root.kbv--theme-techie .kbv-title { color: #f8fafc; }
.kbv-root.kbv--theme-techie .kbv-lead { color: #cbd5e1; opacity: 1; }
.kbv-root.kbv--theme-techie .kbv-category { border-color: rgba(56, 189, 248, .35); border-radius: 4px; background: rgba(56, 189, 248, .1); color: #7dd3fc; font-family: var(--kbv-theme-mono); letter-spacing: .04em; text-transform: none; }
.kbv-root.kbv--theme-techie .kbv-meta { font-family: var(--kbv-theme-mono); }
.kbv-root.kbv--theme-techie .kbv-hero img { border: 1px solid rgba(56, 189, 248, .45); box-shadow: 0 20px 46px rgba(76, 61, 255, .18); }
.kbv-root.kbv--theme-techie .kbv-crumbs ol, .kbv-root.kbv--theme-techie .kbv-back { font-family: var(--kbv-theme-mono); font-size: .8rem; }
.kbv-root.kbv--theme-techie .kbv-crumbs li + li::before { content: "/"; }
.kbv-root.kbv--theme-techie .kbv-crumbs a[aria-current] { color: var(--kbv-theme-ink); }
/* Article body: light reading surface with indigo links, neon underlined section heads, indigo callouts, a dark
   terminal for code blocks, and dark table heads. */
.kbv-root.kbv--theme-techie .kbv-body h2 { padding-bottom: .5rem; border-bottom: 0; background: var(--kbv-theme-neon) no-repeat left bottom / 100% 2px; color: var(--kbv-theme-ink); }
.kbv-root.kbv--theme-techie .kbv-body h3, .kbv-root.kbv--theme-techie .kbv-body h4 { color: var(--kbv-theme-ink); }
.kbv-root.kbv--theme-techie .kbv-body blockquote { border-color: rgba(76, 61, 255, .2); border-radius: 14px; background: linear-gradient(135deg, rgba(76, 61, 255, .07), rgba(0, 168, 255, .05)); }
.kbv-root.kbv--theme-techie .kbv-body blockquote::before { border-radius: 6px; font-family: var(--kbv-theme-mono); }
.kbv-root.kbv--theme-techie .kbv-body code { background: rgba(76, 61, 255, .08); color: #3525d6; font-family: var(--kbv-theme-mono); }
.kbv-root.kbv--theme-techie .kbv-body pre { border: 1px solid rgba(56, 189, 248, .35); border-radius: 12px; background: #0f172a; color: #e2e8f0; box-shadow: inset 0 3px 0 #38bdf8; }
.kbv-root.kbv--theme-techie .kbv-body pre code { background: none; color: inherit; }
.kbv-root.kbv--theme-techie .kbv-body th { background: #0f172a; color: #f8fafc; font-family: var(--kbv-theme-mono); font-size: .85rem; font-weight: 600; }
/* Topics: the Blog Viewer's Techie chips in monospace. */
.kbv-root.kbv--theme-techie .kbv-tags-label, .kbv-root.kbv--theme-techie .kbv-tag-list a, .kbv-root.kbv--theme-techie .kbv-tag-list span { font-family: var(--kbv-theme-mono); }
.kbv-root.kbv--theme-techie .kbv-tag-list a, .kbv-root.kbv--theme-techie .kbv-tag-list span { border-color: rgba(76, 61, 255, .28); border-radius: 4px; }
.kbv-root.kbv--theme-techie .kbv-section-title .kbv-icon { color: var(--kbv-accent); }
/* Downloads, previous and next: the list modules' Techie cards (dark slate, cyan frame) with the neon rule on top. */
.kbv-root.kbv--theme-techie .kbv-files a, .kbv-root.kbv--theme-techie .kbv-prevnext a { position: relative; overflow: hidden; border-color: var(--kbv-line); border-radius: 14px; }
.kbv-root.kbv--theme-techie .kbv-files a::before, .kbv-root.kbv--theme-techie .kbv-prevnext a::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--kbv-theme-neon); pointer-events: none; }
.kbv-root.kbv--theme-techie .kbv-files a:hover, .kbv-root.kbv--theme-techie .kbv-files a:focus-visible, .kbv-root.kbv--theme-techie .kbv-prevnext a:hover, .kbv-root.kbv--theme-techie .kbv-prevnext a:focus-visible { border-color: #38bdf8; background: #0f172a; transform: translateY(-3px); }
.kbv-root.kbv--theme-techie .kbv-files small, .kbv-root.kbv--theme-techie .kbv-prevnext small, .kbv-root.kbv--theme-techie .kbv-ext { font-family: var(--kbv-theme-mono); }
.kbv-root.kbv--theme-techie .kbv-ext { border: 1px solid var(--kbv-line); border-radius: 8px; color: #7dd3fc; }
/* Sidebar: dark console cards with the neon rule; the address row is a terminal line. */
.kbv-root.kbv--theme-techie .kbv-share, .kbv-root.kbv--theme-techie .kbv-related { position: relative; overflow: hidden; border: 1px solid var(--kbv-line); border-radius: 14px; background: #0f172a; box-shadow: var(--kbv-card-shadow); }
.kbv-root.kbv--theme-techie .kbv-share::before, .kbv-root.kbv--theme-techie .kbv-related::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--kbv-theme-neon); pointer-events: none; }
.kbv-root.kbv--theme-techie .kbv-share .kbv-share-heading, .kbv-root.kbv--theme-techie .kbv-related .kbv-related-heading { color: #f8fafc; }
.kbv-root.kbv--theme-techie .kbv-share-url-row { border-color: var(--kbv-line); background: #020617; }
.kbv-root.kbv--theme-techie .kbv-share-url { color: #7dd3fc; }
.kbv-root.kbv--theme-techie .kbv-related .kbv-related-heading { border-bottom-color: rgba(56, 189, 248, .25); }
.kbv-root.kbv--theme-techie .kbv-related .kbv-related-link { border-radius: 8px; }
.kbv-root.kbv--theme-techie .kbv-related .kbv-related-summary { color: #cbd5e1; }
.kbv-root.kbv--theme-techie .kbv-empty { border: 1px solid var(--kbv-line); border-radius: 20px; background-color: #0b1120; background-image: linear-gradient(rgba(56, 189, 248, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(56, 189, 248, .08) 1px, transparent 1px); background-size: 22px 22px; color: #cbd5e1; }
.kbv-root.kbv--theme-techie .kbv-empty .kbv-title { color: #f8fafc; }

/* ---------- Named themes: narrow panes, motion, print ---------- */
@container kbv (max-width: 560px) {
    .kbv-root.kbv--theme-beach .kbv-header, .kbv-root.kbv--theme-industrial .kbv-header, .kbv-root.kbv--theme-professional .kbv-header, .kbv-root.kbv--theme-techie .kbv-header { padding: 1.15rem 1.1rem 1.4rem; }
    .kbv-root.kbv--theme-professional .kbv-shell { padding: 1rem .85rem; }
    .kbv-root.kbv--theme-beach .kbv-theme-mark, .kbv-root.kbv--theme-industrial .kbv-theme-mark { display: none; }
    .kbv-root.kbv--theme-beach .kbv-header > .kbv-title, .kbv-root.kbv--theme-beach .kbv-header > .kbv-category, .kbv-root.kbv--theme-industrial .kbv-header > .kbv-title, .kbv-root.kbv--theme-industrial .kbv-header > .kbv-category { margin-right: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .kbv-root.kbv--theme-industrial .kbv-files a:hover, .kbv-root.kbv--theme-industrial .kbv-files a:focus-visible, .kbv-root.kbv--theme-industrial .kbv-prevnext a:hover, .kbv-root.kbv--theme-industrial .kbv-prevnext a:focus-visible,
    .kbv-root.kbv--theme-techie .kbv-files a:hover, .kbv-root.kbv--theme-techie .kbv-files a:focus-visible, .kbv-root.kbv--theme-techie .kbv-prevnext a:hover, .kbv-root.kbv--theme-techie .kbv-prevnext a:focus-visible { transform: none; }
}
@media print {
    .kbv-root.kbv--theme-beach .kbv-header, .kbv-root.kbv--theme-industrial .kbv-header, .kbv-root.kbv--theme-professional .kbv-header, .kbv-root.kbv--theme-techie .kbv-header, .kbv-root.kbv--theme-professional .kbv-shell { padding: 0; border: 0; background: none; box-shadow: none; color: #000000; }
    .kbv-root.kbv--theme-beach .kbv-header::after, .kbv-root.kbv--theme-techie .kbv-header::before, .kbv-theme-mark, .kbv-header-bar, .kbv-rule { display: none !important; }
    .kbv-root.kbv--theme-techie .kbv-title, .kbv-root.kbv--theme-techie .kbv-lead, .kbv-root.kbv--theme-techie .kbv-meta, .kbv-root.kbv--theme-techie .kbv-category { color: #000000; }
    .kbv-root.kbv--theme-techie .kbv-files a, .kbv-root.kbv--theme-techie .kbv-body pre, .kbv-root.kbv--theme-industrial .kbv-body pre { border-color: #999999; background: #ffffff; color: #000000; box-shadow: none; }
    .kbv-root.kbv--theme-techie .kbv-files b, .kbv-root.kbv--theme-techie .kbv-files small, .kbv-root.kbv--theme-techie .kbv-ext { color: #000000; }
}
