/* Reset Variables */

:root {
    --lwc-navigationMaxWidth: 1400px !important;
    --lwc-fontSizeHeadingLarge: 2.5rem !important;
}


@media screen and (min-width: 1024px) {
    .siteforceServiceBody .cCenterPanel {
        width: 1024px !important;
    }
}

@media screen and (min-width: 1200px) {
    .siteforceServiceBody .cCenterPanel {
        width: 1200px !important;
    }
}

@media screen and (min-width: 1400px) {
    .siteforceServiceBody .cCenterPanel {
        width: 1400px !important;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Styles for Article Detail */

.selfServiceArticleLayout .forcePageBlockSectionRow.full {
    padding: 0 !important;
}

.selfServiceArticleLayout.zoom .article-head {
    font-size: 2.5rem !important;
    margin-bottom: 0;
}

table.rbac-table {
    background-color: #f6f7f8;
    border-radius: 4px;
    margin: 18px auto;
    width: 90% !important;
}

table.rbac-table tr:nth-child(3) {
    display: none;
}

.comm-related-articles,
.comm-topic-trending-articles {
    display: inline-block;
    width: 100%;
}

.comm-related-articles h2,
.comm-topic-trending-articles h2 {
    font-size: 1.5rem;
    font-style: normal;
    font-weight: 600;
    line-height: 125%;
}

.comm-related-articles li > .comm-related-articles__item > a .slds-text-body_small,
.comm-topic-trending-articles li > .comm-topic-trending-articles__item > a .slds-text-body_small,
.forceCommunityTopArticleItem .article-title-link .article-title {
    color: var(--dxp-g-brand) !important;
    font-size: 1rem;
    font-weight: 700;
    line-height: 125%;
    text-decoration: none;
}

.forceCommunityTopArticleListForTopic h3.topicHeader a {
    color: var(--dxp-g-brand) !important;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 125%;
    text-decoration: none;
}

.comm-related-articles li > .comm-related-articles__item > a:hover .slds-text-body_small,
.comm-topic-trending-articles li > .comm-topic-trending-articles__item > a:hover .slds-text-body_small,
.forceCommunityTopArticleListForTopic h3.topicHeader a:hover,
.forceCommunityTopArticleItem .article-title-link:hover .article-title {
    color: var(--dxp-g-brand-1) !important;
    text-decoration: underline;
}

[data-region-name="sidebar"] .comm-related-articles,
[data-region-name="sidebar"] .comm-topic-trending-articles {
    margin: 1.5rem 0;
}

.selfServiceTopicTrendingArticles42 .slds-grid--vertical a {
    text-decoration: none !important;
}

[data-target-selection-name="sfdc:RecordField.Knowledge__kav.Title"],
[data-target-selection-name="sfdc:RecordField.Knowledge__kav.UrlName"],
span.test-id__field-label {
    display: none !important;
}

[data-target-selection-name="sfdc:RecordField.Knowledge__kav.Answer__c"] img {
    border: 1px solid #cbcbcb;
    border-radius: 4px;
}

.forceKnowledgeArticleThumbVote .slds-media__body {
    font-size: 1rem;
    font-weight: 700;
}

.slds-tree__item a {
    color: var(--dxp-g-brand) !important;
}

.slds-button {
    border-color: var(--dxp-g-brand) !important;
}

.slds-button__icon {
    fill: var(--dxp-g-brand) !important;
}

/* Styles for Topic Pages */

.forceCommunityTopArticleList h2.title {
    font-size: 1.5625rem !important;
    font-weight: 600;
}

.uiOutputRichText h2 {
    font-size: 2.5rem !important;
    font-weight: 700;
    line-height: 125%;
}

/* FORCE FOOTER TO BOTTOM IF CONTENT ISNT TALL ENOUGH */
#ServiceCommunityTemplate.siteforceServiceBody {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

div#footer:has(c-nf-help-center-footer) {
    margin-top: auto;
}


/* ARTICLES */
forceknowledge-article-table-of-contents lightning-button-group {
    display: none !important;
}

forceknowledge-article-table-of-contents:has(.slds-notify_alert) {
    display: none;
}

article.content .forcePageBlock .slds-section .override--slds-form-element {
    display: block !important;
}