@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&display=swap');

:root{
  --paper:#FAF6EE; --paper-2:#F3ECDD; --white:#FFFEFA;
  --ink:#232E27; --ink-700:#2E3A32; --ink-500:#5B685E; --ink-300:#8B968C;
  --forest:#2F4B3C; --forest-600:#213A2D; --forest-tint:#E7EEE7;
  --gold:#B98A3E; --gold-deep:#8C6529; --gold-tint:#F1E4C4;
  --line:rgba(35,46,39,.14); --line-strong:rgba(35,46,39,.26);
  --radius-sm:8px; --radius:14px; --radius-lg:22px;
  --shadow:0 18px 46px -24px rgba(35,46,39,.35);
  --font-display:'Fraunces',serif; --font-body:'Inter',sans-serif;
}
*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}
body{font-family:var(--font-body);color:var(--ink);background:var(--paper);line-height:1.6}
h1,h2,h3,h4{font-family:var(--font-display);font-weight:600;color:var(--ink)}
a{color:inherit;text-decoration:none}
.container{max-width:1100px;margin:0 auto;padding:0 24px}
.label{font-size:13px;color:var(--gold-deep);font-weight:600;center;gap:9px}
.label::before{content:'';width:20px;height:1px;background:var(--gold-deep)}

.kb-nav{position:sticky;top:0;z-index:50;background:rgba(250,246,238,.9);backdrop-filter:blur(10px);border-bottom:1px solid var(--line)}
.kb-nav .container{height:74px;display:flex;align-items:center;justify-content:space-between}
.kb-brand{font-family:var(--font-display);font-weight:600;font-size:20px;color:var(--forest)}
.kb-search-box{display:flex;align-items:center;gap:8px;background:var(--white);border:1px solid var(--line-strong);border-radius:999px;padding:9px 16px;min-width:260px}
.kb-search-box input{border:none;outline:none;background:none;font-size:14px;width:100%;font-family:var(--font-body)}

.kb-hero{padding:70px 0;text-align:center;background:linear-gradient(180deg,var(--paper-2),var(--paper))}
.kb-hero h1{font-size:38px;margin:0 0 14px}
.kb-hero p{color:var(--ink-500);font-size:16px;margin-bottom:30px}
.kb-hero form{max-width:560px;margin:0 auto;display:flex;background:var(--white);border:1px solid var(--line-strong);border-radius:999px;padding:6px;box-shadow:var(--shadow)}
.kb-hero input{flex:1;border:none;outline:none;padding:12px 18px;font-size:15px;background:none;font-family:var(--font-body)}
.kb-hero button{background:var(--forest);color:#fff;border:none;padding:12px 24px;border-radius:999px;font-weight:600;cursor:pointer}

.cat-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:20px;padding:60px 0}
.cat-card{background:var(--white);border:1px solid var(--line);border-radius:var(--radius);padding:26px;transition:.15s}
.cat-card:hover{border-color:var(--forest);transform:translateY(-2px)}
.cat-card .ico{width:42px;height:42px;border-radius:10px;background:var(--forest-tint);color:var(--forest);display:flex;align-items:center;justify-content:center;margin-bottom:14px;font-size:20px}
.cat-card h3{font-size:17px;margin-bottom:6px}
.cat-card p{font-size:13.5px;color:var(--ink-500);margin-bottom:10px}
.cat-card .count{font-size:12px;color:var(--gold-deep);font-weight:600}

.section-title{max-width:600px;margin:0 auto 8px;text-align:center}
.section-title h2{font-size:28px;margin:12px 0 10px}
.section-title p{color:var(--ink-500);font-size:14.5px}

.breadcrumb{font-size:13px;color:var(--ink-300);margin-bottom:20px}
.breadcrumb a{color:var(--ink-500)}
.breadcrumb a:hover{color:var(--forest)}

