 /* =========================================================
   VOTE SMART KE
   VOTER EDUCATION — ARTICLE
   REFINED EDITORIAL STYLE
   ========================================================= */


/* =========================================================
   ARTICLE BASE
   ========================================================= */

.vsk-ve-article {
    background: #f8fafc;
    color: #334e68;
}

/* Let the custom article use Astra's full-width content area. */
.site-content > .ast-container > main.vsk-ve-article {
    width: 100%;
    max-width: none;
    min-width: 0;
    flex: 0 0 100%;
}

.vsk-ve-article-container {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}


/* =========================================================
   ARTICLE HERO
   ========================================================= */

.vsk-ve-article-hero {
    padding: 32px 0 45px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.vsk-ve-article-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 25px;
    color: #829ab1;
    font-size: 0.78rem;
}

.vsk-ve-article-breadcrumb a {
    color: #0f766e;
    text-decoration: none;
    font-weight: 700;
}

.vsk-ve-article-breadcrumb a:hover {
    color: #102a43;
}

.vsk-ve-article-category {
    display: inline-block;
    margin-bottom: 12px;
    padding: 5px 10px;
    border-radius: 20px;
    background: #e6fffa;
    color: #0f766e;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.vsk-ve-article-title {
    max-width: 820px;
    margin: 0;
    color: #102a43;
    font-size: clamp(2rem, 4vw, 3.35rem);
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -0.025em;
}

.vsk-ve-article-intro {
    max-width: 720px;
    margin-top: 18px;
    color: #627d98;
    font-size: 1rem;
    line-height: 1.7;
}

.vsk-ve-article-intro p {
    margin: 0;
}

.vsk-ve-article-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 20px;
    color: #829ab1;
    font-size: 0.76rem;
    font-weight: 600;
}

.vsk-ve-meta-dot {
    color: #bcccdc;
}


/* =========================================================
   FEATURED IMAGE
   ========================================================= */

.vsk-ve-article-featured {
    padding: 32px 0 0;
}

.vsk-ve-article-image {
    width: min(900px, 100%);
    margin: 0 auto;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.vsk-ve-featured-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 430px;
    object-fit: cover;
}


/* =========================================================
   ARTICLE BODY
   ========================================================= */

.vsk-ve-article-body-section {
    padding: 48px 0 65px;
}

.vsk-ve-article-layout {
    display: grid;
    grid-template-columns: minmax(0, 720px) 260px;
    justify-content: center;
    align-items: start;
    gap: 55px;
    width: min(1035px, calc(100% - 40px));
    margin: 0 auto;
}


/* =========================================================
   ARTICLE CONTENT
   ========================================================= */

.vsk-ve-article-content {
    min-width: 0;
    color: #334e68;
    font-size: 1rem;
    line-height: 1.82;
}

.vsk-ve-article-content > *:first-child {
    margin-top: 0;
}

.vsk-ve-article-content p {
    margin: 0 0 21px;
}


/* =========================================================
   HEADINGS
   ========================================================= */

.vsk-ve-article-content h2 {
    margin: 38px 0 15px;
    color: #102a43;
    font-size: 1.55rem;
    line-height: 1.3;
    font-weight: 800;
}

.vsk-ve-article-content h3 {
    margin: 30px 0 12px;
    color: #102a43;
    font-size: 1.22rem;
    line-height: 1.35;
    font-weight: 800;
}

.vsk-ve-article-content h4 {
    margin: 25px 0 10px;
    color: #102a43;
    font-size: 1.05rem;
    line-height: 1.4;
    font-weight: 800;
}


/* =========================================================
   TEXT ELEMENTS
   ========================================================= */

.vsk-ve-article-content strong {
    color: #243b53;
    font-weight: 800;
}

.vsk-ve-article-content a {
    color: #0f766e;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.vsk-ve-article-content a:hover {
    color: #102a43;
}


/* =========================================================
   LISTS
   ========================================================= */

.vsk-ve-article-content ul,
.vsk-ve-article-content ol {
    margin: 0 0 25px;
    padding-left: 24px;
}

.vsk-ve-article-content li {
    margin-bottom: 8px;
}


/* =========================================================
   BLOCKQUOTE
   ========================================================= */

.vsk-ve-article-content blockquote {
    margin: 32px 0;
    padding: 20px 24px;
    background: #f0fdfa;
    border-left: 4px solid #0f766e;
    border-radius: 0 8px 8px 0;
    color: #285e61;
    font-size: 1rem;
    line-height: 1.7;
    font-style: italic;
}

.vsk-ve-article-content blockquote p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   ARTICLE IMAGES
   ========================================================= */

.vsk-ve-article-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 28px auto;
    border-radius: 8px;
}

.vsk-ve-article-content figure {
    margin: 30px 0;
}

.vsk-ve-article-content figcaption {
    margin-top: 8px;
    color: #829ab1;
    font-size: 0.75rem;
    line-height: 1.5;
    text-align: center;
}


/* =========================================================
   DIVIDER
   ========================================================= */

.vsk-ve-article-content hr {
    margin: 38px 0;
    border: 0;
    border-top: 1px solid #e5e7eb;
}


/* =========================================================
   ARTICLE SIDEBAR
   ========================================================= */

.vsk-ve-article-sidebar {
    position: sticky;
    top: 30px;
    align-self: start;
}

