/* Blog homepage: title, featured article, popular panel and leading content blocks. */

.vm-feature {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 363px;
    gap: 40px;
}

.vm-feature-main .vm-cover {
    height: 358px;
}

.vm-feature-main h1 {
    font-size: 34px;
    line-height: 1.4;
    margin-top: 30px;
}

.vm-progress {
    height: 10px;
    border-radius: 10px;
    background: #f5f5f5;
    margin-top: 24px;
    overflow: hidden;
}

.vm-progress span {
    display: block;
    width: 33%;
    height: 100%;
    border-radius: 10px;
    background: var(--blog-accent);
}

.vm-popular h2, .vm-popular .h_2 {
    font-size: 26px;
    margin-bottom: 22px;
}

.vm-compact-item {
    border-bottom: 1px solid var(--blog-line);
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.vm-compact-item .h3 {
    font-size: 18px;
    line-height: 1.4;
    margin: 10px 0;
}

.vm-popular .button {
    display: block;
    width: 100%;
}

.vm-latest {
    display: grid;
    grid-template-columns: 565px minmax(0, 1fr);
    gap: 40px;
}

.vm-small-card {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 24px;
    margin-bottom: 24px;
    align-items: center;
}

.vm-small-card img {
    width: 130px;
    height: 130px;
    object-fit: cover;
    border-radius: 20px;
}

.vm-small-card .h3 {
    font-size: 18px;
    line-height: 1.4;
    margin: 10px 0;
}

.vm-latest-feature .vm-cover {
    height: 330px;
}

.vm-latest-feature h2, .vm-latest-feature .h_2 {
    font-size: 26px;
    line-height: 1.4;
    margin-top: 24px;
}

@media (max-width: 1199px) {
    .vm-latest {
        grid-template-columns: 1fr 1fr;
    }
    .vm-feature {
        grid-template-columns: minmax(0, 1fr) 300px;
        gap: 30px;
    }
}

@media (max-width: 899px) {
    .vm-feature {
        display: block;
    }
    .vm-popular {
        margin-top: 34px;
    }
    .vm-feature-main .vm-cover {
        height: 330px;
    }
    .vm-latest {
        display: block;
    }
    .vm-latest-feature {
        margin-top: 34px;
    }
}

@media (max-width: 599px) {
    .vm-feature-main .vm-cover {
        height: 200px;
    }
    .vm-feature-main h1 {
        font-size: 26px;
        margin-top: 24px;
    }
    .vm-popular h2, .vm-popular .h_2 {
        font-size: 22px;
    }
    .vm-latest-feature .vm-cover {
        height: 200px;
    }
    .vm-latest-feature h2, .vm-latest-feature .h_2 {
        font-size: 22px;
    }
    .vm-small-card {
        grid-template-columns: 80px minmax(0, 1fr);
        gap: 20px;
        align-items: start;
    }
    .vm-small-card img {
        width: 80px;
        height: 80px;
    }
    .vm-small-card .h3 {
        font-size: 16px;
        line-height: 1.35;
    }
}

.vm-feature-main h1 {
    margin-top: 40px;
}

.vm-progress {
    display: flex;
    gap: 0;
    margin-top: 40px;
    border-radius: 10px;
    height: 10px;
}

.vm-progress button {
    flex: 1;
    border: 0;
    padding: 0;
    background: #f0f0f0;
    height: 10px;
    cursor: pointer;
}

.vm-progress button[aria-pressed=true] {
    background: var(--blog-accent);
}

.vm-progress button:hover {
    background: var(--color-blue-muted);
}

.vm-progress:has(:focus-visible) {
    overflow: visible;
}

.vm-small-card .h3 a,
.vm-latest-feature h2 a,
.vm-feature-main h1 a,
.vm-compact-item .h3 a {
    color: var(--gray-950);
    transition: color .15s;
}

.vm-small-card .h3 a:hover,
.vm-latest-feature h2 a:hover,
.vm-feature-main h1 a:hover,
.vm-compact-item .h3 a:hover {
    color: var(--color-blue-muted);
}

@media (max-width: 599px) {
    .vm-feature-main h1 {
        margin-top: 24px;
    }
    .vm-progress {
        margin-top: 24px;
    }
}

.vm-feature-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.vm-feature-main h1 {
    min-height: 3em;
}

.vm-popular {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.vm-popular .vm-compact-item {
    flex: 1;
    margin-bottom: 0;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.vm-popular>.button {
    margin-top: 24px;
    flex-shrink: 0;
}

.vm-feature-main>.vm-progress {
    flex-shrink: 0;
    margin-top: auto;
    padding-top: 0;
}

.vm-feature-main h1 {
    margin-bottom: 40px;
}

.vm-latest-feature>.vm-meta {
    margin-top: 16px;
}

@media (max-width: 899px) {
    .vm-popular .vm-compact-item {
        flex: none;
    }
    .vm-feature-main h1 {
        min-height: 0;
    }
}

@media (max-width: 599px) {
    .vm-feature-main h1 {
        margin-bottom: 24px;
    }
}

.vm-feature-track {
    display: flex;
    align-items: stretch;
    gap: 40px;
    overflow-x: scroll;
    overflow-y: hidden;
    width: 100%;
    padding-bottom: 25px;
    scrollbar-color: var(--blog-accent) #f5f5f5;
    scrollbar-width: thin;
}

.vm-feature-track::-webkit-scrollbar {
    height: 10px;
}

.vm-feature-track::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 10px;
}

.vm-feature-track::-webkit-scrollbar-thumb {
    background: var(--blog-accent);
    border-radius: 10px;
    cursor: grab;
}

.vm-feature-track::-webkit-scrollbar-thumb:active {
    cursor: grabbing;
}

.vm-feature-slide {
    flex: 0 0 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.vm-feature-slide>.vm-feature-title {
    font-size: 34px;
    line-height: 1.4;
    margin: 40px 0 0;
    min-height: 3em;
}

@media (max-width: 599px) {
    .vm-feature-slide>.vm-feature-title {
        font-size: 26px;
        line-height: 1.4;
        margin-top: 24px;
        min-height: 0;
    }
}

.vm-blog .vm-feature-slide>.vm-feature-title {
    margin-bottom: 0;
}

.vm-blog .vm-popular .button.invert::before {
    background: var(--gray-900);
}

.vm-blog>.vm-blog-title {
    font-size: 44px;
    line-height: 1.25;
    margin: 0 0 40px;
    color: var(--gray-950);
}

@media (max-width: 599px) {
    .vm-blog>.vm-blog-title {
        font-size: 26px;
        margin-bottom: 28px;
    }
}

.vm-blog .vm-feature-title a {
    color: var(--gray-950);
}

.vm-blog .vm-feature-title a:hover {
    color: var(--color-blue-muted);
}

.vm-blog>.vm-blog-title {
    font-size: 44px;
    line-height: 1.25;
    margin: 0 0 40px;
    color: var(--gray-950);
}

@media (max-width: 599px) {
    .vm-blog>.vm-blog-title {
        font-size: 26px;
        margin-bottom: 28px;
    }
}

.vm-blog .vm-feature-title a {
    color: var(--gray-950);
}

.vm-blog .vm-feature-title a:hover {
    color: var(--color-blue-muted);
}

@media (min-width: 900px) {
    .vm-blog .vm-feature {
        align-items: start;
    }
    .vm-blog .vm-popular {
        min-height: 0;
    }
    .vm-blog .vm-popular .vm-compact-item {
        padding: 15px 0;
        min-height: 0;
        flex: 1;
    }
    .vm-blog .vm-popular>h2,
    .vm-blog .vm-popular>.h_2,
    .vm-blog .vm-popular>.button {
        flex-shrink: 0;
    }
}

@media (max-width:599px) {
    .vm-compact-item .h3 {
        font-size: 22px;
    }
}

section.section.subscription {
    display: none !important;
}

.vm-author img {
    object-fit: cover;
    object-position: top center;
}