/* Хронологический каталог (stamps-catalog-chronocat.php) */

#chrono .flex {
    align-items: flex-start;
}

.catalog-tabs {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
    align-items: flex-start;
}

.catalog-tabs a {
    background-color: #f4f5f0;
    color: #bb0f0f;
    font-family: "PT Sans Narrow", arial, sans-serif, monospace, verdana;
    font-size: 18px;
    font-weight: bold;
    text-decoration: underline;
    padding: 5px 20px 10px;
    margin: 0 21px -2px 0;
    border: 2px solid #f6f6f5;
    border-radius: 4px;
}

.catalog-tabs a:hover {
    color: #565555;
    text-decoration: none;
}

.catalog-tabs a.active {
    color: #565555;
    background-color: #fff;
    text-decoration: none;
}

#chrono .flex .chrono-filter-row {
    align-items: stretch;
    flex-wrap: wrap;
    gap: 20px;
}

.chrono-red-btn {
    background-color: #ce4d4d;
    border-radius: 5px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 22px;
    text-decoration: none;
    font-family: "PT Sans Narrow", arial, sans-serif, monospace, verdana;
    font-size: 17px;
    font-weight: bold;
    line-height: 1.5;
    box-sizing: border-box;
}
.chrono-red-btn:visited {
    color: #fff;
}
.chrono-red-btn .block-red-arrows {
    margin-left: 15px;
}

.chrono-red-btn:hover {
    color: #fff;
    opacity: 0.9;
}

.chrono-red-btn span {
    font-size: 13px;
    font-weight: normal;
    font-family: sans-serif;
    opacity: 0.9;
    display: block;
}

.chrono-filters {}

.chrono-filters .filter {
    display: flex;
    justify-content: start;
    min-width: 415px;
    margin-right: 10px;
}

.filter-title {
    color: #565555;
    font-size: 15px;
    font-weight: bold;
    margin-right: 10px;
}

.chrono-stats {
    text-align: center;
    margin-left: auto;
    border: 1px solid #c9d6d0;
    border-radius: 5px;
    padding: 10px 16px;
}

#chrono .chrono-stats .flex {
    align-items: center;
    margin-bottom: 12px;
}

.chrono-stats-num {
    color: #ef504d;
    font-family: "PT Sans Narrow", arial, sans-serif, monospace, verdana;
    font-size: 38px;
    font-weight: bold;
    line-height: 1;
}

.chrono-stats-label {
    color: #606060;
    font-size: 11px;
    text-transform: uppercase;
    width: 76px;
    text-align: left;
    margin-left: 10px;
}

.chrono-years {
    margin-top: 30px;
}

.chrono-years .filter-title {
    margin-bottom: 20px;
}

.filter-block .filter {
    padding: 18px 10px;
}

.b-year-2 .filter-year {
    padding: 4px 10px;
    width: 51px;
}

.filter-block .btn {
    margin-left: 10px;
    padding: 8px 18px;
}

.chrono-years-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 8px 15px;
}

.chrono-year {
    font-size: 14px;
    white-space: nowrap;
}

.chrono-year a {
    color: #333;
    text-decoration: none;
    font-weight: bold;
}

.chrono-year a:hover {
    text-decoration: underline;
    color: #bb0f0f;
}

.chrono-year a.active-year {
    color: #bb0f0f;
    font-weight: bold;
}

.chrono-year .count {
    color: #333;
}

.chrono-year.empty {
    color: #a0a0a0;
}

@media only screen and (max-width: 820px) {
    .catalog-tabs {
        flex-wrap: nowrap;
    }
    .catalog-tabs a {
        font-size: 16px;
        padding: 5px 8px 10px;
        margin: 0 14px -6px 0;
    }
    #chrono .flex .chrono-filter-row {
        flex-wrap: nowrap;
    }
    .chrono-red-btn {
        padding: 0 12px;
        font-size: 14px;
    }
    .chrono-red-btn span {
        font-size: 11px;
    }
    .chrono-stats {
        margin-left: 10px;
    }
}

@media only screen and (max-width: 767px) {
    #chrono .flex>div {
        width: 100%;
    }
    .chrono-filter-row {
        flex-direction: column;
    }
    .chrono-filters {
        min-width: 0;
    }
    .chrono-filters .filter {
        margin-bottom: 20px;
        margin-top: 0;
    }
    .chrono-stats {
        display: flex;
        padding: 6px;
        text-align: right;
    }
    #chrono .chrono-stats .flex {
        margin-bottom: 0;
    }
    .chrono-stats-label {
        margin-left: 0;
    }
    .chrono-stats-num {
        font-size: 30px;
        margin-right: 6px;
    }
    .chrono-years-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px 10px;
    }
    .catalog-tabs {
        display: block;
    }
    .catalog-tabs a {
        display: block;
        font-size: 15px;
        padding: 5px 3px 8px;
        font-weight: normal;
        margin: 0 0 6px 0;
        text-align: center;
    }
    .chrono-red-btn {
        justify-content: flex-start;
        padding: 10px 22px;
        font-size: 15px;
    }
    .filter-block .filter {
        min-width: initial;
        text-align: left;
        margin-right: 0;
        padding: 0 0 20px 20px;
        width: initial;
        flex-wrap: wrap;
    }
    .filter-block .filter-title {
        margin-right: 0;
        width: 100%;
    }
    .filter-block .filter form {
        justify-content: flex-start;
    }
    .filter-block .btn {
        margin-left: 18px;
    }
}