/* ===================================================== */
/* KNOWLEDGE PORTAL – Module-specific styles             */
/* kp-* prefix for all Knowledge Portal classes          */
/* Extends the shared bp-* design system from app.css    */
/* ===================================================== */

/* ── Layout shell ────────────────────────────────────── */

.kp-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #f8f9fa;
}

.kp-main {
    flex: 1;
    padding: 0 32px 48px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* ── Header overrides / extensions ───────────────────── */
/*  The kp-header reuses .bp-header from app.css but adds
    the three-column flex structure (left / centre / right). */

.kp-header {
    /* Override bp-header to support a centre column and ensure
       all header items are vertically centred (bp-header uses flex-end). */
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.kp-portal-name {
    font-size: 32px;
    font-weight: 600;
    color: #2a5fa3;
    white-space: nowrap;
}

.kp-header-centre {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.kp-header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Login button in the header — toolbar sizing comes from .bp-toolbar-control */
.kp-login-btn {
    white-space: nowrap;
}

/* Logout button in the header — toolbar sizing comes from .bp-toolbar-control */
.kp-logout-btn {
    white-space: nowrap;
}

/* Connect button in the header — toolbar sizing comes from .bp-toolbar-control */
.kp-connect-btn {
    text-decoration: none;
    white-space: nowrap;
}

/* Contact support button — toolbar sizing comes from .bp-toolbar-control */
.kp-support-btn {
    white-space: nowrap;
}

/* ── Welcome banner ──────────────────────────────────── */

.kp-welcome-banner {
    background-color: #fff;
    border-bottom: 1px solid #e5e5e5;
    padding: 40px 32px;
    margin: 0 -32px 32px;
    text-align: center;
}

.kp-welcome-title {
    font-size: 32px;
    font-weight: 700;
    color: #2a5fa3;
    margin: 0 0 12px;
}

.kp-welcome-description {
    font-size: 16px;
    color: #555;
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ── Product section ─────────────────────────────────── */

.kp-products-section {
    margin-top: 8px;
}

/* Responsive product card grid */
.kp-product-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    margin-top: 8px;
}

/* ── Product card ────────────────────────────────────── */

.kp-product-card {
    background-color: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: box-shadow 0.2s, border-color 0.2s, transform 0.15s;
    outline: none;
    width: 240px;
    flex-shrink: 0;
}

.kp-product-card:hover,
.kp-product-card:focus {
    box-shadow: 0 4px 16px rgba(42, 95, 163, 0.15);
    border-color: #2a5fa3;
    transform: translateY(-2px);
}

.kp-product-card-image {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.kp-product-card-image img {
    max-width: 80px;
    max-height: 80px;
    object-fit: contain;
}

.kp-product-card-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e6effd;
    border-radius: 50%;
    margin-bottom: 16px;
    color: #2a5fa3;
    font-size: 36px;
}

.kp-product-card-body {
    flex: 1;
    margin-bottom: 16px;
}

.kp-product-card-title {
    font-size: 18px;
    font-weight: 600;
    color: #2a5fa3;
    margin: 0;
}

.kp-product-card-footer {
    margin-top: auto;
}

/* ── Content section ─────────────────────────────────── */

.kp-content-section {
    margin-bottom: 40px;
}

/* ── Responsive breakpoints ──────────────────────────── */

@media (max-width: 768px) {
    .kp-main {
        padding: 0 16px 32px;
    }

    .kp-welcome-banner {
        padding: 24px 16px;
        margin: 0 -16px 24px;
    }

    .kp-welcome-title {
        font-size: 24px;
    }

    .kp-product-grid {
        gap: 16px;
    }

    .kp-product-card {
        width: 100%;
        max-width: 320px;
    }

    .kp-header {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .kp-header-right {
        gap: 0.5rem;
    }

    .kp-portal-name {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .kp-header-right .language-selector {
        display: none; /* collapse language selector on very small screens */
    }
}

/* ===================================================== */
/* PRODUCT SWITCHER                                       */
/* ===================================================== */

/* ── Trigger button (lives inside kp-header-centre) ─── */

.kp-switcher-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 6px 14px;
    border-radius: 4px;
    border: 1px solid transparent;
    background: transparent;
    font-size: 15px;
    font-weight: 600;
    color: #2a5fa3;
    user-select: none;
    transition: background 0.15s, border-color 0.15s;
    white-space: nowrap;
}

.kp-switcher-trigger:hover {
    background: var(--bp-hover-bg);
    border-color: var(--bp-hover-text);
}

.kp-switcher-product-name {
    font-size: 15px;
    font-weight: 600;
    color: #2a5fa3;
}

.kp-switcher-chevron {
    font-size: 12px;
    color: #2a5fa3;
    transition: transform 0.2s ease;
}

.kp-switcher-chevron-open {
    transform: rotate(180deg);
}

/* ── Invisible overlay (catches outside-clicks) ──────── */

.kp-switcher-overlay {
    position: fixed;
    inset: 0;
    z-index: 199;
    background: transparent;
}

/* ── Expanded panel ──────────────────────────────────── */

.kp-switcher-panel {
    position: fixed;
    top: 65px;          /* matches bp-header height (~65 px) */
    left: 0;
    right: 0;
    z-index: 200;
    background: #fff;
    border-bottom: 2px solid #2a5fa3;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    padding: 20px 32px;
    animation: kp-switcher-slide-in 0.18s ease;
}

@keyframes kp-switcher-slide-in {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.kp-switcher-products {
    display: flex;
    flex-direction: row;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 1400px;
    margin: 0 auto;
}

/* ── Individual product item in the panel ────────────── */

.kp-switcher-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 20px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    min-width: 120px;
    text-align: center;
    transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
    font-family: inherit;
}

.kp-switcher-item:hover {
    background: var(--bp-hover-bg);
    color: var(--bp-hover-text);
    border-color: var(--bp-hover-text);
    box-shadow: 0 2px 8px rgba(42, 95, 163, 0.15);
}

.kp-switcher-item-active {
    background: #fff;
    border: 2px solid #2a5fa3;
    color: inherit;
    box-shadow: 0 0 0 1px rgba(42, 95, 163, 0.15);
}

.kp-switcher-item-active:hover {
    background: var(--bp-hover-bg);
    color: var(--bp-hover-text);
    border-color: var(--bp-hover-text);
    box-shadow: 0 2px 8px rgba(42, 95, 163, 0.15);
}

.kp-switcher-item-icon {
    font-size: 28px;
    color: #2a5fa3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

/* Product thumbnail image inside the switcher item */
.kp-switcher-item-img {
    max-width: 40px;
    max-height: 40px;
    object-fit: contain;
    display: block;
}

.kp-switcher-item-name {
    font-size: 13px;
    font-weight: 600;
}

/* ===================================================== */
/* KNOWLEDGE SUB-NAVIGATION BAR (per-product)            */
/* ===================================================== */

.kp-nav-bar {
    background-color: #e6effd;
    display: flex;
    align-items: center;
    padding: 0 32px;
}

.kp-nav-tabs {
    display: flex;
    flex: 1;
    justify-content: center;
}

.kp-nav-tab {
    color: #000;
    padding: 12px 24px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: background 0.15s, border-color 0.15s;
    white-space: nowrap;
}

.kp-nav-tab:hover {
    background-color: var(--bp-hover-bg);
    color: var(--bp-hover-text);
    text-decoration: none;
}

.kp-nav-tab.active {
    background-color: #2a5fa3;
    color: #fff;
    border-bottom-color: transparent;
}

/* ── Responsive: switcher and nav bar ────────────────── */

@media (max-width: 768px) {
    .kp-switcher-panel {
        padding: 16px;
    }

    .kp-switcher-products {
        gap: 10px;
    }

    .kp-switcher-item {
        min-width: 100px;
        padding: 12px 14px;
    }

    .kp-nav-bar {
        padding: 0 16px;
        overflow-x: auto;
    }

    .kp-nav-tab {
        padding: 10px 16px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .kp-switcher-products {
        flex-direction: column;
        gap: 8px;
    }

    .kp-switcher-item {
        flex-direction: row;
        min-width: unset;
        width: 100%;
        text-align: left;
        padding: 10px 16px;
    }
}

/* ===================================================== */
/* ARTICLE CARD (news / events)                          */
/* ===================================================== */

.kp-article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.kp-article-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: box-shadow 0.2s, border-color 0.2s;
}

/* Clickable variant — indicates interactivity */
.kp-article-card--clickable {
    cursor: pointer;
}

.kp-article-card:hover {
    box-shadow: 0 4px 16px rgba(42, 95, 163, 0.12);
    border-color: #2a5fa3;
}

.kp-article-card-image {
    height: 160px;
    overflow: hidden;
}

.kp-article-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kp-article-card-image-placeholder {
    height: 100px;
    background: #e6effd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #2a5fa3;
}

.kp-article-card-body {
    flex: 1;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.kp-article-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    align-self: flex-start;
}

.kp-badge-news     { background: #ddeeff; color: #1a4b8c; }
.kp-badge-event    { background: #fff3cd; color: #856404; }
.kp-badge-release  { background: #d4edda; color: #155724; }
.kp-badge-document { background: #f8d7da; color: #721c24; }
.kp-badge-elearning{ background: #e2d9f3; color: #4a1f8b; }
.kp-badge-tip      { background: #fff9c4; color: #6d5800; }
.kp-badge-video    { background: #fce4ec; color: #880e4f; }
.kp-badge-onboarding { background: #e0f2e9; color: #1b5e20; }
.kp-badge-download { background: #e3f2fd; color: #0d47a1; }

.kp-article-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.4;
}

.kp-article-summary {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    margin: 0;
    flex: 1;
}

.kp-article-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
}

.kp-article-date {
    font-size: 12px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 4px;
}

.kp-article-link {
    font-size: 13px;
    font-weight: 500;
    color: #2a5fa3;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
}

.kp-article-link:hover { text-decoration: underline; }

/* ── Article card footer action group ───────────────── */

.kp-article-card-footer-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ── Editor controls (Session 6) ─────────────────────
   All rules use the kp-editor-* / kp-card-edit-icon /
   kp-onboarding-edit-icon prefixes. No global overrides. */

/* "Add content" button in the portal header */
.kp-editor-add-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    padding: 6px 14px;
    border-radius: 6px;
    white-space: nowrap;
}

/* Pencil icon on article cards */
.kp-card-edit-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid #c5d5f7;
    border-radius: 4px;
    color: #2a5fa3;
    padding: 3px 6px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s;
    line-height: 1;
}

.kp-card-edit-icon:hover {
    background: #e8f0fe;
    color: #1a3f7a;
    border-color: #2a5fa3;
}

/* Pencil icon next to the Onboarding page header */
.kp-onboarding-edit-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid #c5d5f7;
    border-radius: 4px;
    color: #2a5fa3;
    padding: 4px 8px;
    font-size: 16px;
    cursor: pointer;
    vertical-align: middle;
    margin-left: 8px;
    transition: background-color 0.15s, color 0.15s;
    line-height: 1;
}

.kp-onboarding-edit-icon:hover {
    background: #e8f0fe;
    color: #1a3f7a;
    border-color: #2a5fa3;
}



.kp-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.kp-section-header .section-title { margin-bottom: 0; }

/* ===================================================== */
/* EVENTS LIST                                           */
/* ===================================================== */

.kp-events-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.kp-event-row {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 16px 20px;
    transition: box-shadow 0.2s;
}

.kp-event-row:hover {
    box-shadow: 0 2px 8px rgba(42, 95, 163, 0.1);
}

.kp-event-date-block {
    min-width: 56px;
    text-align: center;
    background: #2a5fa3;
    color: #fff;
    border-radius: 6px;
    padding: 8px 10px;
    line-height: 1.1;
}

.kp-event-day {
    display: block;
    font-size: 24px;
    font-weight: 700;
}

.kp-event-month {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.kp-event-content {
    flex: 1;
    min-width: 0; /* prevent overflow on long titles */
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* ── Event card row 1: title + location/organizer badges ── */
.kp-event-header-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.kp-event-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    flex-shrink: 1;
}

.kp-event-badge {
    font-size: 12px;
    font-weight: 400;
    white-space: nowrap;
}

.kp-event-badge i {
    margin-right: 3px;
}

/* ── Event card row 2: summary + actions ── */
.kp-event-summary-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
}

.kp-event-summary {
    font-size: 14px;
    color: #555;
    margin: 0;
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kp-event-actions {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-shrink: 0;
}

/* ===================================================== */
/* HOME — QUICK LINKS + CONTACT (bottom two-col grid)    */
/* ===================================================== */

.kp-home-bottom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

/* Quick links */

.kp-quick-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.kp-quick-link-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    text-decoration: none;
    color: #2a5fa3;
    font-weight: 500;
    font-size: 15px;
    transition: background 0.15s, box-shadow 0.15s;
}

.kp-quick-link-item i {
    font-size: 22px;
    flex-shrink: 0;
}

.kp-quick-link-item:hover {
    background: var(--bp-hover-bg);
    color: var(--bp-hover-text);
    box-shadow: 0 2px 8px rgba(42, 95, 163, 0.1);
    text-decoration: none;
}

/* Contact list */

.kp-contact-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.kp-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.kp-contact-avatar {
    font-size: 32px;
    color: #2a5fa3;
    flex-shrink: 0;
}

.kp-contact-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.kp-contact-name {
    font-size: 15px;
    color: #1a1a1a;
}

.kp-contact-role {
    font-size: 13px;
    color: #888;
}

.kp-contact-email {
    font-size: 13px;
    color: #2a5fa3;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
}

.kp-contact-email:hover { text-decoration: underline; }

/* ===================================================== */
/* ONBOARDING PAGE                                       */
/* ===================================================== */

.kp-onboarding-intro-text {
    font-size: 16px;
    line-height: 1.7;
    color: #333;
    max-width: 820px;
}

/* System requirements grid */

.kp-requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.kp-requirement-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    padding: 12px 16px;
}

.kp-req-icon {
    color: #28a745;
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

.kp-req-label {
    display: block;
    font-size: 13px;
    color: #888;
}

.kp-req-value {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
}

/* Numbered installation steps */

.kp-steps-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
}

.kp-steps-list::before {
    content: "";
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e5e5e5;
    z-index: 0;
}

.kp-step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 0 0 28px;
    position: relative;
    z-index: 1;
}

.kp-step-number {
    min-width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #2a5fa3;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.kp-step-body {
    flex: 1;
    padding-top: 10px;
}

.kp-step-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 4px;
}

.kp-step-description {
    font-size: 14px;
    color: #555;
    margin: 0 0 10px;
    line-height: 1.5;
}

/* First steps checklist */

.kp-checklist {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.kp-checklist-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: #333;
}

.kp-checklist-icon {
    font-size: 20px;
    color: #2a5fa3;
    flex-shrink: 0;
}

/* FAQ accordion */

.kp-faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.kp-faq-item {
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}

.kp-faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 14px 20px;
    text-align: left;
    font-size: 15px;
    font-weight: 500;
    color: #1a1a1a;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    transition: background 0.15s;
    font-family: inherit;
}

.kp-faq-question:hover,
.kp-faq-item.open .kp-faq-question {
    background: var(--bp-hover-bg);
    color: var(--bp-hover-text);
}

.kp-faq-answer {
    padding: 0 20px 16px;
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    border-top: 1px solid #e5e5e5;
}

.kp-faq-answer p { margin: 12px 0 0; }

/* ===================================================== */
/* SOFTWARE PAGE                                         */
/* ===================================================== */

/* Current version banner */

.kp-version-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    background: linear-gradient(135deg, #1e4575 0%, #2a5fa3 100%);
    color: #fff;
    border-radius: 10px;
    padding: 28px 32px;
}

.kp-version-banner-left {
    display: flex;
    align-items: center;
    gap: 24px;
}

.kp-version-badge-large {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 28px;
    font-weight: 700;
    white-space: nowrap;
}

.kp-version-badge-large i {
    font-size: 36px;
    opacity: 0.9;
}

.kp-version-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.kp-version-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    opacity: 0.85;
}

.kp-version-summary {
    font-size: 15px;
    line-height: 1.5;
    margin: 0;
    opacity: 0.95;
    max-width: 480px;
}

.kp-version-banner-right .bp-btn-primary {
    background: #fff;
    color: #2a5fa3;
    border: none;
    font-weight: 600;
}

/* Release list */

.kp-release-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.kp-release-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 20px 24px;
    transition: box-shadow 0.2s;
}

.kp-release-card:hover {
    box-shadow: 0 2px 10px rgba(42, 95, 163, 0.1);
}

.kp-release-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.kp-release-version {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 17px;
    font-weight: 700;
    color: #2a5fa3;
}

.kp-release-date {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #888;
}

.kp-release-latest-badge {
    background: #28a745;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.kp-release-title {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 4px;
}

.kp-release-summary {
    font-size: 14px;
    color: #555;
    margin: 0 0 14px;
    line-height: 1.5;
}

.kp-release-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.kp-release-changelog {
    margin-top: 16px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e5e5e5;
}

.kp-changelog-content {
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
    color: #333;
    white-space: pre-wrap;
    margin: 0;
    line-height: 1.6;
}

/* Download cards grid */

.kp-download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

.kp-download-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: box-shadow 0.2s;
}

.kp-download-card:hover {
    box-shadow: 0 2px 10px rgba(42, 95, 163, 0.1);
}

.kp-download-icon {
    font-size: 30px;
    color: #2a5fa3;
    flex-shrink: 0;
}

.kp-download-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.kp-download-title {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.kp-download-version,
.kp-download-size {
    font-size: 12px;
    color: #888;
}

/* Known issues table */

.kp-issues-table .kp-issue-id {
    font-family: 'Courier New', Courier, monospace;
    font-size: 12px;
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 4px;
}

.kp-issue-status {
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.kp-issue-status-open    { background: #fce4ec; color: #c62828; }
.kp-issue-status-pending { background: #fff9c4; color: #6d5800; }
.kp-issue-status-fixed   { background: #e0f2e9; color: #1b5e20; }

/* ===================================================== */
/* GALLERY TILES (eLearning, Videos, Tips)               */
/* ===================================================== */

.kp-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
}

.kp-gallery-tile {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow 0.2s, border-color 0.2s, transform 0.15s;
    outline: none;
}

.kp-gallery-tile:hover,
.kp-gallery-tile:focus {
    box-shadow: 0 4px 16px rgba(42, 95, 163, 0.15);
    border-color: #2a5fa3;
    transform: translateY(-2px);
}

.kp-gallery-tile-thumb {
    position: relative;
    height: 140px;
    background: #e6effd;
    overflow: hidden;
}

.kp-gallery-tile-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kp-gallery-tile-overlay {
    position: absolute;
    inset: 0;
    background: rgba(42, 95, 163, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.kp-gallery-tile:hover .kp-gallery-tile-overlay {
    opacity: 1;
}

.kp-gallery-play-icon {
    font-size: 48px;
    color: #fff;
}

.kp-gallery-tile-icon-placeholder {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 52px;
    color: #2a5fa3;
    background: #e6effd;
}

.kp-gallery-tile-body {
    flex: 1;
    padding: 14px 16px 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.kp-gallery-tile-topic {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #2a5fa3;
}

.kp-gallery-tile-title {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.4;
}

.kp-gallery-tile-duration {
    font-size: 12px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 4px;
}

.kp-gallery-tile-footer {
    padding: 12px 16px;
    border-top: 1px solid #f0f0f0;
}

/* ===================================================== */
/* VIDEO MODAL (Tips & Tricks inline player)             */
/* ===================================================== */

.kp-video-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 900;
    backdrop-filter: blur(2px);
}

.kp-video-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 901;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.35);
    width: min(860px, 94vw);
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.kp-video-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid #e5e5e5;
}

.kp-video-modal-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.kp-video-modal-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #555;
    padding: 4px 6px;
    border-radius: 4px;
    line-height: 1;
    transition: background 0.15s;
}

.kp-video-modal-close:hover { background: #f0f0f0; color: #1a1a1a; }

.kp-video-modal-body {
    flex: 1;
    overflow: auto;
}

/* Responsive video wrapper (16:9) */
.kp-video-responsive {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
}

.kp-video-responsive iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.kp-video-player {
    width: 100%;
    display: block;
    background: #000;
}

.kp-video-modal-footer {
    padding: 14px 24px;
    border-top: 1px solid #e5e5e5;
    background: #fafafa;
}

.kp-video-description {
    font-size: 14px;
    color: #555;
    margin: 0;
    line-height: 1.5;
}

/* ===================================================== */
/* ARTICLE MODAL (News / Event / Release Note viewer)   */
/* ===================================================== */

.kp-article-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 900;
    backdrop-filter: blur(2px);
}

.kp-article-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(90vw, 820px);
    max-height: 85vh;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 901;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.kp-article-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 1rem 1.25rem 0.75rem;
    border-bottom: 1px solid #eee;
    gap: 1rem;
    flex-shrink: 0;
}

.kp-article-modal-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.kp-article-modal-topic {
    font-size: 12px;
    color: #666;
    background: #f0f4ff;
    border-radius: 4px;
    padding: 2px 8px;
}

.kp-article-modal-close {
    background: none;
    border: none;
    font-size: 18px;
    color: #555;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    line-height: 1;
    flex-shrink: 0;
    transition: background 0.15s, color 0.15s;
}
.kp-article-modal-close:hover { background: #f0f0f0; color: #1a1a1a; }

.kp-article-modal-thumb {
    flex-shrink: 0;
    max-height: 220px;
    overflow: hidden;
}
.kp-article-modal-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kp-article-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem 1.5rem;
}

.kp-article-modal-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 0.5rem;
    line-height: 1.3;
}

.kp-article-modal-date {
    font-size: 13px;
    color: #888;
    margin: 0 0 1rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.kp-article-modal-author {
    margin-left: 1rem;
}

.kp-article-modal-author::before {
    content: '·';
    margin-right: 0.5rem;
    opacity: 0.5;
}

.kp-article-modal-summary {
    font-size: 15px;
    color: #444;
    line-height: 1.65;
    border-left: 3px solid #2a5fa3;
    padding-left: 1rem;
    margin-bottom: 1.25rem;
}

/* ── Event details panel ──────────────────────────────────── */
.kp-event-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: #f4f7fd;
    border: 1px solid #dde4f0;
    border-radius: 8px;
    padding: 0.875rem 1rem;
    margin-bottom: 1.25rem;
    font-size: 14px;
    color: #333;
}

.kp-event-detail-row {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
}

.kp-event-detail-row i {
    font-size: 1rem;
    color: #2a5fa3;
    flex-shrink: 0;
    margin-top: 1px;
}

.kp-event-detail-row a {
    color: #2a5fa3;
    text-decoration: none;
    font-weight: 500;
}

.kp-event-detail-row a:hover {
    text-decoration: underline;
}

.kp-article-modal-content {
    font-size: 14px;
    color: #333;
    line-height: 1.7;
}
.kp-article-modal-content img { max-width: 100%; height: auto; border-radius: 6px; }
.kp-article-modal-content h1,
.kp-article-modal-content h2,
.kp-article-modal-content h3 { margin-top: 1.25rem; margin-bottom: 0.5rem; }
.kp-article-modal-content p  { margin-bottom: 0.85rem; }

.kp-article-modal-secondary-image {
    margin-top: 1.5rem;
    width: 100%;
    overflow: hidden;
    border-radius: 6px;
}
.kp-article-modal-secondary-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.kp-article-modal-footer {
    padding: 0.75rem 1.5rem 1rem;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    flex-shrink: 0;
    gap: 0.5rem;
}

@media (max-width: 600px) {
    .kp-article-modal {
        width: 96vw;
        max-height: 92vh;
    }
    .kp-article-modal-title { font-size: 18px; }
}

/* ===================================================== */
/* EDITOR MODAL (Session 7)                             */
/* kp-editor-modal-* prefix                             */
/* ===================================================== */

.kp-editor-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(92vw, 920px);
    max-height: 90vh;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    z-index: 901;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    outline: none; /* remove focus ring on the panel itself */
}

/* EditForm renders a <form> that wraps the header/body/footer. Without this rule
   the form is not a flex container, so the body's flex:1 + overflow-y:auto have
   no effect and the editor cannot scroll vertically. */
.kp-editor-modal > form {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.kp-editor-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem 0.875rem;
    border-bottom: 2px solid #e8f0fe;
    gap: 0.75rem;
    flex-shrink: 0;
    background: #f8faff;
}

.kp-editor-modal-header-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 0;
}

.kp-editor-modal-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kp-editor-modal-type-badge {
    font-size: 13px;
    font-weight: 400;
    color: #2a5fa3;
}

.kp-editor-back-btn {
    background: none;
    border: none;
    font-size: 18px;
    color: #555;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    line-height: 1;
    flex-shrink: 0;
    transition: background 0.15s, color 0.15s;
}
.kp-editor-back-btn:hover { background: #e8f0fe; color: #2a5fa3; }

.kp-editor-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.kp-editor-modal-footer {
    padding: 0.75rem 1.5rem;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    flex-shrink: 0;
    background: #fafafa;
}

/* ── Content-type picker ──────────────────────────── */

.kp-editor-type-picker {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding: 1.5rem;
}

.kp-editor-type-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.625rem;
    padding: 1.25rem 1rem;
    border: 2px solid #dde4f0;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
    text-align: center;
}
.kp-editor-type-card:hover {
    border-color: var(--bp-hover-text);
    background: var(--bp-hover-bg);
    box-shadow: 0 4px 12px rgba(42, 95, 163, 0.12);
}

/* Disabled (Onboarding singleton already exists) */
.kp-editor-type-card--disabled,
.kp-editor-type-card--disabled:hover {
    opacity: 0.45;
    cursor: not-allowed;
    border-color: #dde4f0;
    background: #f8f9fb;
    box-shadow: none;
}

.kp-editor-type-exists-badge {
    font-size: 0.8rem;
    color: #2a5fa3;
}

.kp-editor-type-icon {
    font-size: 2rem;
    color: #2a5fa3;
}

.kp-editor-type-name {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
}

/* ── Editor form layout ───────────────────────────── */

.kp-editor-fieldset {
    border: 1px solid #e0e8f4;
    border-radius: 8px;
    padding: 0.875rem 1rem;
    margin: 0;
}

.kp-editor-legend {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #5577aa;
    padding: 0 0.5rem;
}

.kp-editor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.75rem;
    margin-top: 0.625rem;
}

