/* Shared blog components: cards, labels, buttons, pagination, carousel controls and content typography. */

.vm-blog .button {
    text-decoration: none;
    font-family: inherit;
}

.vm-breadcrumb {
    font-size: 12px;
    color: #666;
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.vm-breadcrumb a {
    color: var(--blog-accent);
}

.vm-section {
    margin-top: 70px;
}

.vm-section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin-bottom: 30px;
}

.vm-section-heading>a {
    font-size: 14px;
}

.vm-cover {
    display: block;
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: var(--blog-surface);
}

.vm-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.vm-cover-meta {
    position: absolute;
    bottom: 24px;
    left: 0;
    background: white;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    font-size: 12px;
    max-width: 100%;
    flex-wrap: wrap;
}

.vm-meta {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    font-size: 12px;
    color: #666;
}

.vm-category-link {
    font-size: 12px;
    color: var(--blog-accent);
}

.vm-button-row {
    margin-top: 24px;
}

.vm-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 40px;
    row-gap: 40px;
}

.vm-card {
    min-width: 0;
}

.vm-card .vm-cover {
    height: 250px;
}

.vm-card .h3 {
    font-size: 18px;
    line-height: 1.4;
    margin: 20px 0 12px;
}

.vm-card .vm-meta {
    margin-top: 16px;
}

.vm-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin: 12px 0 0;
}

.vm-category-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 25px 0 34px;
}

.vm-category-bar a {
    font-size: 14px;
    background: var(--blog-surface);
    padding: 6px 12px;
    border-radius: 20px;
}

.vm-category-bar a[aria-current=page],
.vm-category-bar a:hover {
    background: var(--blog-accent);
    color: white;
    text-decoration: none;
}

.vm-pagination {
    display: flex;
    gap: 18px;
    justify-content: center;
    align-items: center;
    margin-top: 48px;
}

.vm-pagination a {
    font-size: 24px;
}

.vm-pagination a[aria-current=page] {
    color: var(--color-blue-muted);
    font-weight: 700;
}

.vm-tag {
    background: var(--blog-surface);
    color: var(--blog-accent);
    padding: 7px 12px;
    border-radius: 20px;
}

.vm-reading-grid {
    display: grid;
    grid-template-columns: 800px 300px;
    gap: 70px;
    align-items: start;
}

.vm-article {
    min-width: 0;
    font-size: 18px;
    line-height: 1.65;
}

.vm-article h2, .vm-article .h_2 {
    font-size: 34px;
    margin: 44px 0 24px;
    scroll-margin-top: 30px;
}

.vm-article .h3 {
    font-size: 26px;
    margin: 34px 0 20px;
}

.vm-article>p {
    margin: 0 0 26px;
}

.vm-article strong {
    font-weight: 700;
}

.vm-article a:not(.button) {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.vm-bullets {
    list-style: none;
    padding: 0;
    margin: 20px 0 32px;
}

.vm-bullets li {
    position: relative;
    padding-left: 32px;
    margin: 14px 0;
}

.vm-bullets li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .55em;
    width: 18px;
    height: 18px;
    border: 1px solid var(--blog-accent);
    border-radius: 50%;
}

.vm-bullets li::after {
    content: "";
    position: absolute;
    left: 4px;
    top: calc(.55em + 4px);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--blog-accent);
}

.vm-sidebar .vm-category-bar {
    margin: 0;
}

.vm-carousel-tools {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    margin-top: 28px;
}

.vm-carousel-tools button {
    padding: 8px 14px;
    border: 1px solid #ccd4da;
    background: white;
    color: var(--blog-accent);
}

.vm-carousel-tools button[aria-pressed=true] {
    background: var(--blog-accent);
    color: white;
}

.vm-carousel-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 48px)/3);
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.vm-carousel-track::-webkit-scrollbar {
    display: none;
}

.vm-related-card {
    border: 1px solid #ddd;
    display: flex;
    flex-direction: column;
    scroll-snap-align: start;
    background: white;
    text-decoration: none !important;
    color: inherit !important;
    min-height: 508px;
}

.vm-related-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.vm-related-card-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
    padding: 24px;
    gap: 16px;
}

.vm-related-card .h3 {
    font-size: 18px;
    line-height: 1.4;
}

.vm-related-card p {
    font-size: 14px;
    line-height: 1.5;
    color: #666;
    margin: 0;
}

