.materials-page {
    box-sizing: border-box;
    color: #244d60;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 0 auto;
    max-width: 576px;
    padding: 8px;
}

.materials-hero {
    align-items: center;
    background: rgb(255 255 255 / 86%);
    border: 1px solid rgb(182 213 255 / 90%);
    border-radius: 18px;
    box-shadow: 0 1px 2px rgb(0 0 0 / 18%);
    box-sizing: border-box;
    display: flex;
    gap: 12px;
    min-height: 176px;
    overflow: hidden;
    padding: 18px;
}

.materials-hero__copy {
    flex: 1 1 auto;
    min-width: 0;
}

.materials-hero__eyebrow {
    align-items: center;
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.materials-hero__marks {
    display: flex;
    flex: 0 0 auto;
    gap: 5px;
}

.materials-hero__marks span {
    border-radius: 3px;
    display: block;
    height: 10px;
    width: 10px;
}

.materials-hero__marks span:nth-child(1) {
    background: #ff4fe1;
}

.materials-hero__marks span:nth-child(2) {
    background: #20c91c;
}

.materials-hero__marks span:nth-child(3) {
    background: #ffcb05;
}

.materials-eyebrow {
    color: #009688;
    font-size: 11px;
    font-weight: 900;
    line-height: 1.15;
    text-transform: uppercase;
}

.materials-hero h1 {
    color: #174ea6;
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.08;
    margin: 0;
}

.materials-hero p {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    margin: 10px 0 0;
}

.materials-hero img {
    flex: 0 0 82px;
    height: 82px;
    object-fit: contain;
    opacity: 0.86;
    width: 82px;
}

.materials-groups {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.materials-group {
    --materials-accent: #168eea;
    background: rgb(255 255 255 / 76%);
    border: 1px solid rgb(182 213 255 / 82%);
    border-radius: 18px;
    box-shadow: 0 1px 2px rgb(0 0 0 / 18%);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow: hidden;
}

.materials-group--green {
    --materials-accent: #0caf65;
}

.materials-group--yellow {
    --materials-accent: #f2a900;
}

.materials-group--coral {
    --materials-accent: #ff664f;
}

.materials-group--purple {
    --materials-accent: #9b51e0;
}

.materials-group__header {
    background: rgb(220 244 255 / 62%);
    border-bottom: 1px solid rgb(119 199 255 / 48%);
    padding: 14px 16px;
}

.materials-group__header h2 {
    color: #174ea6;
    font-size: clamp(20px, 5.3vw, 24px);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.15;
    margin: 0;
}

.materials-group__header p {
    color: #24556a;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    margin: 4px 0 0;
}

.materials-list {
    background: rgb(255 255 255 / 28%);
}

.materials-link {
    align-items: center;
    box-sizing: border-box;
    color: #174ea6;
    display: grid;
    gap: 10px;
    grid-template-columns: 7px minmax(0, 1fr) 24px;
    min-height: 72px;
    padding: 11px 12px 11px 10px;
    text-decoration: none;
}

.materials-link + .materials-link {
    border-top: 1px solid rgb(23 78 166 / 13%);
}

.materials-link:hover {
    background: rgb(255 255 255 / 54%);
}

.materials-link:focus-visible {
    outline: 3px solid #ffcb05;
    outline-offset: -3px;
}

.materials-link__marker {
    align-self: stretch;
    background: var(--materials-accent);
    border-radius: 5px;
    display: block;
    min-height: 38px;
}

.materials-link__copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.materials-link__copy strong {
    color: #174ea6;
    font-size: 15px;
    font-weight: 900;
    line-height: 1.2;
}

.materials-link__copy > span {
    color: #315f72;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    margin-top: 3px;
}

.materials-link__arrow {
    background: var(--materials-accent);
    height: 24px;
    -webkit-mask: url("/assets/img/svg/circle-right.svg") center / contain no-repeat;
    mask: url("/assets/img/svg/circle-right.svg") center / contain no-repeat;
    width: 24px;
}

@media (max-width: 430px) {
    .materials-hero {
        padding: 15px;
    }

    .materials-hero h1 {
        font-size: 24px;
    }

    .materials-hero img {
        flex-basis: 62px;
        height: 62px;
        width: 62px;
    }

    .materials-link {
        grid-template-columns: 6px minmax(0, 1fr) 22px;
        padding-left: 9px;
        padding-right: 10px;
    }

    .materials-link__arrow {
        height: 22px;
        width: 22px;
    }
}