.article-list{max-width:800px;margin:0 auto;padding:40px 0}
.article-row{display:flex;justify-content:space-between;align-items:center;padding:18px 0;border-bottom:1px solid var(--line)}
.article-row a{font-size:15.5px;font-weight:500;color:var(--ink-700)}
.article-row a:hover{color:var(--forest)}
.article-row span{font-size:12px;color:var(--ink-300)}

.article-page{max-width:760px;margin:0 auto;padding:50px 24px}
.article-page h1{font-size:32px;margin-bottom:18px}
.article-body{font-size:16px;color:var(--ink-700);line-height:1.8}
.article-body h2{margin:28px 0 12px;font-size:22px}
.article-body p{margin-bottom:14px}
.article-body img{max-width:100%;border-radius:var(--radius);margin:16px 0}
.article-video{aspect-ratio:16/9;border-radius:var(--radius);overflow:hidden;margin-bottom:24px;background:#000}
.article-video iframe,.article-video video{width:100%;height:100%;border:none}
.helpful-box{margin-top:40px;padding:24px;background:var(--paper-2);border-radius:var(--radius);text-align:center}
.helpful-box button{margin:0 6px;padding:9px 18px;border-radius:999px;border:1px solid var(--line-strong);background:var(--white);cursor:pointer;font-weight:600;font-size:13.5px}
.helpful-box button:hover{border-color:var(--forest);color:var(--forest)}

.kb-footer{padding:40px 0;text-align:center;color:var(--ink-300);font-size:12.5px;border-top:1px solid var(--line)}





/* Botões de avaliação */
.helpful-box .actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    margin-top: 18px;
}

.helpful-box .actions form {
    margin: 0;
    padding: 0;
    display: flex;
}

.helpful-box .actions button {
    min-width: 110px;
    height: 44px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 0 18px;

    background: #fff;
    color: var(--ink-600);

    border: 1px solid var(--line-strong);
    border-radius: 10px;

    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    transition: all .2s ease;
}

.helpful-box .actions button:hover {
    border-color: var(--forest);
    color: var(--forest);
    background: var(--forest-tint);
    transform: translateY(-1px);
}

.helpful-box .actions button svg {
    width: 17px;
    height: 17px;

    flex: 0 0 17px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}






/* ============================================================
   BUSCA — CENTRAL DE AJUDA
   ============================================================ */

.kb-hero form.search-form {
    width: 100%;
    max-width: 760px;
    height: 66px;

    margin: 32px auto 0;

    display: flex;
    flex-direction: row;
    align-items: center;

    gap: 8px;

    padding: 6px;

    box-sizing: border-box;

    background: #ffffff;
    border: 1px solid var(--line-strong);
    border-radius: 16px;

    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.07),
        0 2px 8px rgba(0, 0, 0, 0.03);

    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}


/* Campo */

.kb-hero .search-field {
    position: relative;

    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    height: 52px;

    display: flex;
    align-items: center;

    background: transparent;
    border: 0;
}


/* Ícone da lupa */

.kb-hero .search-icon {
    position: absolute;

    left: 16px;
    top: 50%;

    width: 20px !important;
    height: 20px !important;

    transform: translateY(-50%);

    display: block;

    fill: none !important;
    stroke: #8a938e !important;
    stroke-width: 1.8 !important;
    stroke-linecap: round;
    stroke-linejoin: round;

    pointer-events: none;
    z-index: 5;
}


/* Input */

.kb-hero .search-form input,
.kb-hero .search-form input[type="text"] {
    display: block !important;

    width: 100% !important;
    height: 52px !important;

    flex: 1 1 auto !important;

    min-width: 0 !important;

    margin: 0 !important;

    padding: 0 16px 0 48px !important;

    box-sizing: border-box;

    border: 0 !important;
    outline: 0 !important;

    background: transparent !important;

    color: var(--ink-700);

    font-family: var(--font-body);
    font-size: 15px;
    line-height: 52px;

    appearance: none;
}


/* Placeholder */