.vsk-ve-sidebar-card {
    margin-bottom: 16px;
    padding: 22px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.vsk-ve-sidebar-card h3 {
    margin: 7px 0 10px;
    color: #102a43;
    font-size: 1.08rem;
    line-height: 1.35;
    font-weight: 800;
}

.vsk-ve-sidebar-card p {
    margin: 0 0 16px;
    color: #627d98;
    font-size: 0.8rem;
    line-height: 1.65;
}

.vsk-ve-sidebar-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 13px;
    border-top: 1px solid #edf2f7;
    color: #102a43;
    text-decoration: none;
    font-size: 0.76rem;
    font-weight: 800;
}

.vsk-ve-sidebar-link:hover {
    color: #0f766e;
}

.vsk-ve-sidebar-dark .vsk-ve-sidebar-link {
    border-color: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.vsk-ve-sidebar-dark .vsk-ve-sidebar-link:hover {
    color: #5eead4;
}

.vsk-ve-article .vsk-ve-sidebar-card.vsk-ve-sidebar-dark a.vsk-ve-sidebar-link {
    margin-top: 14px;
    padding: 10px 12px;
    border: 1px solid #5eead4;
    border-radius: 6px;
    background: #5eead4;
    color: #102a43 !important;
    text-decoration: none;
}

.vsk-ve-article .vsk-ve-sidebar-card.vsk-ve-sidebar-dark a.vsk-ve-sidebar-link:hover,
.vsk-ve-article .vsk-ve-sidebar-card.vsk-ve-sidebar-dark a.vsk-ve-sidebar-link:focus-visible {
    border-color: #99f6e4;
    background: #99f6e4;
    color: #102a43 !important;
}

.vsk-ve-article .vsk-ve-sidebar-card.vsk-ve-sidebar-dark a.vsk-ve-sidebar-link:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 3px;
}

.vsk-ve-sidebar-link span {
    font-size: 1rem;
}


/* =========================================================
   DARK SIDEBAR CARD
   ========================================================= */

.vsk-ve-sidebar-dark {
    background: #102a43;
    border-color: #102a43;
}

.vsk-ve-sidebar-dark .vsk-ve-sidebar-number {
    color: #5eead4;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.vsk-ve-sidebar-dark h3 {
    color: #ffffff;
}

.vsk-ve-sidebar-dark p {
    color: #d9e2ec;
}


/* =========================================================
   EYEBROW
   ========================================================= */

.vsk-ve-article .vsk-ve-eyebrow {
    color: #0f766e;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    line-height: 1.4;
}


/* =========================================================
   ARTICLE FOOTER
   ========================================================= */

.vsk-ve-article-footer {
    padding: 45px 0;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
}

.vsk-ve-article-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.vsk-ve-article-footer h2 {
    max-width: 570px;
    margin: 6px 0 0;
    color: #102a43;
    font-size: clamp(1.45rem, 2.5vw, 2rem);
    line-height: 1.25;
    font-weight: 800;
}


/* =========================================================
   BUTTON
   ========================================================= */

.vsk-ve-article .vsk-ve-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    padding: 10px 17px;
    border-radius: 7px;
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 800;
    white-space: nowrap;
}

.vsk-ve-article .vsk-ve-button-primary {
    background: #102a43;
    color: #ffffff;
}

.vsk-ve-article .vsk-ve-button-primary:hover {
    background: #0f766e;
    color: #ffffff;
}

.vsk-ve-article .vsk-ve-button span {
    font-size: 1rem;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .vsk-ve-article-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 35px;
    }

    .vsk-ve-article-content {
        max-width: 760px;
    }

    .vsk-ve-article-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .vsk-ve-sidebar-card {
        margin-bottom: 0;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .vsk-ve-article-container {
        width: calc(100% - 30px);
    }

    .vsk-ve-article-hero {
        padding: 24px 0 38px;
    }

    .vsk-ve-article-breadcrumb {
        margin-bottom: 20px;
        font-size: 0.72rem;
    }

    .vsk-ve-article-title {
        font-size: 2rem;
        line-height: 1.12;
    }

    .vsk-ve-article-intro {
        font-size: 0.94rem;
        line-height: 1.7;
    }

    .vsk-ve-article-meta {
        margin-top: 17px;
        font-size: 0.72rem;
    }

    .vsk-ve-article-featured {
        padding-top: 22px;
    }

    .vsk-ve-article-image {
        border-radius: 9px;
    }

    .vsk-ve-featured-image {
        max-height: 260px;
        object-fit: cover;
    }

    .vsk-ve-article-body-section {
        padding: 38px 0 50px;
    }

    .vsk-ve-article-layout {
        width: calc(100% - 30px);
        gap: 30px;
    }

    .vsk-ve-article-content {
        font-size: 0.94rem;
        line-height: 1.78;
    }

    .vsk-ve-article-content h2 {
        margin-top: 34px;
        font-size: 1.4rem;
    }

    .vsk-ve-article-content h3 {
        margin-top: 27px;
        font-size: 1.16rem;
    }

    .vsk-ve-article-content h4 {
        font-size: 1rem;
    }

    .vsk-ve-article-sidebar {
        display: block;
        position: static;
    }

    .vsk-ve-sidebar-card {
        margin-bottom: 14px;
    }

    .vsk-ve-article-footer {
        padding: 38px 0;
    }

    .vsk-ve-article-footer-inner {
        display: block;
    }

    .vsk-ve-article-footer h2 {
        margin-bottom: 20px;
        font-size: 1.5rem;
    }

    .vsk-ve-article .vsk-ve-button {
        width: 100%;
    }

}