.kp-editor-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.kp-editor-label {
    font-size: 12px;
    font-weight: 600;
    color: #444;
}

.kp-editor-validation {
    font-size: 12px;
    color: #d32f2f;
    margin-top: 2px;
}

/* ── Content-block editor ─────────────────────────── */

.kp-content-block-editor {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.kp-block-editor-row {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    padding: 0.625rem 0.75rem;
    border: 1px solid #e0e8f4;
    border-radius: 6px;
    background: #fafbff;
}

.kp-block-editor-controls {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-shrink: 0;
}

.kp-block-btn {
    background: #f0f4ff;
    border: 1px solid #c5d5f7;
    border-radius: 4px;
    color: #2a5fa3;
    font-size: 13px;
    padding: 3px 7px;
    cursor: pointer;
    line-height: 1;
    transition: background 0.12s, color 0.12s;
}
.kp-block-btn:hover:not(:disabled) { background: var(--bp-hover-bg); }
.kp-block-btn:disabled { opacity: 0.35; cursor: default; }
.kp-block-btn--danger { color: #c62828; border-color: #f5c6c6; background: #fff8f8; }
.kp-block-btn--danger:hover { background: #fde8e8; border-color: #c62828; }

.kp-block-editor-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.kp-block-type-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #2a5fa3;
}

.kp-block-textarea {
    resize: vertical;
    min-height: 64px;
}

.kp-list-item-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.kp-block-editor-add-row {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* ── Image upload field ───────────────────────────── */

.kp-image-upload-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.kp-image-upload-label {
    font-size: 12px;
    font-weight: 600;
    color: #444;
}

.kp-image-upload-area {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.kp-image-drop-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 1.25rem 1rem;
    border: 2px dashed #aac0e0;
    border-radius: 8px;
    background: #f5f8ff;
    color: #4a6fa5;
    cursor: pointer;
    font-size: 13px;
    text-align: center;
    transition: border-color 0.15s, background 0.15s;
}
.kp-image-drop-zone:hover { border-color: #2a5fa3; background: #eaf0ff; }
.kp-image-drop-zone i { font-size: 2rem; opacity: 0.7; }

.kp-image-file-input {
    display: none;
}

.kp-image-preview {
    position: relative;
    width: 100%;
    max-height: 160px;
    overflow: hidden;
    border-radius: 6px;
    border: 1px solid #dde4f0;
}
.kp-image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.kp-image-clear-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(255, 255, 255, 0.85);
    border: none;
    border-radius: 50%;
    font-size: 18px;
    color: #c62828;
    cursor: pointer;
    padding: 2px 4px;
    line-height: 1;
    transition: background 0.12s;
}
.kp-image-clear-btn:hover { background: #fff; }

.kp-editor-image-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 0.5rem;
}

.kp-image-error {
    font-size: 12px;
    color: #c62828;
    margin: 0;
}

@media (max-width: 600px) {
    .kp-editor-modal {
        width: 98vw;
        max-height: 96vh;
    }
    .kp-editor-type-picker {
        grid-template-columns: repeat(2, 1fr);
    }
    .kp-editor-grid { grid-template-columns: 1fr; }
    .kp-editor-image-row { grid-template-columns: 1fr; }
}

/* ===================================================== */
/* PDF MODAL (inline document viewer)                   */
/* ===================================================== */

.kp-pdf-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 900;
    backdrop-filter: blur(2px);
}

.kp-pdf-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 901;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.35);
    /* ≈ 2/3 of viewport width and height */
    width: min(900px, 90vw);
    height: min(85vh, 900px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.kp-pdf-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid #e5e5e5;
    flex-shrink: 0;
}

.kp-pdf-modal-title {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    margin-right: 12px;
}

.kp-pdf-modal-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.kp-pdf-modal-open-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #2a5fa3;
    text-decoration: none;
    padding: 4px 10px;
    border: 1px solid #2a5fa3;
    border-radius: 4px;
    transition: background 0.15s;
}

