/* Тематический каталог (stamps-catalog-themacat.php), gitea#34 */

#themacat .catalog-tabs {
    margin-bottom: 10px;
}

.themacat-title {
    margin: 20px 0;
    color: #565555;
    font-size: 15px;
    font-weight: bold;
}

.themacat-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.themacat-card {
    width: 48.5%;
    background-color: #f8f8f6;
    border-radius: 5px;
    padding: 15px 20px 18px;
    margin-bottom: 22px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.themacat-card-top {
    display: flex;
    align-items: flex-start;
}

.themacat-card-img {
    flex: 0 0 96px;
    margin-right: 18px;
}

.themacat-card-img img {
    width: 96px;
}

.themacat-card-head {
    padding-top: 5px;
}

.themacat-card-title {
    color: #bb0f0f;
    font-size: 17px;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 10px;
}

.themacat-card-title:hover {
    text-decoration: underline;
}

.themacat-card-counts {
    display: flex;
    align-items: center;
}

.themacat-counts-item {
    display: flex;
    align-items: center;
}

.themacat-count {
    color: #ce4d4d;
    font-family: "PT Sans Narrow", arial, sans-serif;
    font-size: 26px;
    font-weight: bold;
    line-height: 1;
    margin-right: 6px;
}

.themacat-count-label {
    color: #606060;
    font-size: 10px;
    text-transform: uppercase;
    line-height: 1.2;
    max-width: 80px;
}

.themacat-counts-divider {
    width: 1px;
    height: 26px;
    background-color: #c0c0c0;
    margin: 0 16px;
}

.themacat-rubrics {
    overflow: hidden;
    margin-top: 12px;
    line-height: 28px;
    font-size: 13px;
}

.themacat-rubrics a {
    color: #333;
    text-decoration: none;
}

.themacat-rubrics a:hover {
    color: #bb0f0f;
    text-decoration: underline;
}

.themacat-rubrics a:not(:last-child)::after {
    content: "|";
    color: #a0a0a0;
    margin: 0 6px 0 4px;
}

.themacat-toggle {
    color: #bb0f0f;
    font-size: 13px;
    text-decoration: underline;
    margin-top: 10px;
    align-self: flex-start;
}

.themacat-toggle:hover {
    text-decoration: none;
}

@media only screen and (max-width: 767px) {
    .themacat-card {
        width: 100%;
    }
    .themacat-card-title {
        font-size: 15px;
    }
    .themacat-count {
        font-size: 17px;
    }
    .themacat-count-label {
         font-size: 8px;
    }
    .themacat-card-img {
        flex: 0 0 84px;
        margin-right: 12px;
    }
    .themacat-card-img img {
        width: 84px;
    }
    .themacat-counts-divider {
        margin: 0 10px;
    }
}
