/* ==========================================================
   MHDS — KNOWLEDGEBASE
   ========================================================== */


/* ==========================================================
   HERO
   ========================================================== */

.mhds-kb-hero {
    box-sizing: border-box;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(320px, 440px);

    align-items: center;

    gap: 48px;

    width: min(100% - 40px, 1320px);

    margin: 32px auto 48px;
    padding: clamp(34px, 5vw, 58px);

    border-radius: 26px;

    background:
        radial-gradient(
            circle at 92% 10%,
            rgba(255, 196, 0, .15),
            transparent 31%
        ),
        linear-gradient(
            140deg,
            #06192c,
            #0b4d7e
        );

    box-shadow:
        0 26px 70px
        rgba(16, 47, 77, .15);
}

.mhds-kb-hero__eyebrow {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    margin-bottom: 14px;

    color: #ffd74a;

    font-size: 9px;
    font-weight: 850;

    letter-spacing: .10em;
    text-transform: uppercase;
}

.mhds-kb-hero__eyebrow::before {
    content: "";

    width: 28px;
    height: 2px;

    background: #ffc400;
}

.mhds-kb-hero h1 {
    margin: 0;

    color: #ffffff;

    font-size: clamp(36px, 4.5vw, 58px);
    font-weight: 850;

    line-height: 1.04;

    letter-spacing: -.04em;
}

.mhds-kb-hero h1 span {
    display: block;

    margin-top: 6px;

    color: #69c7f2;
}

.mhds-kb-hero__content > p {
    max-width: 700px;

    margin: 20px 0 0;

    color: rgba(255,255,255,.68);

    font-size: 12px;
    line-height: 1.75;
}


/* ==========================================================
   BUSCA
   ========================================================== */

.mhds-kb-search {
    padding: 20px;

    border: 1px solid rgba(255,255,255,.12);
    border-radius: 18px;

    background: rgba(255,255,255,.075);
}

.mhds-kb-search__label {
    display: block;

    margin-bottom: 9px;

    color: rgba(255,255,255,.68);

    font-size: 8px;
    font-weight: 800;
}

.mhds-kb-search__group {
    display: grid;

    grid-template-columns:
        auto
        minmax(0, 1fr)
        auto;

    align-items: center;

    overflow: hidden;

    border-radius: 12px;

    background: #ffffff;
}

.mhds-kb-search__icon {
    display: inline-flex;

    width: 44px;

    align-items: center;
    justify-content: center;

    color: #82909d;
}

.mhds-kb-search__input {
    width: 100%;
    min-height: 48px;

    border: 0;

    color: #173a59;

    font-size: 10px;

    outline: none;
}

.mhds-kb-search__button {
    min-height: 48px;

    padding: 0 16px;

    border: 0;

    background: #ffc400;

    color: #102943;

    font-size: 9px;
    font-weight: 850;
}


/* ==========================================================
   SEÇÕES
   ========================================================== */

.mhds-kb-section {
    width: min(100% - 40px, 1320px);

    margin: 0 auto 54px;
}

.mhds-kb-section__header {
    max-width: 760px;

    margin: 0 auto 28px;

    text-align: center;
}

.mhds-kb-section__eyebrow {
    display: inline-block;

    margin-bottom: 8px;

    color: #0e497e;

    font-size: 8px;
    font-weight: 850;

    letter-spacing: .09em;
    text-transform: uppercase;
}

.mhds-kb-section__header h2 {
    margin: 0;

    color: #102f4d;

    font-size: clamp(28px, 3.4vw, 42px);
    font-weight: 850;

    line-height: 1.1;
}

.mhds-kb-section__header p {
    margin: 12px 0 0;

    color: #68798a;

    font-size: 11px;
    line-height: 1.65;
}


/* ==========================================================
   CATEGORIAS
   ========================================================== */

.mhds-kb-categories {
    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(280px, 1fr)
        );

    gap: 18px;
}

.mhds-kb-category {
    position: relative;

    overflow: hidden;

    border: 1px solid #dce5ed;
    border-radius: 18px;

    background: #ffffff;

    box-shadow:
        0 12px 32px
        rgba(16, 47, 77, .05);
}

.mhds-kb-category__link {
    display: block;

    height: 100%;

    padding: 22px;

    color: inherit;

    text-decoration: none;
}

.mhds-kb-category__top {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 12px;

    margin-bottom: 17px;
}

