/* =========================================================
   JUSOOR V2 — Knowledge
   ========================================================= */

.kn-page {
    padding: 22px 0 64px;
    background: #f4f7f9;
    color: #173149;
}


/* Breadcrumb */

.kn-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;

    margin-bottom: 14px;

    color: #81909a;
    font-size: 12px;
}

.kn-breadcrumb a {
    color: #286b94;
    text-decoration: none;
}

.kn-breadcrumb strong {
    color: #173149;
}


/* Shared */

.kn-eyebrow {
    margin: 0 0 7px;

    color: #c49a3b;

    font-size: 12px;
    font-weight: 800;
}


/* Hero */

.kn-hero {
    position: relative;
    overflow: hidden;

    padding: 36px;

    border-radius: 18px;
    border-bottom: 3px solid #cda94f;

    background:
        linear-gradient(
            135deg,
            #073654 0%,
            #052a43 52%,
            #031b2b 100%
        );

    color: #fff;

    box-shadow:
        0 14px 32px rgba(10,42,63,.08);
}

.kn-hero::after {
    content: "";

    position: absolute;
    left: -100px;
    top: -125px;

    width: 320px;
    height: 320px;

    border-radius: 50%;

    background:
        rgba(255,255,255,.025);
}

.kn-hero__content {
    position: relative;
    z-index: 1;
}

.kn-hero h1 {
    margin: 0;

    color: #fff;

    font-size: 34px;
    font-weight: 800;

    line-height: 1.35;
}

.kn-hero p:not(.kn-eyebrow) {
    max-width: 760px;

    margin: 11px 0 0;

    color: rgba(255,255,255,.8);

    font-size: 13px;
    line-height: 2;
}


/* Stats / Knowledge types */

.kn-stats {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0,1fr));

    gap: 10px;

    margin-top: 15px;
}

.kn-stat {
    position: relative;

    display: block;
    min-width: 0;

    padding: 17px;

    background: #fff;

    border: 1px solid #dfe7ec;
    border-radius: 12px;

    color: inherit;
    text-decoration: none;

    box-shadow:
        0 5px 16px rgba(15,49,72,.035);

    transition:
        transform .18s ease,
        border-color .18s ease,
        box-shadow .18s ease,
        background .18s ease;
}

.kn-stat span {
    display: block;

    color: #758793;

    font-size: 10px;
}

.kn-stat strong {
    display: block;

    margin-top: 8px;

    color: #173149;

    font-size: 27px;
    font-weight: 800;
}

.kn-stat small {
    display: block;

    margin-top: 7px;

    color: #8a989f;

    font-size: 9px;
    line-height: 1.6;
}

.kn-stat--link {
    cursor: pointer;
}

.kn-stat--link::after {
    content: "←";

    position: absolute;
    left: 15px;
    bottom: 15px;

    color: #b99a56;

    font-size: 15px;
    font-weight: 800;

    opacity: .72;
}

.kn-stat--link:hover {
    transform: translateY(-2px);

    border-color: #cdbb86;

    background: #fffdf8;

    box-shadow:
        0 10px 24px rgba(15,49,72,.07);
}

.kn-stat--link.is-active {
    border-color: #b99a56;

    background:
        linear-gradient(
            180deg,
            #fffdf8,
            #fff
        );

    box-shadow:
        inset 0 -3px 0 #cda94f,
        0 8px 20px rgba(15,49,72,.055);
}

.kn-stat--link.is-active span,
.kn-stat--link.is-active small {
    color: #8d6d27;
}

.kn-stat--link:focus-visible {
    outline: 3px solid rgba(185,154,86,.20);
    outline-offset: 2px;
}


/* Toolbar */

.kn-toolbar {
    margin-top: 24px;

    padding: 17px;

    background: #fff;

    border: 1px solid #dfe7ec;
    border-radius: 13px;
}

.kn-filter {
    display: grid;

    grid-template-columns:
        minmax(230px,2fr)
        repeat(3,minmax(145px,1fr))
        auto;

    align-items: end;

    gap: 10px;
}

.kn-field {
    min-width: 0;
}

.kn-field label {
    display: block;

    margin-bottom: 6px;

    color: #687c89;

    font-size: 10px;
    font-weight: 800;
}