.kp-pdf-modal-open-btn:hover {
    background: #eef3fb;
}

.kp-pdf-modal-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #555;
    padding: 4px 6px;
    border-radius: 4px;
    line-height: 1;
    transition: background 0.15s;
}

.kp-pdf-modal-close:hover { background: #f0f0f0; color: #1a1a1a; }

.kp-pdf-modal-body {
    flex: 1;
    overflow: hidden;
}

.kp-pdf-viewer {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

@media (max-width: 600px) {
    .kp-pdf-modal {
        width: 98vw;
        height: 92vh;
        border-radius: 6px;
    }
}

/* ===================================================== */
/* DOCUMENT TABLE (PDF Library)                         */
/* ===================================================== */

.kp-doc-search-bar {
    margin-bottom: 12px;
    max-width: 420px;
}

.kp-doc-table .kp-doc-th-icon {
    width: 36px;
}

.kp-doc-icon-cell { text-align: center; }

.kp-doc-icon {
    font-size: 22px;
    color: #e53935;
}

.kp-doc-title {
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
    display: block;
}

/* Clickable title variant — renders as styled text with an underline hover,
   matching the visual weight of .kp-doc-title but indicating interactivity */
.kp-doc-title-btn {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    color: #2a5fa3;
    cursor: pointer;
    text-align: left;
    display: block;
    text-decoration: none;
}
.kp-doc-title-btn:hover {
    text-decoration: underline;
    color: #1a3d6e;
}
.kp-doc-title-btn:focus-visible {
    outline: 2px solid #2a5fa3;
    outline-offset: 2px;
    border-radius: 2px;
}

.kp-doc-topic {
    font-size: 11px;
    color: #888;
    display: block;
}

.kp-doc-language {
    font-size: 13px;
    color: #555;
    white-space: nowrap;
}

.kp-doc-filesize {
    font-size: 13px;
    color: #888;
    white-space: nowrap;
}

.kp-doc-action-cell { white-space: nowrap; }

/* ===================================================== */
/* SESSION 12 – DOCUMENT LIBRARY (filter, sort, paging) */
/* ===================================================== */

/* ── Filter bar ──────────────────────────────────── */
.kp-doc-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 16px;
}

.kp-doc-filter-search {
    flex: 0 1 260px;
    min-width: 160px;
}

.kp-doc-filter-select {
    flex: 0 1 180px;
    min-width: 120px;
}

.kp-doc-filter-clear {
    flex-shrink: 0;
}

/* ── Sortable column headers ─────────────────────── */
.kp-doc-th-sortable {
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}

.kp-doc-th-sortable:hover {
    background: #f0f4fb;
}

.kp-sort-icon {
    display: inline-block;
    width: 14px;
    margin-left: 4px;
    color: #bbb;
    font-size: 11px;
}

.kp-sort-icon.active {
    color: #1a73e8;
}

/* ── Tag pills (Topic / Discipline) ─────────────── */
.kp-doc-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    background: #f0f4fb;
    color: #3c6bc4;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
}