.mhds-kb-category__icon {
    display: inline-flex;

    width: 44px;
    height: 44px;

    align-items: center;
    justify-content: center;

    border-radius: 13px;

    background: rgba(14, 73, 126, .09);

    color: #0e497e;

    font-size: 16px;
}

.mhds-kb-category__count {
    padding: 6px 9px;

    border-radius: 999px;

    background: #f2f6f9;

    color: #68798a;

    font-size: 7px;
    font-weight: 850;
}

.mhds-kb-category h3 {
    margin: 0;

    color: #173a59;

    font-size: 18px;
    font-weight: 850;
}

.mhds-kb-category p {
    margin: 9px 0 18px;

    color: #68798a;

    font-size: 9px;
    line-height: 1.6;
}

.mhds-kb-category__action {
    display: inline-flex;

    align-items: center;

    gap: 7px;

    color: #0e497e;

    font-size: 8px;
    font-weight: 850;
}


/* ==========================================================
   ARTIGOS POPULARES
   ========================================================== */

.mhds-kb-popular {
    display: grid;

    gap: 12px;
}

.mhds-kb-article {
    position: relative;

    border: 1px solid #dce5ed;
    border-radius: 16px;

    background: #ffffff;
}

.mhds-kb-article__link {
    display: grid;

    grid-template-columns:
        auto
        minmax(0, 1fr)
        auto;

    align-items: center;

    gap: 14px;

    padding: 17px 18px;

    color: inherit;

    text-decoration: none;
}

.mhds-kb-article__icon {
    display: inline-flex;

    width: 38px;
    height: 38px;

    align-items: center;
    justify-content: center;

    border-radius: 11px;

    background: #f3f7fa;

    color: #0e497e;
}

.mhds-kb-article h3 {
    margin: 0;

    color: #173a59;

    font-size: 11px;
    font-weight: 850;
}

.mhds-kb-article p {
    margin: 4px 0 0;

    color: #82909d;

    font-size: 8px;
    line-height: 1.5;
}

.mhds-kb-article__arrow {
    color: #0e497e;
}


/* ==========================================================
   EDIÇÃO
   ========================================================== */

.mhds-kb-edit {
    position: absolute;

    top: 10px;
    right: 10px;

    border: 0;
    border-radius: 8px;

    background: #f2f5f7;

    color: #68798a;

    font-size: 7px;
}


/* ==========================================================
   ESTADO VAZIO
   ========================================================== */

.mhds-kb-empty {
    padding: 38px;

    border: 1px dashed #cad8e3;
    border-radius: 18px;

    background: #ffffff;

    text-align: center;
}

.mhds-kb-empty i {
    display: block;

    margin-bottom: 12px;

    color: #0e497e;

    font-size: 28px;
}

.mhds-kb-empty strong {
    display: block;

    color: #173a59;
}

.mhds-kb-empty p {
    margin: 6px 0 0;

    color: #82909d;

    font-size: 9px;
}


/* ==========================================================
   AJUDA FINAL
   ========================================================== */

.mhds-kb-help {
    display: grid;

    grid-template-columns:
        auto
        minmax(0, 1fr)
        auto;

    align-items: center;

    gap: 18px;

    box-sizing: border-box;

    width: min(100% - 40px, 1320px);

    margin: 0 auto 70px;
    padding: 24px 28px;

    border-radius: 20px;

    background:
        linear-gradient(
            140deg,
            #06192c,
            #0b4d7e
        );

    color: #ffffff;
}

.mhds-kb-help__icon {
    display: inline-flex;

    width: 50px;
    height: 50px;

    align-items: center;
    justify-content: center;

    border-radius: 14px;

    background: rgba(255,196,0,.14);

    color: #ffc400;

    font-size: 18px;
}

.mhds-kb-help strong {
    display: block;

    margin-bottom: 4px;

    color: #ffffff;

    font-size: 12px;
    font-weight: 850;
}

.mhds-kb-help p {
    margin: 0;

    color: rgba(255,255,255,.65);

    font-size: 9px;
}

.mhds-kb-help a {
    display: inline-flex;

    min-height: 44px;

    align-items: center;
    justify-content: center;

    gap: 7px;

    padding: 0 15px;

    border-radius: 10px;

    background: #ffc400;

    color: #102943;

    font-size: 9px;
    font-weight: 850;

    text-decoration: none;
}


/* ==========================================================
   RESPONSIVO
   ========================================================== */