.vm-related-card .button {
    margin-top: auto;
    pointer-events: none;
}

.vm-related-card:hover .button::before {
    transform: scale(1.1);
}

.vm-feedback {
    padding: 20px;
    background: var(--blog-surface);
    border-radius: 20px;
}

.vm-feedback button {
    padding: 7px 15px;
    border: 1px solid #ccd4da;
    background: white;
    margin: 8px 8px 0 0;
}

.vm-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
}

@media (max-width: 1199px) {
    .vm-reading-grid {
        grid-template-columns: minmax(0, 1fr) 270px;
        gap: 35px;
    }
    .vm-card-grid {
        gap: 25px;
    }
    .vm-carousel-track {
        grid-auto-columns: calc((100% - 24px)/2);
    }
}

@media (max-width: 899px) {
    .vm-reading-grid {
        display: block;
    }
    .vm-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 599px) {
    .vm-cover-meta {
        font-size: 11px;
        gap: 8px;
        padding: 6px 10px;
        bottom: 16px;
    }
    .vm-section {
        margin-top: 45px;
    }
    .vm-section-heading {
        align-items: flex-start;
        gap: 15px;
        flex-wrap: wrap;
    }
    .vm-card-grid {
        grid-template-columns: 1fr;
        row-gap: 34px;
    }
    .vm-card .vm-cover {
        height: 200px;
    }
    .vm-card .h3 {
        font-size: 16px;
        margin-top: 20px;
    }
    .vm-category-bar a {
        font-size: 12px;
    }
    .vm-article {
        font-size: 16px;
        line-height: 1.65;
    }
    .vm-article h2, .vm-article .h_2 {
        font-size: 26px;
    }
    .vm-article .h3 {
        font-size: 22px;
    }
    .vm-carousel-track {
        grid-auto-columns: 100%;
    }
    .vm-related-card {
        min-height: 508px;
    }
    .vm-category-bar {
        gap: 8px;
    }
    .vm-pagination {
        gap: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .vm-carousel-track {
        scroll-behavior: auto;
    }
    .vm-blog .button::before {
        transition: none;
    }
}

.vm-card .h3 a {
    color: var(--gray-950);
    transition: color .15s;
}

.vm-card .h3 a:hover {
    color: var(--color-blue-muted);
}

.vm-article a:not(.button) {
    text-decoration: none;
}

.vm-blog .button::before,
.vm-blog .button:hover::before,
.vm-related-card:hover .button::before {
    background: #327A96;
    transform: none;
}

.vm-blog .button:hover::before,
.vm-related-card:hover .button::before {
    background: #28627A;
}

.vm-views {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.vm-blog .vm-views img {
    max-width: none;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 0;
    display: block;
}

.vm-cover-meta time {
    white-space: nowrap;
}

.vm-carousel-track {
    grid-auto-columns: calc((100% - 48px)/3);
    scroll-snap-type: none;
    scroll-behavior: auto;
}

.vm-related-card {
    scroll-snap-align: none;
}

.vm-carousel-tools button:disabled {
    opacity: .4;
    cursor: default;
}

@media (max-width: 899px) {
    .vm-carousel-track {
        grid-auto-columns: calc((100% - 24px)/2);
    }
}

@media (max-width: 599px) {
    .vm-carousel-track {
        grid-auto-columns: 100%;
    }
    .vm-cover-meta {
        gap: 6px;
        max-width: 100%;
        font-size: 10px;
    }
    .vm-cover-meta .vm-views img {
        max-width: none;
    }
}

.vm-max-share {
    position: relative;
    width: 30px;
    height: 30px;
    border: 0;
    padding: 0;
    background: none;
    border-radius: 50%;
    display: block;
}

.vm-max-share>span {
    position: absolute;
    inset: 20%;
    display: grid;
    place-items: center;
}

.vm-max-share:hover {
    filter: brightness(1.15);
}

.vm-related-card {
    border-radius: 20px;
    overflow: hidden;
}

.vm-related-card-content {
    padding: 40px;
    gap: 24px;
}

.vm-related-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 12px;
    color: #666;
    line-height: 20px;
}

.vm-related-category {
    padding: 6px 12px;
    border-radius: 20px;
    background: var(--blog-surface);
    color: var(--gray-950);
}

.vm-related-card .h3 {
    font-weight: 700;
}

.vm-related-card p {
    line-height: 1.8;
    margin-top: -12px;
}

.vm-carousel .vm-section-heading {
    margin-bottom: 32px;
}

@media (max-width: 899px) {
    .vm-related-card-content {
        padding: 24px;
    }
}

body[data-page=category] .vm-blog>h1 {
    margin-bottom: 32px;
}

@media (max-width: 599px) {
    body[data-page=category] .vm-blog>h1 {
        margin-bottom: 24px;
    }
}

.vm-bullets li::before,
.vm-bullets li::after {
    top: 50%;
    transform: translateY(-50%);
}

.vm-bullets li::before {
    box-sizing: border-box;
}

.vm-carousel-body {
    position: relative;
}

.vm-carousel-track {
    padding: 1px 2px;
}

.vm-carousel-body>.vm-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    padding: 4px;
    border: 0;
    background: transparent;
    display: grid;
    place-items: center;
    cursor: pointer;
}