/* ── Date column ─────────────────────────────────── */
.kp-doc-date-cell { white-space: nowrap; }

.kp-doc-date {
    font-size: 13px;
    color: #888;
}

/* ── Pagination bar ──────────────────────────────── */
.kp-doc-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--bp-border-gray, #e0e0e0);
    flex-wrap: wrap;
    gap: 8px;
}

.kp-doc-pagination-count {
    font-size: 13px;
    color: #666;
}

.kp-doc-pagination-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.kp-doc-pagination-page {
    font-size: 13px;
    color: #444;
    min-width: 56px;
    text-align: center;
}

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 768px) {
    .kp-doc-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .kp-doc-filter-search,
    .kp-doc-filter-select {
        flex: 1 1 100%;
    }

    /* Hide Discipline and Published columns on small screens */
    .kp-doc-table th:nth-child(4),
    .kp-doc-table td:nth-child(4),
    .kp-doc-table th:nth-child(6),
    .kp-doc-table td:nth-child(6) {
        display: none;
    }
}

/* ===================================================== */
/* SESSION 8 RESPONSIVE ADDITIONS                        */
/* ===================================================== */

@media (max-width: 900px) {
    .kp-home-bottom-grid {
        grid-template-columns: 1fr;
    }

    .kp-version-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .kp-version-banner-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

@media (max-width: 768px) {
    .kp-article-grid,
    .kp-gallery-grid,
    .kp-download-grid {
        grid-template-columns: 1fr;
    }

    .kp-requirements-grid {
        grid-template-columns: 1fr;
    }

    .kp-event-row {
        flex-wrap: wrap;
    }

    .kp-video-modal {
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        transform: none;
        border-radius: 0;
        width: 100%;
        max-height: 100vh;
    }

    .kp-steps-list::before { display: none; }
}

@media (max-width: 480px) {
    .kp-event-summary-row { flex-wrap: wrap; }
    .kp-event-actions { width: 100%; justify-content: flex-end; }
    .kp-event-summary { white-space: normal; }

    .kp-release-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
}

/* ===================================================== */
/* SESSION 10 — FUTUREPACK BADGE & SIGN-IN BANNER        */
/* ===================================================== */

/* ── FuturePackBadge ──────────────────────────────────── */

.kp-fp-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
}