@media (max-width: 850px) {

    .mhds-kb-hero {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 650px) {

    .mhds-kb-hero,
    .mhds-kb-section,
    .mhds-kb-help {
        width: min(100% - 28px, 1320px);
    }

    .mhds-kb-search__group {
        grid-template-columns:
            auto
            minmax(0, 1fr);
    }

    .mhds-kb-search__button {
        grid-column: 1 / -1;

        width: 100%;
    }

    .mhds-kb-help {
        grid-template-columns:
            auto
            minmax(0, 1fr);
    }

    .mhds-kb-help a {
        grid-column: 1 / -1;

        width: 100%;
    }

}

/* ==========================================================
   MHDS KB — PÁGINAS INTERNAS
   ========================================================== */

.mhds-kb-inner-hero,
.mhds-kb-article-hero {
    box-sizing: border-box;

    width: 100%;

    margin: 0 0 28px;
    padding: 34px 36px;

    border-radius: 22px;

    background:
        radial-gradient(
            circle at 92% 10%,
            rgba(255, 196, 0, .14),
            transparent 30%
        ),
        linear-gradient(
            140deg,
            #06192c,
            #0b4d7e
        );

    color: #ffffff;
}

.mhds-kb-inner-hero__eyebrow,
.mhds-kb-article-hero__eyebrow {
    display: inline-flex;

    align-items: center;
    gap: 8px;

    margin-bottom: 11px;

    color: #ffd74a;

    font-size: 8px;
    font-weight: 850;

    letter-spacing: .10em;
    text-transform: uppercase;
}

.mhds-kb-inner-hero h1,
.mhds-kb-article-hero h1 {
    margin: 0;

    color: #ffffff;

    font-size: clamp(30px, 4vw, 48px);
    font-weight: 850;

    line-height: 1.08;
    letter-spacing: -.035em;
}

.mhds-kb-inner-hero > p,
.mhds-kb-article-hero > p {
    max-width: 720px;

    margin: 13px 0 0;

    color: rgba(255,255,255,.68);

    font-size: 10px;
    line-height: 1.7;
}


/* ==========================================================
   BUSCA INTERNA
   ========================================================== */

.mhds-kb-inner-search {
    max-width: 650px;

    margin-top: 22px;
}

.mhds-kb-inner-search__group {
    display: grid;

    grid-template-columns:
        auto
        minmax(0,1fr)
        auto;

    align-items: center;

    overflow: hidden;

    border-radius: 11px;

    background: #ffffff;
}

.mhds-kb-inner-search__group > i {
    padding-left: 16px;

    color: #82909d;
}

.mhds-kb-inner-search input {
    min-height: 46px;

    padding: 0 13px;

    border: 0;

    color: #173a59;

    outline: none;
}

.mhds-kb-inner-search button {
    align-self: stretch;

    padding: 0 20px;

    border: 0;

    background: #ffc400;

    color: #102943;

    font-size: 9px;
    font-weight: 850;
}


/* ==========================================================
   BREADCRUMB
   ========================================================== */

.mhds-kb-breadcrumb {
    display: flex;

    flex-wrap: wrap;

    align-items: center;

    gap: 8px;

    margin-bottom: 24px;

    color: #82909d;

    font-size: 8px;
}

.mhds-kb-breadcrumb a {
    display: inline-flex;

    align-items: center;

    gap: 6px;

    color: #0e497e;

    font-weight: 800;

    text-decoration: none;
}

.mhds-kb-breadcrumb > i {
    font-size: 6px;

    color: #b1bcc5;
}


/* ==========================================================
   LISTA DA CATEGORIA
   ========================================================== */

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

.mhds-kb-content-header {
    margin-bottom: 20px;
}

.mhds-kb-content-header > span {
    display: block;

    margin-bottom: 5px;

    color: #0e497e;

    font-size: 8px;
    font-weight: 850;

    letter-spacing: .08em;
    text-transform: uppercase;
}

.mhds-kb-content-header h2 {
    margin: 0;

    color: #173a59;

    font-size: 25px;
    font-weight: 850;
}

.mhds-kb-article-list {
    display: grid;

    gap: 12px;
}

.mhds-kb-list-article {
    position: relative;

    overflow: hidden;

    border: 1px solid #dce5ed;
    border-radius: 16px;

    background: #ffffff;

    transition:
        border-color 180ms ease,
        box-shadow 180ms ease,
        transform 180ms ease;
}

.mhds-kb-list-article:hover {
    border-color: rgba(14,73,126,.25);

    box-shadow:
        0 15px 34px
        rgba(16,47,77,.07);

    transform: translateY(-2px);
}

.mhds-kb-list-article > a {
    display: grid;

    grid-template-columns:
        auto
        minmax(0,1fr)
        auto;

    align-items: center;

    gap: 14px;

    padding: 18px;

    color: inherit;

    text-decoration: none;
}

.mhds-kb-list-article__icon {
    display: inline-flex;

    width: 42px;
    height: 42px;

    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: rgba(14,73,126,.08);

    color: #0e497e;
}

.mhds-kb-list-article h3 {
    margin: 0;

    color: #173a59;

    font-size: 11px;
    font-weight: 850;
}

.mhds-kb-list-article p {
    margin: 5px 0 0;

    color: #82909d;

    font-size: 8px;
    line-height: 1.55;
}

.mhds-kb-list-article__arrow {
    color: #0e497e;
}


/* ==========================================================
   DOCUMENTO / ARTIGO
   ========================================================== */

.mhds-kb-document {
    overflow: hidden;

    margin-bottom: 24px;

    border: 1px solid #dce5ed;
    border-radius: 20px;

    background: #ffffff;

    box-shadow:
        0 15px 38px
        rgba(16,47,77,.05);
}

.mhds-kb-document__header {
    position: relative;

    display: grid;

    grid-template-columns:
        auto
        minmax(0,1fr);

    align-items: center;

    gap: 14px;

    padding: 22px 24px;

    border-bottom: 1px solid #e8eef3;

    background: #f8fafc;
}

.mhds-kb-document__icon {
    display: inline-flex;

    width: 46px;
    height: 46px;

    align-items: center;
    justify-content: center;

    border-radius: 13px;

    background: #0e497e;

    color: #ffffff;

    font-size: 16px;
}

.mhds-kb-document__type {
    display: block;

    margin-bottom: 4px;

    color: #0e497e;

    font-size: 7px;
    font-weight: 850;

    letter-spacing: .08em;
    text-transform: uppercase;
}

.mhds-kb-document__header h2 {
    margin: 0;

    color: #173a59;

    font-size: 18px;
    font-weight: 850;
}

.mhds-kb-document__content {
    padding: clamp(22px, 4vw, 38px);

    color: #52677b;

    font-size: 10px;
    line-height: 1.8;
}

.mhds-kb-document__content h1,
.mhds-kb-document__content h2,
.mhds-kb-document__content h3,
.mhds-kb-document__content h4 {
    color: #173a59;

    font-weight: 850;
}

.mhds-kb-document__content img {
    max-width: 100%;
    height: auto;

    border-radius: 10px;
}

.mhds-kb-document__content pre {
    overflow-x: auto;

    padding: 18px;

    border-radius: 12px;

    background: #071a2c;

    color: #e8f1f8;
}

.mhds-kb-document__content code {
    word-break: break-word;
}


/* ==========================================================
   AVALIAÇÃO
   ========================================================== */

.mhds-kb-feedback {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 30px;
    padding: 20px 22px;

    border: 1px solid #dce5ed;
    border-radius: 16px;

    background: #f8fafc;
}

.mhds-kb-feedback strong {
    display: block;

    color: #173a59;

    font-size: 11px;
}

.mhds-kb-feedback p {
    margin: 4px 0 0;

    color: #82909d;

    font-size: 8px;
}

.mhds-kb-feedback__actions {
    display: flex;

    gap: 8px;
}

.mhds-kb-feedback__actions form {
    margin: 0;
}

.mhds-kb-feedback button {
    min-height: 38px;

    padding: 0 13px;

    border: 1px solid #dce5ed;
    border-radius: 9px;

    background: #ffffff;

    color: #52677b;

    font-size: 8px;
    font-weight: 850;
}

.mhds-kb-feedback__yes:hover {
    border-color: rgba(13,118,82,.35);

    color: #0d7652;
}

.mhds-kb-feedback--done {
    justify-content: flex-start;

    color: #0d7652;
}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 650px) {

    .mhds-kb-inner-hero,
    .mhds-kb-article-hero {
        padding: 27px 20px;
    }

    .mhds-kb-feedback {
        align-items: flex-start;
        flex-direction: column;
    }

    .mhds-kb-feedback__actions {
        width: 100%;
    }

}