.vm-carousel-arrow--prev {
    left: -56px;
}

.vm-carousel-arrow--next {
    right: -56px;
}

.vm-carousel-arrow--prev img {
    transform: rotate(180deg);
}

.vm-carousel-arrow:disabled {
    opacity: .35;
    cursor: default;
}

@media (max-width: 1299px) {
    .vm-carousel-body {
        padding-inline: 48px;
    }
    .vm-carousel-arrow--prev {
        left: 0;
    }
    .vm-carousel-arrow--next {
        right: 0;
    }
}

@media (max-width: 599px) {
    .vm-carousel-body {
        padding-inline: 40px;
    }
    .vm-carousel-body>.vm-carousel-arrow {
        width: 32px;
        height: 32px;
        padding: 0;
    }
}

@media (min-width: 1340px) {
    .vm-carousel {
        width: calc(100% + 120px);
        margin-inline: -60px;
        padding-inline: 60px;
    }
}

.vm-blog .button.invert::before,
.vm-blog .button.invert:hover::before,
.vm-blog .vm-related-card:hover .button::before {
    background: var(--gray-900);
}

.vm-blog .vm-related-card p {
    width: 100%;
    max-width: none;
    padding-right: 0;
}

.vm-wordmark {
    display: inline-block;
    width: var(--vm-wordmark-width, 3.48em);
    height: var(--vm-wordmark-height, .76em);
    vertical-align: calc(-1 * var(--vm-wordmark-drop, .21em));
    overflow: visible;
}

.vm-blog .vm-wordmark img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: contain;
}

.vm-blog .vm-carousel-body {
    display: block;
    position: relative;
}

.vm-blog .vm-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.vm-blog .vm-carousel-arrow--prev {
    left: 0;
}

.vm-blog .vm-carousel-arrow--next {
    right: 0;
}

.vm-blog .vm-carousel-body {
    padding-inline: 0;
}

.vm-blog .vm-related-card p {
    width: 100%;
    max-width: none;
    padding-right: 0;
}

.vm-wordmark {
    display: inline-block;
    width: var(--vm-wordmark-width, 3.48em);
    height: var(--vm-wordmark-height, .76em);
    vertical-align: calc(-1 * var(--vm-wordmark-drop, .21em));
    overflow: visible;
}

.vm-blog .vm-wordmark img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: contain;
}

.vm-blog .vm-carousel-body {
    display: block;
    position: relative;
}

.vm-blog .vm-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.vm-blog .vm-carousel-arrow--prev {
    left: 0;
}

.vm-blog .vm-carousel-arrow--next {
    right: 0;
}

.vm-blog .vm-carousel-body {
    padding-inline: 0;
}

.vm-blog .vm-pagination {
    flex-wrap: wrap;
    margin-top: 18px;
}

.vm-blog .vm-pagination-step {
    font-size: 14px;
}

.vm-blog .vm-carousel-arrow img {
    width: 32px;
    height: 32px;
    max-width: none;
    object-fit: contain;
}

.vm-blog .vm-carousel-body>.vm-carousel-arrow {
    top: 92px;
    transform: translateY(-50%);
    margin-top: 0;
    width: 40px;
    height: 40px;
    padding: 11px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 50%;
    box-shadow: 0 2px 5px #00000014;
    display: grid;
    place-items: center;
    z-index: 3;
}