/* Public / None */
.kp-fp-badge-none {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

/* Basic */
.kp-fp-badge-basic {
    background: #e3f2fd;
    color: #1565c0;
    border: 1px solid #90caf9;
}

/* Pro */
.kp-fp-badge-pro {
    background: #f3e5f5;
    color: #6a1b9a;
    border: 1px solid #ce93d8;
}

/* Ultimate */
.kp-fp-badge-ultimate {
    background: #fff3e0;
    color: #e65100;
    border: 1px solid #ffcc80;
}

/* Unknown / unrecognised tier */
.kp-fp-badge-unknown {
    background: #f5f5f5;
    color: #555;
    border: 1px solid #ccc;
}

.kp-fp-badge-label {
    line-height: 1;
}

/* ── SignInBanner ─────────────────────────────────────── */

.kp-signin-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 100%);
    border: 1px solid #c5d5f7;
    border-left: 4px solid #1a73e8;
    border-radius: 8px;
    margin: 20px 0;
}

.kp-signin-banner-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: #1a73e8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
}

.kp-signin-banner-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.kp-signin-banner-message {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
}

.kp-signin-banner-hint {
    font-size: 13px;
    color: #555;
}

.kp-signin-banner-btn {
    flex-shrink: 0;
    white-space: nowrap;
}