.kn-field input,
.kn-field select {
    width: 100%;
    height: 42px;

    padding: 0 11px;

    background: #f8fafb;

    border: 1px solid #dce5ea;
    border-radius: 8px;

    color: #173149;

    font: inherit;
    font-size: 11px;

    outline: none;
}

.kn-field input:focus,
.kn-field select:focus {
    border-color: #b99a56;
}

.kn-filter-actions {
    display: flex;
    align-items: center;

    gap: 8px;
}

.kn-filter-actions button {
    height: 42px;

    padding: 0 18px;

    border: 0;
    border-radius: 8px;

    background: #173149;
    color: #fff;

    font: inherit;
    font-size: 11px;
    font-weight: 800;

    cursor: pointer;
}

.kn-filter-actions a {
    white-space: nowrap;

    color: #748792;

    font-size: 10px;
    text-decoration: none;
}


/* Results */

.kn-results {
    margin-top: 34px;
}

.kn-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 18px;

    margin-bottom: 15px;
}

.kn-section-head h2 {
    margin: 0;

    color: #173149;

    font-size: 23px;
    font-weight: 800;
}

.kn-section-head > span {
    padding: 6px 9px;

    background: #e9eef1;

    border-radius: 7px;

    color: #70838f;

    font-size: 10px;
}


/* Grid */

.kn-grid {
    display: grid;

    grid-template-columns:
        repeat(3,minmax(0,1fr));

    gap: 14px;
}


/* Card */

.kn-card {
    overflow: hidden;

    background: #fff;

    border: 1px solid #dfe7ec;
    border-radius: 13px;

    box-shadow:
        0 6px 18px rgba(15,49,72,.035);

    transition:
        transform .18s ease,
        box-shadow .18s ease;
}

.kn-card:hover {
    transform: translateY(-2px);

    box-shadow:
        0 12px 27px rgba(15,49,72,.07);
}

.kn-card.is-featured {
    border-top: 3px solid #b99a56;
}

.kn-card__media {
    display: block;

    height: 175px;

    overflow: hidden;

    background: #e9eef1;
}

.kn-card__media img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

.kn-card__body {
    display: flex;
    flex-direction: column;

    min-height: 245px;

    padding: 17px;
}

.kn-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;
}

.kn-card__meta time {
    color: #8a989f;

    font-size: 9px;
}

.kn-type {
    display: inline-flex;
    align-items: center;

    padding: 5px 8px;

    border-radius: 6px;

    font-size: 9px;
    font-weight: 800;
}

.kn-type--briefing {
    background: rgba(39,95,129,.1);
    color: #275f81;
}

.kn-type--study {
    background: rgba(47,155,99,.1);
    color: #267d52;
}

.kn-type--report {
    background: rgba(185,154,86,.13);
    color: #8d6d27;
}

.kn-card h3 {
    margin: 13px 0 0;

    color: #173149;

    font-size: 16px;
    font-weight: 800;

    line-height: 1.65;
}

.kn-card h3 a {
    color: inherit;
    text-decoration: none;
}

.kn-card__summary {
    margin: 9px 0 0;

    color: #687c89;

    font-size: 11px;
    line-height: 1.9;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;

    overflow: hidden;
}

.kn-card__geo {
    display: flex;
    flex-wrap: wrap;

    gap: 5px;

    margin-top: 13px;
}

.kn-card__geo span {
    padding: 4px 7px;

    background: #f1f4f6;

    border-radius: 6px;

    color: #687c89;

    font-size: 9px;
}

.kn-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;

    margin-top: auto;
    padding-top: 14px;

    border-top: 1px solid #edf1f3;
}