.vm-blog .vm-carousel-arrow img {
    width: 16px;
    height: 16px;
    max-width: none;
    object-fit: contain;
}

.vm-blog .vm-carousel-arrow--prev {
    left: 8px;
}

.vm-blog .vm-carousel-arrow--next {
    right: 8px;
}

.vm-blog .vm-carousel-arrow:disabled {
    opacity: 0;
    pointer-events: none;
}

.vm-blog .vm-carousel-body>.vm-carousel-arrow {
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    margin-top: 0;
    width: 40px;
    height: 40px;
    padding: 11px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 50%;
    box-shadow: 0 2px 5px #00000014;
    display: grid;
    place-items: center;
    z-index: 3;
}

.vm-blog .vm-carousel-arrow img {
    width: 16px;
    height: 16px;
    max-width: none;
    object-fit: contain;
}

.vm-blog .vm-carousel-arrow--prev {
    left: -52px;
}

.vm-blog .vm-carousel-arrow--next {
    right: -52px;
}

.vm-blog .vm-carousel-arrow:disabled {
    opacity: .35;
    pointer-events: none;
    display: grid;
}

@media (min-width: 600px) and (max-width: 1299px) {
    .vm-blog .vm-carousel-body {
        padding-inline: 52px;
    }
    .vm-blog .vm-carousel-arrow--prev {
        left: 0;
    }
    .vm-blog .vm-carousel-arrow--next {
        right: 0;
    }
}

@media (max-width: 599px) {
    .vm-blog .vm-carousel-body {
        padding: 0;
    }
    .vm-blog .vm-carousel-body>.vm-carousel-arrow {
        top: 50%;
        bottom: auto;
        transform: translateY(-50%);
    }
    .vm-blog .vm-carousel-arrow--prev {
        left: -8px;
        right: auto;
    }
    .vm-blog .vm-carousel-arrow--next {
        right: -8px;
        left: auto;
    }
}


/* Shared card text uses the surrounding blog rhythm. */

.vm-related-card p {
    line-height: inherit;
}

@media (max-width:599px) {
    .vm-related-card .h3 {
        font-size: 18px;
    }
}


/* Pagination shares the existing author-slider dot dimensions and colours. */

.vm-blog .vm-carousel-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    min-height: 12px;
}

.vm-blog .vm-carousel-pagination[hidden] {
    display: none;
}

.vm-blog .vm-carousel-dot {
    width: 12px;
    height: 12px;
    flex: 0 0 12px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #00214f;
    opacity: .2;
    cursor: pointer;
}

.vm-blog .vm-carousel-dot[aria-current="true"] {
    opacity: 1;
}

.vm-blog .vm-carousel-dot:focus-visible {
    outline: 2px solid var(--blog-accent);
    outline-offset: 4px;
}


/* Compact one-card layout; desktop card alignment is retained. */

@media(max-width:599px) {
    .vm-blog .vm-carousel-track {
        align-items: start;
        transition: height .24s ease;
    }
    /* .vm-blog .vm-related-card {
        min-height: 0;
        align-self: start;
        height: auto;
    }
    .vm-blog .vm-related-card-content {
        flex: 0 0 auto;
        gap: 20px;
    } */
    .vm-blog .vm-related-card p {
        margin-top: -8px;
    }
    /* .vm-blog .vm-related-card .button {
        margin-top: 0;
    } */
    .vm-author-page .author-p-articles .swiper-wrapper {
        align-items: flex-start;
    }
    /* .vm-author-page .author-p-articles .vm-related-card {
        min-height: 0;
        align-self: start;
        height: auto;
    } */
}

@media(max-width:599px) and (prefers-reduced-motion:reduce) {
    .vm-blog .vm-carousel-track {
        transition: none;
    }
}

span.vm-title-copy {
    font-weight: 400;
}

@media (min-width: 1200px) {
    .top-bar-show .vm-full-page .vm-sidebar {
        top: 220px;
    }
    .vm-full-page .vm-sidebar {
        top: 170px;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .top-bar-show .vm-full-page .vm-sidebar {
        top: 190px;
    }
    .vm-full-page .vm-sidebar {
        top: 140px;
    }
}

@media (max-width: 992px) {
    body h1.vm-blog-title span.vm-wordmark {
        height: 24px;
        width: 95px;
    }
}