/* DVMS Knowledge Portal v0.1.10 */

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: light; }
body {
    margin: 0;
    background: #f4f6f8;
    color: #17202a;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }

:root {
    --kp-sidebar-width: 300px;
    --kp-reading-width: 820px;
    --kp-wide-width: 1120px;
    --kp-accent: #d8b45a;
    --kp-sidebar-bg: #07111f;
    --kp-sidebar-bg-2: #0b1828;
    --kp-sidebar-text: #e8edf5;
    --kp-sidebar-muted: #9ba8b8;
    --kp-border: #dfe5ec;
    --kp-card-bg: #ffffff;
    --kp-workspace-bg: #f7f8fa;
    --kp-radius: 14px;
    --kp-shadow: 0 10px 30px rgba(17, 24, 39, .07);
}

.kp-skip-link {
    position: fixed;
    left: 12px;
    top: -60px;
    z-index: 1000;
    padding: 10px 14px;
    background: #fff;
    border-radius: 8px;
}
.kp-skip-link:focus { top: 12px; }

.kp-shell {
    display: grid;
    grid-template-columns: var(--kp-sidebar-width) minmax(0, 1fr);
    min-height: 100vh;
}

.kp-sidebar {
    position: sticky;
    top: 0;
    align-self: start;
    height: 100vh;
    overflow-y: auto;
    color: var(--kp-sidebar-text);
    background:
        radial-gradient(circle at 50% 0%, rgba(37, 84, 135, .22), transparent 34%),
        linear-gradient(180deg, var(--kp-sidebar-bg-2), var(--kp-sidebar-bg) 52%, #03070d);
    border-right: 1px solid rgba(216, 180, 90, .22);
}

.kp-identity {
    padding: 28px 22px 22px;
    text-align: center;
    border-bottom: 1px solid rgba(216, 180, 90, .22);
}
.kp-identity-link { text-decoration: none; }
.kp-identity-logo {
    width: min(180px, 100%);
    /* Reserve the logo slot before image decoding so navigation cannot shift. */
    height: 80px;
    max-height: 80px;
    margin: 0 auto 14px;
    object-fit: contain;
}
.kp-identity-title {
    display: block;
    color: #f2d27d;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.kp-identity-rule {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 9px;
    margin: 12px 0 9px;
    color: var(--kp-accent);
    font-size: 10px;
}
.kp-identity-rule::before,
.kp-identity-rule::after {
    content: "";
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(216, 180, 90, .8));
}
.kp-identity-rule::after { background: linear-gradient(90deg, rgba(216, 180, 90, .8), transparent); }
.kp-identity-subtitle {
    color: var(--kp-sidebar-muted);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 11px;
    line-height: 1.45;
    letter-spacing: .035em;
}

.kp-nav-tree { padding: 14px 0 28px; }
.kp-nav-link,
.kp-nav-group > summary {
    display: flex;
    align-items: center;
    min-height: 42px;
    width: 100%;
    padding: 9px 21px;
    color: var(--kp-sidebar-text);
    text-decoration: none;
    cursor: pointer;
    transition: background .16s ease, color .16s ease;
}
.kp-nav-link:hover,
.kp-nav-group > summary:hover {
    background: linear-gradient(90deg, rgba(216, 180, 90, .09), rgba(16, 34, 56, .58));
    color: #fff;
}
.kp-nav-link.is-current {
    color: #fff;
    background: linear-gradient(90deg, rgba(216, 180, 90, .2), rgba(216, 180, 90, .03));
    box-shadow: inset 3px 0 0 var(--kp-accent);
}
.kp-nav-group { margin: 0; }
.kp-nav-group > summary {
    list-style: none;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .025em;
}
.kp-nav-group > summary::-webkit-details-marker { display: none; }
.kp-nav-group > summary::before {
    content: "›";
    width: 16px;
    margin-right: 7px;
    color: var(--kp-accent);
    font-size: 18px;
    transform: rotate(0deg);
    transition: transform .16s ease;
}
.kp-nav-group[open] > summary::before { transform: rotate(90deg); }
.kp-nav-children {
    position: relative;
    padding-bottom: 5px;
}
.kp-nav-children::before {
    content: "";
    position: absolute;
    left: 29px;
    top: 0;
    bottom: 9px;
    width: 1px;
    background: linear-gradient(rgba(216, 180, 90, .36), rgba(216, 180, 90, .06));
}
.kp-nav-children .kp-nav-link {
    min-height: 35px;
    padding: 7px 20px 7px 46px;
    color: var(--kp-sidebar-muted);
    font-size: 13px;
}
.kp-nav-children .kp-nav-link:hover { color: #fff; }
.kp-nav-children .kp-nav-link.is-current { color: #f2d27d; }

/* Page creation status: links are checked client-side in the MVP. */
.kp-nav-link.is-missing {
    color: #d6b77a;
    cursor: not-allowed;
    opacity: .82;
    text-decoration: none;
}
.kp-nav-link.is-missing:hover {
    background: rgba(216, 180, 90, .055);
    color: #e8cb92;
}
.kp-nav-link.is-missing::after {
    content: "NOT CREATED";
    margin-left: auto;
    padding: 2px 5px;
    border: 1px solid rgba(216, 180, 90, .42);
    border-radius: 4px;
    color: #d8b45a;
    font-size: 8px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .06em;
    white-space: nowrap;
}
.kp-nav-link.is-checking {
    opacity: .72;
}

.kp-workspace {
    min-width: 0;
    background: var(--kp-workspace-bg);
}

.kp-utility-bar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    min-height: 64px;
    padding: 10px clamp(18px, 3vw, 42px);
    background: rgba(255, 255, 255, .92);
    border-bottom: 1px solid var(--kp-border);
    backdrop-filter: blur(12px);
}
.kp-utility-title a {
    color: #1d2733;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 700;
    text-decoration: none;
}
.kp-utility-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.kp-utility-link,
.kp-search-button {
    border: 0;
    background: transparent;
    color: #4a5664;
    padding: 8px 10px;
    text-decoration: none;
    cursor: pointer;
}
.kp-utility-link:hover,
.kp-search-button:hover { color: #111827; }
.kp-button,
.kp-secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 9px 15px;
    border: 1px solid var(--kp-accent);
    border-radius: 999px;
    background: var(--kp-accent);
    color: #17202a;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}
.kp-secondary-button {
    background: transparent;
    color: #263444;
}
.kp-mobile-menu { display: none; }

.kp-main {
    min-width: 0;
    padding: clamp(22px, 4vw, 52px) clamp(18px, 4vw, 56px) 70px;
}
.kp-main:focus { outline: none; }

.kp-width-reading { width: min(100%, var(--kp-reading-width)); margin-inline: auto; }
.kp-width-wide { width: min(100%, var(--kp-wide-width)); margin-inline: auto; }
.kp-width-full { width: 100%; }

.kp-breadcrumbs {
    width: min(100%, var(--kp-wide-width));
    margin: 0 auto 24px;
    color: #7a8592;
    font-size: 13px;
}
.kp-breadcrumbs a { color: #53606d; text-decoration: none; }
.kp-breadcrumbs span { margin: 0 6px; }

/* Development aid: subtly identify content not yet represented in publication-structure.json. */
.kp-breadcrumbs.is-unmapped {
    color: #7d8792;
}
.kp-unmapped-badge {
    display: inline-flex;
    align-items: center;
    margin-left: 10px !important;
    padding: 2px 6px;
    border: 1px dashed rgba(155, 123, 45, .42);
    border-radius: 999px;
    color: #8b733e;
    background: rgba(216, 180, 90, .07);
    font-size: 8px;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: .07em;
    vertical-align: middle;
}

.kp-kicker {
    color: #9b7b2d;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
    text-decoration: none;
}

.kp-hero,
.kp-listing-header,
.kp-topic-header,
.kp-author-header {
    margin-bottom: 34px;
}
.kp-hero {
    padding: clamp(28px, 5vw, 64px);
    border-radius: 22px;
    color: #eef4fb;
    background:
        radial-gradient(circle at 20% 10%, rgba(51, 112, 174, .42), transparent 32%),
        linear-gradient(135deg, #06101d, #0e2036 55%, #07111f);
    box-shadow: var(--kp-shadow);
}
.kp-hero h1,
.kp-listing-header h1,
.kp-topic-header h1,
.kp-author-header h1,
.kp-article-header h1,
.kp-page-header h1 {
    margin: 8px 0 12px;
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.08;
}
.kp-hero h1 { font-size: clamp(38px, 6vw, 70px); color: #f2d27d; }
.kp-listing-header h1,
.kp-topic-header h1,
.kp-author-header h1,
.kp-article-header h1,
.kp-page-header h1 { font-size: clamp(34px, 5vw, 58px); }
.kp-hero p,
.kp-listing-header p,
.kp-topic-header p { max-width: 760px; font-size: 18px; }
.kp-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.kp-hero .kp-secondary-button { color: #eef4fb; border-color: rgba(242, 210, 125, .52); }

.kp-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin: 38px auto 18px;
}
.kp-section-heading h2 { margin: 3px 0 0; font-family: Georgia, "Times New Roman", serif; font-size: 30px; }

.kp-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}
.kp-card {
    overflow: hidden;
    background: var(--kp-card-bg);
    border: 1px solid var(--kp-border);
    border-radius: var(--kp-radius);
    box-shadow: 0 6px 20px rgba(17, 24, 39, .045);
}
.kp-card-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #e8edf2; }
.kp-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s ease; }
.kp-card:hover .kp-card-media img { transform: scale(1.025); }
.kp-card-body { padding: 20px; }
.kp-card-title { margin: 5px 0 10px; font-family: Georgia, "Times New Roman", serif; font-size: 24px; line-height: 1.18; }
.kp-card-title a { text-decoration: none; }
.kp-card-excerpt { margin: 0 0 16px; color: #5d6976; }
.kp-card-meta,
.kp-article-meta,
.kp-author-meta { color: #7b8794; font-size: 13px; }
.kp-card-meta,
.kp-article-meta { display: flex; gap: 7px; flex-wrap: wrap; }

.kp-article-header,
.kp-page-header { margin-bottom: 26px; text-align: left; }
.kp-deck { margin: 0; color: #566270; font-size: clamp(18px, 2vw, 22px); }
.kp-feature-image { margin-top: 28px; margin-bottom: 34px; }
.kp-feature-image img { width: 100%; border-radius: 16px; box-shadow: var(--kp-shadow); }
.kp-feature-image figcaption { margin-top: 8px; color: #7b8794; font-size: 13px; text-align: center; }

.kp-prose { width: 100%; }
.kp-prose > * { width: min(100%, var(--kp-reading-width)); margin-left: auto; margin-right: auto; }
.kp-prose > .kg-width-wide { width: min(100%, var(--kp-wide-width)); max-width: var(--kp-wide-width); }
.kp-prose > .kg-width-full { width: 100%; max-width: none; }
.kp-prose--wide > * { width: min(100%, var(--kp-wide-width)); }
.kp-prose--portal > * { width: 100%; max-width: none; }

.kp-prose p,
.kp-prose li { font-size: 18px; }
.kp-prose p { margin-top: 0; margin-bottom: 1.35em; }
.kp-prose h2,
.kp-prose h3,
.kp-prose h4 {
    margin-top: 1.8em;
    margin-bottom: .7em;
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.2;
}
.kp-prose h2 { font-size: 34px; }
.kp-prose h3 { font-size: 27px; }
.kp-prose h4 { font-size: 22px; }
.kp-prose a { color: #285f92; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.kp-prose blockquote {
    padding: 4px 0 4px 22px;
    border-left: 3px solid var(--kp-accent);
    color: #45515d;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
}
.kp-prose pre {
    overflow-x: auto;
    padding: 18px;
    border-radius: 12px;
    background: #101820;
    color: #f4f7fa;
}
.kp-prose code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.kp-prose table { width: 100%; border-collapse: collapse; }
.kp-prose th,
.kp-prose td { padding: 10px 12px; border: 1px solid var(--kp-border); text-align: left; }

/* Ghost editor cards */
.kg-card { margin-top: 2em; margin-bottom: 2em; }
.kg-image-card img { width: 100%; }
.kg-gallery-container { display: flex; flex-direction: column; gap: 8px; }
.kg-gallery-row { display: flex; gap: 8px; }
.kg-gallery-image { flex: 1; }
.kg-gallery-image img { width: 100%; height: 100%; object-fit: cover; }
.kg-callout-card,
.kg-toggle-card,
.kg-file-card,
.kg-bookmark-card {
    padding: 18px;
    border: 1px solid var(--kp-border);
    border-radius: 12px;
    background: #fff;
}
.kg-button-card .kg-btn {
    display: inline-flex;
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--kp-accent);
    color: #17202a;
    font-weight: 800;
    text-decoration: none;
}
.kg-signup-card { border-radius: 18px; overflow: hidden; }
.kg-embed-card iframe,
.kg-video-card video,
.kg-audio-card audio { max-width: 100%; }

.kp-article-footer { margin-top: 44px; }
.kp-tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.kp-tag-list a {
    padding: 6px 10px;
    border-radius: 999px;
    background: #e9edf2;
    color: #4c5866;
    text-decoration: none;
    font-size: 13px;
}
.kp-author-card,
.kp-author-header {
    display: flex;
    gap: 18px;
    align-items: center;
}
.kp-author-card {
    padding: 22px;
    border: 1px solid var(--kp-border);
    border-radius: var(--kp-radius);
    background: #fff;
}
.kp-author-card h2 { margin: 2px 0 6px; font-family: Georgia, "Times New Roman", serif; }
.kp-author-card p { margin: 0; color: #5d6976; }
.kp-author-avatar,
.kp-author-profile { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; }
.kp-author-profile { width: 110px; height: 110px; }

.kp-topic-image { width: 100%; max-height: 360px; margin-top: 18px; object-fit: cover; border-radius: 16px; }
.kp-pagination { margin-top: 32px; }
.kp-pagination .pagination { display: flex; justify-content: space-between; gap: 16px; }
.kp-pagination a { text-decoration: none; color: #3e4a58; }
.kp-empty { padding: 24px; background: #fff; border: 1px dashed #cbd4dd; border-radius: 12px; }
.kp-comments { margin-top: 44px; }

.kp-footer {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 22px clamp(18px, 4vw, 56px);
    color: #73808d;
    border-top: 1px solid var(--kp-border);
    font-size: 13px;
}
.kp-footer-links { display: flex; gap: 16px; }
.kp-footer a { text-decoration: none; }

.kp-drawer-overlay { display: none; }

@media (max-width: 1200px) {
    .kp-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
    .kp-shell { display: block; }
    .kp-sidebar {
        position: fixed;
        z-index: 100;
        left: 0;
        top: 0;
        width: min(86vw, 330px);
        height: 100vh;
        transform: translateX(-105%);
        transition: transform .22s ease;
        box-shadow: 10px 0 32px rgba(0,0,0,.35);
    }
    .kp-drawer-open .kp-sidebar { transform: translateX(0); }
    .kp-drawer-overlay {
        display: block;
        position: fixed;
        z-index: 90;
        inset: 0;
        background: rgba(2, 6, 12, .68);
        opacity: 0;
        pointer-events: none;
        transition: opacity .22s ease;
    }
    .kp-drawer-open .kp-drawer-overlay { opacity: 1; pointer-events: auto; }
    .kp-drawer-open { overflow: hidden; }
    .kp-mobile-menu {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        border: 1px solid var(--kp-border);
        border-radius: 9px;
        background: #fff;
        color: #253240;
        cursor: pointer;
    }
    .kp-utility-title { display: block; }
    .kp-main { padding-top: 30px; }
}

@media (max-width: 680px) {
    .kp-card-grid { grid-template-columns: 1fr; }
    .kp-utility-bar { gap: 8px; padding-inline: 12px; }
    .kp-utility-title { display: none; }
    .kp-utility-actions { margin-left: auto; gap: 2px; }
    .kp-utility-link,
    .kp-search-button { padding-inline: 7px; font-size: 13px; }
    .kp-button { min-height: 36px; padding: 7px 10px; font-size: 13px; }
    .kp-main { padding-inline: 16px; }
    .kp-author-card,
    .kp-author-header { align-items: flex-start; }
    .kp-author-profile { width: 82px; height: 82px; }
    .kp-footer { flex-direction: column; }
    .kp-prose p,
    .kp-prose li { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* ============================================================
   Knowledge Portal Topic Landing Pages
   ============================================================ */

.kp-topic-page { padding-bottom: 12px; }
.kp-topic-hero { margin-bottom: 26px; }
.kp-topic-hero h1 {
    margin: 5px 0 12px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(38px, 5vw, 64px);
    line-height: 1.04;
    letter-spacing: -.025em;
}
.kp-topic-intro { margin-bottom: 42px; }
.kp-topic-explore,
.kp-topic-posts { margin-top: 42px; }
.kp-section-heading--embedded { margin-bottom: 18px; }

.kp-topic-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.kp-topic-card {
    position: relative;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    align-items: center;
    gap: 15px;
    min-height: 132px;
    padding: 22px;
    color: #1d2a36;
    background:
        radial-gradient(circle at 0% 0%, rgba(216, 180, 90, .10), transparent 38%),
        #fff;
    border: 1px solid var(--kp-border);
    border-radius: var(--kp-radius);
    box-shadow: 0 7px 22px rgba(17, 24, 39, .045);
    text-decoration: none;
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.kp-topic-card:hover {
    transform: translateY(-2px);
    border-color: rgba(216, 180, 90, .72);
    box-shadow: 0 12px 28px rgba(17, 24, 39, .08);
}
.kp-topic-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(216, 180, 90, .45);
    border-radius: 50%;
    color: #8b6e2d;
    background: #fffaf0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 19px;
}
.kp-topic-card-copy h3 {
    margin: 0 0 5px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
    line-height: 1.15;
}
.kp-topic-card-copy p {
    margin: 0;
    color: #66727f;
    font-size: 14px;
    line-height: 1.5;
}
.kp-topic-card-arrow {
    color: #9a7a35;
    font-size: 26px;
    line-height: 1;
}

/* Topic cards use the same MVP missing-page probe as the sidebar. */
.kp-topic-card.is-checking { opacity: .76; }
.kp-topic-card.is-missing {
    cursor: not-allowed;
    opacity: .68;
    border-style: dashed;
}
.kp-topic-card.is-missing:hover {
    transform: none;
    border-color: var(--kp-border);
    box-shadow: 0 7px 22px rgba(17, 24, 39, .045);
}
.kp-topic-card.is-missing::after {
    content: "NOT CREATED";
    position: absolute;
    top: 10px;
    right: 12px;
    padding: 3px 6px;
    color: #8b6e2d;
    background: #fffaf0;
    border: 1px solid rgba(216, 180, 90, .48);
    border-radius: 5px;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .055em;
}

@media (max-width: 760px) {
    .kp-topic-grid { grid-template-columns: 1fr; }
    .kp-topic-card { min-height: 112px; padding: 18px; }
}

/* Structure-driven navigation supports arbitrary nesting depths. */
.kp-nav-children .kp-nav-group > summary {
    min-height: 35px;
    padding: 7px 20px 7px 43px;
    color: var(--kp-sidebar-muted);
    font-size: 13px;
}
.kp-nav-children .kp-nav-group > summary::before {
    width: 13px;
    margin-right: 5px;
    font-size: 16px;
}
.kp-nav-children .kp-nav-group .kp-nav-children::before {
    left: 47px;
}
.kp-nav-children .kp-nav-group .kp-nav-link {
    padding-left: 62px;
}

/* ============================================================
   Structure Diagnostics
   ============================================================ */
.kp-diagnostics-page { padding-bottom: 24px; }
.kp-diagnostics-intro { margin-bottom: 34px; }
.kp-diagnostics-summary,
.kp-diag-section { margin-top: 36px; }
.kp-diag-metrics {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}
.kp-diag-metric {
    min-height: 104px;
    padding: 18px;
    border: 1px solid var(--kp-border);
    border-radius: 12px;
    background: #fff;
}
.kp-diag-metric strong {
    display: block;
    margin-bottom: 6px;
    color: #1d2a36;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 30px;
    line-height: 1;
}
.kp-diag-metric span {
    color: #6a7682;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .035em;
    text-transform: uppercase;
}
.kp-diag-status {
    margin-top: 14px;
    padding: 12px 14px;
    color: #596674;
    background: #f5f7f9;
    border: 1px solid #e2e7ec;
    border-radius: 9px;
    font-size: 13px;
}
.kp-diag-list {
    overflow: hidden;
    border: 1px solid var(--kp-border);
    border-radius: 12px;
    background: #fff;
}
.kp-diag-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 16px;
    border-bottom: 1px solid #edf0f3;
}
.kp-diag-row:last-child { border-bottom: 0; }
.kp-diag-row > div {
    display: grid;
    gap: 3px;
    min-width: 0;
}
.kp-diag-row strong,
.kp-diag-row a {
    color: #263442;
    font-weight: 700;
    text-decoration: none;
}
.kp-diag-row a:hover { text-decoration: underline; }
.kp-diag-row span:not(.kp-diag-severity) {
    color: #73808d;
    font-size: 12px;
    overflow-wrap: anywhere;
}
.kp-diag-row--error { border-left: 3px solid #a74d3d; }
.kp-diag-row--warning { border-left: 3px solid #b28a35; }
.kp-diag-severity {
    flex: 0 0 auto;
    padding: 4px 7px;
    color: #80662f;
    background: #fffaf0;
    border: 1px solid rgba(216, 180, 90, .45);
    border-radius: 5px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .055em;
}
.kp-diag-row--error .kp-diag-severity {
    color: #8e4033;
    background: #fff5f2;
    border-color: rgba(167, 77, 61, .35);
}
.kp-diag-empty {
    padding: 18px;
    color: #687582;
    background: #f8fafb;
    border: 1px dashed #cad3dc;
    border-radius: 10px;
}
.kp-button--secondary {
    color: #394655;
    background: #fff;
    border: 1px solid var(--kp-border);
}
.kp-button--secondary:disabled {
    cursor: progress;
    opacity: .55;
}
.kp-card-grid--list { grid-template-columns: 1fr !important; }

@media (max-width: 1000px) {
    .kp-diag-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
    .kp-diag-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .kp-diag-row { align-items: flex-start; }
}

/* v0.1.12 - structure-driven topic enhancement */
.kp-topic-posts[hidden],
.kp-topic-explore[hidden] { display: none !important; }
.kp-topic-page.kp-page .kp-topic-explore,
.kp-topic-page.kp-page .kp-topic-posts { margin-left: auto; margin-right: auto; }
.kp-node-icon {
    display: inline-flex;
    width: 1.2em;
    height: 1.2em;
    margin-inline-end: .45em;
    vertical-align: -.2em;
    align-items: center;
    justify-content: center;
    flex: 0 0 1.2em;
}
.kp-node-icon img { display: block; width: 100%; height: 100%; object-fit: contain; }
.kp-topic-card-icon .kp-node-icon { margin: 0; width: 100%; height: 100%; }
