/* ==========================================================================
   HOSTMAFIYA  -  KNOWLEDGEBASE ARTICLE  (index.php?rp=/knowledgebase/{id}/{title}.html)
   body.hm-skin.hm-ann.hm-annx.hm-annv.hm-kba - loaded by header.tpl on 'knowledgebasearticle'
   after hm-announce.css + hm-annview.css (card, banner, text, steps, print come from those).
   Only the article-specific parts live here: meta line, thanks note, vote box, related list.
   ========================================================================== */

/* banner art: the Knowledgebase illustration is wider than the announcement one */
body.hm-kba .hm-av__banner { padding-top: 14px; padding-bottom: 30px; }
body.hm-kba .hm-av__art { width: 40%; max-width: 410px; }
body.hm-kba .hm-av__art img { max-height: 205px; }

/* meta line: tags + rating */
.hm-ka .hm-ka__tags { font-weight: 600; }
.hm-ka .hm-ka__useful i { color: #e0a800; }

/* "thanks for rating" note (after voting) */
.hm-ka__thanks {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 14px 26px 0;
    padding: 10px 16px;
    color: #14612a;
    font-weight: 700;
    background: #e4f6e8;
    border-left: 4px solid #22a447;
    border-radius: 10px;
}
.hm-ka__thanks i { font-size: 18px; }

/* "Was this answer helpful?" */
.hm-ka__rate { margin: 6px 26px 0; }
.hm-ka__rate form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
    margin: 0;
    padding: 10px 12px 10px 18px;
    background: linear-gradient(90deg, #FFF0C2, #FFF8E0);
    border: 1.5px solid #FFD21F;
    border-radius: 12px;
}
.hm-ka__rate-ic { flex: 0 0 auto; color: #e0a800; font-size: 24px; }
.hm-ka__rate-q { flex: 1 1 220px; color: #241014; font-size: 15.5px; }
.hm-ka__rate-q strong { color: #1a0a0c; }
.hm-ka__rate-btns { display: inline-flex; flex-wrap: wrap; gap: 10px; }
.hm-ka__vote {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 22px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    border-radius: 22px;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}
.hm-ka__vote--yes { color: #fff; background: linear-gradient(180deg, #c3081a 0%, #8e0410 100%); border: 2px solid #a8001a; }
.hm-ka__vote--yes:hover,
.hm-ka__vote--yes:focus { background: linear-gradient(180deg, #e3122f 0%, #a8001a 100%); outline: 0; }
.hm-ka__vote--no { color: #c3081a; background: #FFF8F6; border: 2px solid #E5092A; }
.hm-ka__vote--no:hover,
.hm-ka__vote--no:focus { color: #fff; background: #E5092A; outline: 0; }

/* related articles */
.hm-ka__related { margin: 16px 26px 0; padding: 12px 16px 6px; background: #F8E0E0; border-radius: 14px; }
body.hm-kba .hm-ka__related-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 4px;
    color: #c3081a;
    font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
    font-size: 19px;
    font-weight: 800;
}
.hm-ka__related-ic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: #fff;
    font-size: 13px;
    background: #E5092A;
    border-radius: 7px;
}
.hm-ka__rel { position: relative; }
.hm-ka__rel + .hm-ka__rel { border-top: 1px solid #edc4c8; }
.hm-ka__rel-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 8px 6px;
    color: #1a0a0c;
    font-size: 15.5px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
}
.hm-ka__rel-link > i:first-child { flex: 0 0 auto; width: 18px; color: #E5092A; font-size: 17px; text-align: center; }
.hm-ka__rel-link > span { flex: 1 1 auto; min-width: 0; overflow-wrap: break-word; }
.hm-ka__rel-go { flex: 0 0 auto; color: #c3081a; font-size: 13px; transition: transform .15s ease; }
.hm-ka__rel-link:hover,
.hm-ka__rel-link:focus { color: #c3081a; text-decoration: none; background: #FCEFED; }
.hm-ka__rel-link:hover .hm-ka__rel-go { transform: translateX(3px); }
body.hm-kba .hm-ka__rel-edit {
    position: absolute;
    right: 34px;
    top: 50%;
    margin-top: -9px;
    padding: 1px 8px;
    color: #1a0a0c;
    font-size: 11px;
    font-weight: 700;
    background: #FFD21F;
    border-radius: 6px;
}
body.hm-kba .hm-ka__rel-edit:hover { color: #1a0a0c; text-decoration: none; }

.hm-ka .hm-av__actions { padding-top: 16px; }

@media (max-width: 767px) {
    body.hm-kba .hm-av__banner { padding-top: 20px; }
    body.hm-kba .hm-av__art { width: 100%; max-width: none; }
    body.hm-kba .hm-av__art img { max-height: 180px; }
    .hm-ka__thanks,
    .hm-ka__rate,
    .hm-ka__related { margin-left: 16px; margin-right: 16px; }
    .hm-ka__rate form { padding: 12px 14px; }
    .hm-ka__rate-btns { width: 100%; }
    .hm-ka__vote { flex: 1 1 0; justify-content: center; }
    .hm-ka__related { padding: 10px 10px 4px; }
    .hm-ka__rel-link { gap: 10px; font-size: 15px; }
}

@media print {
    body.hm-kba .hm-ka__rate,
    body.hm-kba .hm-ka__related,
    body.hm-kba .hm-ka__thanks { display: none !important; }
}

/* Six (all.min.css) styles on the stock class names - reset them */
body.hm-kba .hm-av__body.kb-article-content { margin: 0; font-size: inherit; font-weight: 400; line-height: 1.6; }
body.hm-kba .hm-ka__rate.kb-rate-article { padding: 0; color: inherit; font-size: inherit; font-weight: 400; line-height: 1.45; background: transparent; }
body.hm-kba .hm-ka__related.kb-also-read { margin-top: 16px; }