.kn-card__footer span {
    overflow: hidden;

    color: #87959d;

    font-size: 9px;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.kn-card__footer a {
    flex: 0 0 auto;

    color: #286b94;

    font-size: 10px;
    font-weight: 800;

    text-decoration: none;
}


/* Empty */

.kn-empty {
    padding: 52px 24px;

    background: #fff;

    border: 1px dashed #ccd7de;
    border-radius: 13px;

    text-align: center;
}

.kn-empty > div {
    color: #aab6bf;

    font-size: 34px;
}

.kn-empty strong {
    display: block;

    margin-top: 8px;

    font-size: 15px;
}

.kn-empty p {
    max-width: 530px;

    margin: 8px auto 0;

    color: #788993;

    font-size: 11px;
    line-height: 1.9;
}


/* Pagination */

.kn-pagination {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 14px;

    margin-top: 24px;
}

.kn-pagination a,
.kn-pagination span {
    padding: 8px 12px;

    border-radius: 8px;

    font-size: 10px;
}

.kn-pagination a {
    background: #173149;
    color: #fff;

    text-decoration: none;
}

.kn-pagination span {
    background: #fff;

    border: 1px solid #dfe7ec;

    color: #6e818d;
}


/* =========================================================
   View
   ========================================================= */

.kn-view {
    max-width: 960px;

    margin: 0 auto;

    overflow: hidden;

    background: #fff;

    border: 1px solid #dfe7ec;
    border-radius: 16px;

    box-shadow:
        0 8px 24px rgba(15,49,72,.045);
}

.kn-view__header {
    padding: 34px 38px 28px;
}

.kn-view__meta {
    display: flex;
    align-items: center;

    gap: 10px;
}

.kn-view__meta time {
    color: #89979f;

    font-size: 10px;
}

.kn-view h1 {
    max-width: 850px;

    margin: 16px 0 0;

    color: #173149;

    font-size: 30px;
    font-weight: 800;

    line-height: 1.55;
}

.kn-view__summary {
    max-width: 820px;

    margin: 13px 0 0;

    color: #687d89;

    font-size: 13px;
    line-height: 2;
}

.kn-view__context {
    display: flex;
    flex-wrap: wrap;

    gap: 8px;

    margin-top: 18px;
}

.kn-view__context span {
    padding: 6px 9px;

    background: #f4f6f7;

    border-radius: 7px;

    color: #72838e;

    font-size: 9px;
}

.kn-view__context strong {
    color: #173149;
}

.kn-view__media {
    width: min(850px,calc(100% - 76px));

    margin: 0 auto 30px;

    text-align: center;
}

.kn-view__media img {
    display: block;

    width: 100%;
    height: auto;

    max-height: 560px;

    margin: 0 auto;

    object-fit: contain;

    border-radius: 11px;
}

.kn-view__body {
    max-width: 820px;

    margin: 0 auto;

    padding: 0 38px 38px;

    color: #344e60;

    font-size: 14px;
    line-height: 2.2;
}

.kn-view__source {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin: 0 38px 30px;
    padding: 15px 16px;

    background: #f6f8f9;

    border: 1px solid #e6ecef;
    border-radius: 10px;
}

.kn-view__source span {
    color: #788993;

    font-size: 10px;
}

.kn-view__source strong,
.kn-view__source a {
    color: #286b94;

    font-size: 11px;
    font-weight: 800;

    text-decoration: none;
}

.kn-view__footer {
    padding: 18px 38px;

    background: #f8fafb;

    border-top: 1px solid #e9eef1;
}

.kn-view__footer a {
    color: #286b94;

    font-size: 11px;
    font-weight: 800;

    text-decoration: none;
}


/* Responsive */

@media (max-width: 1050px) {

    .kn-filter {
        grid-template-columns:
            repeat(2,minmax(0,1fr));
    }

    .kn-field--search {
        grid-column:
            1 / -1;
    }

    .kn-filter-actions {
        grid-column:
            1 / -1;
    }

    .kn-grid {
        grid-template-columns:
            repeat(2,minmax(0,1fr));
    }

}


@media (max-width: 760px) {

    .kn-hero {
        padding: 26px 22px;
    }

    .kn-hero h1 {
        font-size: 28px;
    }

    .kn-stats {
        grid-template-columns:
            repeat(2,minmax(0,1fr));
    }

    .kn-filter {
        grid-template-columns: 1fr;
    }

    .kn-field--search,
    .kn-filter-actions {
        grid-column: auto;
    }

    .kn-grid {
        grid-template-columns: 1fr;
    }

    .kn-section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .kn-view__header {
        padding: 26px 22px;
    }

    .kn-view h1 {
        font-size: 24px;
    }

    .kn-view__media {
        width: calc(100% - 44px);
    }

    .kn-view__body {
        padding:
            0 22px 30px;
    }

    .kn-view__source {
        margin:
            0 22px 24px;
    }

    .kn-view__footer {
        padding:
            17px 22px;
    }

}


@media (max-width: 480px) {

    .kn-stats {
        grid-template-columns: 1fr;
    }

    .kn-filter-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .kn-filter-actions button {
        width: 100%;
    }
}