
/* SENSOY24 Update 43 */

.knowledge-hero {
    padding: 58px 0 45px;
    border-bottom: 1px solid var(--line);
    background: #f7f8fa;
}

.knowledge-hero h1 {
    max-width: 800px;
    margin: 7px 0 10px;
    font-size: clamp(34px, 5vw, 58px);
}

.knowledge-hero p {
    color: #64717c;
    font-size: 17px;
}

.knowledge-search {
    margin-top: 22px;
    display: grid;
    grid-template-columns: minmax(0, 650px) auto;
    gap: 8px;
    justify-content: start;
}

.knowledge-search input {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
}

.knowledge-category-nav {
    margin-bottom: 24px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.knowledge-category-nav a {
    padding: 8px 11px;
    display: inline-flex;
    gap: 7px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    font-size: 12px;
    font-weight: 800;
}

.knowledge-category-nav a.is-active {
    background: #111;
    color: #fff;
    border-color: #111;
}

.knowledge-category-nav span {
    opacity: .7;
}

.knowledge-featured {
    margin-bottom: 34px;
}

.knowledge-featured-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.knowledge-featured-grid article,
.knowledge-article-card {
    padding: 21px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: #fff;
}

.knowledge-featured-grid article {
    min-height: 250px;
    display: flex;
    flex-direction: column;
}

.knowledge-featured-grid article > span,
.knowledge-category-label {
    color: #74808a;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.knowledge-featured-grid h3,
.knowledge-article-card h3 {
    margin: 8px 0;
    font-size: 21px;
}

.knowledge-featured-grid p,
.knowledge-article-card p {
    color: #5f6c77;
    line-height: 1.55;
}

.knowledge-featured-grid a {
    margin-top: auto;
    font-weight: 900;
}

.knowledge-article-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.knowledge-article-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.knowledge-article-card-foot {
    margin-top: 16px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.knowledge-article-card-foot time {
    color: #7a858f;
    font-size: 11px;
}

.knowledge-article-card-foot a,
.knowledge-article-card > a {
    font-weight: 900;
}

.knowledge-detail-hero {
    padding: 58px 0 38px;
    border-bottom: 1px solid var(--line);
    background: #f7f8fa;
}

.knowledge-detail-narrow {
    max-width: 900px;
}

.knowledge-detail-category {
    font-size: 12px;
    font-weight: 900;
}

.knowledge-detail h1 {
    margin: 10px 0 14px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.08;
}

.knowledge-detail-lead {
    max-width: 800px;
    color: #56636e;
    font-size: 19px;
    line-height: 1.55;
}

.knowledge-detail-meta {
    margin-top: 18px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    color: #74808a;
    font-size: 12px;
}

.knowledge-detail-layout {
    padding-top: 36px;
    padding-bottom: 36px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 30px;
    align-items: start;
}

.knowledge-detail-body {
    font-size: 17px;
    line-height: 1.8;
    white-space: normal;
}

.knowledge-detail-side section {
    position: sticky;
    top: 95px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
}

.knowledge-detail-side a {
    margin-top: 8px;
}

.knowledge-related {
    border-top: 1px solid var(--line);
    background: #f8f9fa;
}

.knowledge-admin-actions {
    margin-bottom: 18px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.knowledge-admin-stats {
    margin-bottom: 18px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.knowledge-admin-stats > div {
    padding: 16px;
    display: grid;
    gap: 4px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
}

.knowledge-admin-stats strong {
    font-size: 25px;
}

.knowledge-admin-stats span {
    color: #6d7882;
    font-size: 11px;
}

.inline-form {
    display: inline-flex;
    gap: 5px;
    flex-wrap: wrap;
    margin: 4px 0;
}

.knowledge-editor {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 20px;
    align-items: start;
}

.knowledge-editor-main,
.knowledge-editor-side,
.knowledge-category-create,
.knowledge-category-list {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: #fff;
}

.knowledge-editor-main,
.knowledge-editor-side {
    display: grid;
    gap: 15px;
}

.knowledge-editor label,
.knowledge-category-create label {
    display: grid;
    gap: 6px;
    font-weight: 800;
}

.knowledge-editor input,
.knowledge-editor textarea,
.knowledge-editor select {
    width: 100%;
}

.knowledge-body-editor {
    min-height: 540px;
    line-height: 1.6;
}

.knowledge-editor-side {
    position: sticky;
    top: 95px;
}

.knowledge-category-admin-layout {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: 18px;
    align-items: start;
}

.knowledge-category-list article {
    padding: 13px 0;
    display: flex;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px solid var(--line);
}

.knowledge-category-list article:last-child {
    border-bottom: 0;
}

.knowledge-category-list article > div:first-child {
    display: grid;
    gap: 4px;
}

.knowledge-category-list article > div:last-child {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.knowledge-category-list span {
    color: #68747f;
    font-size: 11px;
}

.knowledge-category-list form {
    margin: 0;
}

@media (max-width: 1000px) {
    .knowledge-featured-grid,
    .knowledge-article-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .knowledge-detail-layout,
    .knowledge-editor,
    .knowledge-category-admin-layout {
        grid-template-columns: 1fr;
    }

    .knowledge-editor-side,
    .knowledge-detail-side section {
        position: static;
    }
}

@media (max-width: 700px) {
    .knowledge-search {
        grid-template-columns: 1fr;
    }

    .knowledge-featured-grid,
    .knowledge-article-grid,
    .knowledge-admin-stats {
        grid-template-columns: 1fr;
    }

    .knowledge-category-list article {
        flex-direction: column;
    }
}