/* ── Responsive ──────────────────────────────────────── */

@media (max-width: 600px) {
    .kp-signin-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 14px 16px;
    }

    .kp-signin-banner-btn {
        width: 100%;
        text-align: center;
    }
}

/* ── Onboarding section sub-editors (OnboardingEditorSections.razor) ───────── */

.kp-onb-section {
    border: 1px solid #dde1e7;
    border-radius: 6px;
    margin-bottom: 8px;
    overflow: hidden;
}

.kp-onb-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 14px;
    background: #f5f7fa;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    transition: background 0.15s;
}

.kp-onb-section-header:hover,
.kp-onb-section--open .kp-onb-section-header {
    background: #eaeef4;
}

.kp-onb-section-title {
    flex: 1;
}

.kp-onb-section-body {
    padding: 12px 14px 14px;
    border-top: 1px solid #dde1e7;
    background: #fff;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Public landing page — sign-in banner and customer-entry warning
   ═══════════════════════════════════════════════════════════════════════════ */

.bp-landing-signin-banner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    background-color: #e3f0fb;
    border: 1px solid #bcd5ef;
    border-radius: 6px;
    padding: 2rem 2.5rem;
    margin: 2rem 0 1rem;
    text-align: center;
}

.bp-landing-signin-text {
    font-size: 1rem;
    color: #1a3a5c;
    margin: 0;
    max-width: 680px;
    line-height: 1.6;
}

.bp-landing-signin-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

@media (max-width: 576px) {
    .bp-landing-signin-buttons {
        flex-direction: column;
        width: 100%;
    }

    .bp-landing-signin-buttons .bp-btn {
        width: 100%;
        text-align: center;
    }
}

/* Customer-entry no-access warning card */
.bp-customer-entry-warning {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    padding: 2.5rem 2rem;
    max-width: 600px;
    margin: 2rem auto;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.bp-customer-entry-warning-icon {
    font-size: 2.5rem;
    color: #2a5fa3;
}

.bp-customer-entry-warning-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #2a5fa3;
    margin: 0;
}

.bp-customer-entry-warning-message {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    margin: 0;
}