.kb-hero .search-form input::placeholder {
    color: #8a938e;
    opacity: 1;
}


/* Foco */

.kb-hero .search-form:focus-within {
    border-color: var(--forest);

    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.08),
        0 0 0 3px rgba(45, 78, 63, 0.08);
}


/* ============================================================
   BOTÃO
   ============================================================ */

.kb-hero .search-form button {
    position: relative;

    width: auto;
    min-width: 112px;
    height: 52px;

    flex: 0 0 auto;

    display: inline-flex !important;
    flex-direction: row !important;

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

    gap: 8px;

    margin: 0 !important;
    padding: 0 20px !important;

    box-sizing: border-box;

    background: var(--forest) !important;
    color: #ffffff !important;

    border: 0 !important;
    border-radius: 12px !important;

    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    line-height: 1;

    cursor: pointer;

    white-space: nowrap;

    transition:
        background .2s ease,
        transform .15s ease,
        box-shadow .2s ease;
}


.kb-hero .search-form button:hover {
    background: var(--forest-600) !important;

    transform: translateY(-1px);

    box-shadow:
        0 5px 15px rgba(0, 0, 0, 0.12);
}


.kb-hero .search-form button:active {
    transform: translateY(0);
}


/* Ícone dentro do botão */

.kb-hero .search-form button svg {
    display: block !important;

    width: 17px !important;
    height: 17px !important;

    flex: 0 0 17px;

    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.8 !important;

    stroke-linecap: round;
    stroke-linejoin: round;
}


/* Texto */

.kb-hero .search-form button span {
    display: inline-block;

    line-height: 1;
}





/* ============================================================
   AUTOCOMPLETE DA BUSCA — CORREÇÃO
   ============================================================ */

.search-field {
    position: relative;
    overflow: visible !important;
}

.search-suggestions {
    position: absolute !important;

    top: calc(100% + 10px) !important;
    left: 0 !important;
    right: 0 !important;

    width: 100% !important;

    z-index: 9999 !important;

    display: none;

    background: #ffffff;

    border: 1px solid var(--line-strong);
    border-radius: 14px;

    box-shadow:
        0 18px 45px rgba(0, 0, 0, .12),
        0 4px 12px rgba(0, 0, 0, .05);

    overflow: hidden;

    text-align: left;
}

.search-suggestions.is-visible {
    display: block !important;
}


/* Cada resultado */

.search-suggestions .suggestion {
    display: block;

    width: 100%;

    box-sizing: border-box;

    padding: 15px 18px;

    text-decoration: none;

    background: #fff;

    border-bottom: 1px solid var(--line);

    transition:
        background .15s ease,
        padding-left .15s ease;
}

.search-suggestions .suggestion:last-child {
    border-bottom: 0;
}

.search-suggestions .suggestion:hover,
.search-suggestions .suggestion.is-active {
    background: var(--forest-tint);
    padding-left: 21px;
}


/* Título do artigo */

.search-suggestions .suggestion strong {
    display: block;

    width: 100%;

    margin: 0;

    color: var(--ink-700);

    font-size: 14px;
    font-weight: 600;

    line-height: 1.4;

    white-space: normal;

    overflow: visible;

    text-overflow: unset;
}


/* Descrição */

.search-suggestions .suggestion small {
    display: block;

    width: 100%;

    margin-top: 5px;

    color: var(--ink-500);

    font-size: 12.5px;
    font-weight: 400;

    line-height: 1.45;

    white-space: normal;

    overflow: hidden;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}


/* Mobile */

@media (max-width: 560px) {

    .search-suggestions {
        top: calc(100% + 8px) !important;

        border-radius: 13px;

        max-height: 320px;

        overflow-y: auto;
    }

    .search-suggestions .suggestion {
        padding: 14px 15px;
    }

    .search-suggestions .suggestion strong {
        font-size: 13.5px;
    }

    .search-suggestions .suggestion small {
        font-size: 12px;
    }
}
