/* =========================
   Exercises
   ========================= */

.exercises {
    position: relative;
    padding-top: 48px;
    padding-bottom: 96px;
    align-items: center;
}

.exercises--catalog-top {
    padding-top: 24px;
}

.exercises__decor__img {
    position: absolute;
    width: auto;
    height: auto;
    z-index: -1;
    opacity: 0.2;
}

.exercises__decor__img:nth-child(1) {
    top: 10px;
    left: -20px;
}

.exercises__decor__img:nth-child(2) {
    top: 50px;
    right: 30px;
}

.exercises__decor__img:nth-child(3) {
    bottom: 58px;
    left: -40px;
}

.exercises__decor__img:nth-child(4) {
    bottom: 150px;
    right: -20px;
}

.exercises__header {
    max-width: 940px;
    gap: 16px;
    margin-bottom: 24px;
}

.exercises__badge {
    font-size: 16px;
}

.exercises h2 {
    max-width: 1050px;
}

.exercises__content {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.exercises__content--small {
    max-width: 840px;
}

.exercises__card__link__wrapper {
    display: inline-flex;
    align-items: stretch;
    max-width: 210px;
    min-width: min-content;
    width: 100%;
    box-sizing: content-box;
    padding-right: var(--padding-right, 0);
}

.universal-card-wrapper.exercises__card {
    border-color: var(--orange);
    border-width: 2px;
    border-bottom-width: 2px;
    border-radius: 24px;
    gap: 8px;
    justify-content: space-between;
    transition: all .4s ease;
}

@media screen and (min-width: 769px) {
    .universal-card-wrapper.exercises__card {
        height: 120px;
        padding: 0 24px;
        justify-content: center;
    }
    
}

@media (hover: hover) and (pointer: fine) {
    .universal-card-wrapper.exercises__card:hover {
        background: var(--light-orange);
    }
}

.exercises__card__header {
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.exercises__card__header__icons {
    gap: 8px;
}

.exercises__card__header__icon {
    display: inline-block;
    width: 36px;
    height: 36px;
}

.exercises__card__free {
    padding: 4px 12px;
    min-height: 32px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #EBEDEF;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2;
    color: var(--orange);
}

.exercises__card__text {
    font-family: var(--font-serif);
    font-size: 19px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text);
    word-break: break-word;
}

.exercises__card__context {
    margin-right: 2px;
    color: #777c84;
    font-weight: 500;
}

@media screen and (max-width: 1024px) {
    .exercises__decor__img {
        display: none;
    }
}

@media screen and (max-width: 768px) {
    .exercises {
        align-items: flex-start;
        padding-top: 24px;
        padding-bottom: 24px;
    }

    .exercises--bottom {
        align-items: center;
    }

    .exercises {
        padding-top: 32px;
        padding-bottom: 32px;
    }

    .exercises--catalog-top {
        padding-top: 16px;
    }

    .exercises__header {
        margin-bottom: 16px;
    }

    .exercises--catalog-top .exercises__header .title-section {
        text-align: left;
    }

    .exercises__badge {
        align-self: flex-start;
        border-radius: 99px;
    }

    .exercises h2 {
        text-align: start;
    }

    .exercises--bottom h2 {
        text-align: center;
    }

    .exercises--bottom .exercises__badge {
        align-self: center;
    }

    .exercises__content {
        gap: 8px;
    }

    .exercises__card__link__wrapper {
        max-width: calc(50% - 8px);
        padding-right: 0;
    }

    .universal-card-wrapper.exercises__card {
        padding: 11px 11px 8px;
    }

    .exercises__card__header img {
        width: 28px;
        height: 28px;
    }

    .exercises__card__free {
        min-height: 22px;
        font-size: 12px;
    }

    .exercises__card__text {
        font-size: 19px;
    }
}

@media screen and (max-width: 350px) {
    .exercises__card__link__wrapper {
        max-width: none;
    }
}

/* Category cards share the catalog's real counts and personal progress. */
.category-progress-card { --category-tint:#D5F5E3; --category-color:#27AE60; display:flex; flex-direction:column; gap:8px; flex:0 1 220px; width:220px; min-width:0; min-height:171px; padding:16px; border:3px solid var(--category-tint); border-bottom-width:6px; border-radius:16px; background:#fff; color:var(--text); text-decoration:none; transition:border-color 180ms ease,background-color 180ms ease; }
.category-progress-card--yellow { --category-tint:#FFF5CC; --category-color:#D3A900; }
.category-progress-card--purple { --category-tint:#E8DAF6; --category-color:#8E44AD; }
.category-progress-card--blue { --category-tint:#D6E4FF; --category-color:#2451B9; }
.category-progress-card--coral { --category-tint:#FFDBD4; --category-color:#F85628; }
.category-progress-card--peach { --category-tint:#FEE9D8; --category-color:#F85628; }
.category-progress-card__top { display:flex; flex-wrap:wrap; align-items:flex-start; justify-content:space-between; gap:6px; }
.category-progress-card__icons { display:inline-flex; gap:6px; }
.category-progress-card__icons img { display:block; width:36px; height:36px; }
.category-progress-card__count { display:inline-flex; align-items:center; border:1px solid #EBEDEF; border-radius:99px; padding:3px 8px; font-size:12px; line-height:16px; color:#656A70; white-space:nowrap; }
.category-progress-card__heading { display:flex; flex-direction:column; gap:2px; color:inherit; text-decoration:none; }
.category-progress-card__context { color:#656A70; font-size:12px; line-height:16px; font-weight:400; }
.category-progress-card__name { font:700 19px/1.2 var(--font-serif); overflow-wrap:anywhere; }
.category-progress-card__metrics { display:flex; flex-direction:column; gap:4px; margin-top:auto; width:100%; font-size:11px; line-height:16px; }
.category-progress-card__progress-label,.category-progress-card__best { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.category-progress-card__progress-label strong { font-size:11px; }
.category-progress-card__track { display:block; height:7px; width:100%; background:#EBEDEF; border-radius:99px; overflow:hidden; }
.category-progress-card__track > span { display:block; height:100%; border-radius:inherit; background:var(--category-color); }
.category-progress-card__best { border-top:1px solid #EBEDEF; padding-top:6px; margin-top:2px; }
.category-progress-card__score { border-radius:99px; padding:1px 6px; font-size:11px; line-height:16px; font-variant-numeric:tabular-nums; }
.category-progress-card__score--good { background:#D5F5E3; color:#187C43; }
.category-progress-card__score--medium { background:#FFF5CC; color:#856900; }
.category-progress-card__score--low { background:#FFDBD4; color:#B12E10; }
.category-progress-card__score--empty { color:#656A70; }
.category-progress-card[data-category-progress-card] { cursor:pointer; }
@media (hover:hover) { .category-progress-card:hover { border-color:var(--category-color); background:#FAFBFC; } }
@media (max-width:768px) {
    .category-progress-card { flex-basis:calc(50% - 4px); width:calc(50% - 4px); padding:10px; min-height:171px; }
    .category-progress-card__icons img { width:28px; height:28px; }
    .category-progress-card__count { font-size:10px; padding:2px 5px; }
    .category-progress-card__name { font-size:18px; }
}
@media (prefers-reduced-motion:reduce) { .category-progress-card { transition:none; } }
