/* ==================================================
   SINGLE BLOG POSTS
   Scope: .ms-single-post only
================================================== */

.ms-single-post {
    overflow: hidden;
}

.ms-article-hero {
    padding: 74px 0 82px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    background:
        radial-gradient(circle at 82% 20%, rgba(255, 193, 7, .16), transparent 29%),
        linear-gradient(135deg, rgba(255, 255, 255, .05), transparent 58%);
}

.ms-article-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
    align-items: start;
}

.ms-article-heading {
    width: 100%;
    max-width: none;
}

.ms-article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    color: var(--ms-accent);
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ms-article-meta a {
    color: inherit;
}

.ms-article-heading h1 {
    max-width: none;
    margin: 0;
    color: var(--ms-white);
    font-size: clamp(2rem, 3.2vw, 3.6rem);
    font-weight: 900;
    letter-spacing: -.055em;
    line-height: 1.04;
}

.ms-article-lead {
    max-width: 720px;
    margin: 28px 0 0;
    color: rgba(255, 255, 255, .76);
    font-size: clamp(1.05rem, 2vw, 1.28rem);
    line-height: 1.7;
}

.ms-article-reading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 28px;
    color: rgba(255, 255, 255, .58);
    font-size: .9rem;
    font-weight: 700;
}

.ms-article-reading span {
    color: var(--ms-accent);
}

.ms-article-visual {
    width: 100%;
    min-width: 0;
}

.ms-article-featured-image,
.ms-article-visual-placeholder {
    display: block;
    width: 100%;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 30px;
    box-shadow:
        0 24px 60px rgba(0, 0, 0, .24),
        inset 0 1px 0 rgba(255, 255, 255, .1);
}

.ms-article-featured-image {
    height: auto;
}

.ms-article-visual-placeholder {
    display: flex;
    min-height: 360px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 50% 30%, rgba(255, 193, 7, .24), transparent 28%),
        linear-gradient(145deg, #182d42, #07142b);
    color: var(--ms-white);
    text-align: center;
}

.ms-article-visual-mark {
    margin-bottom: 18px;
    color: var(--ms-accent);
    font-size: 4rem;
}

.ms-article-visual-placeholder strong {
    font-size: 1.6rem;
    font-weight: 900;
}

.ms-article-visual-placeholder small {
    margin-top: 6px;
    color: rgba(255, 255, 255, .64);
}

.ms-article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-content: stretch;
    padding-top: 78px;
    padding-bottom: 100px;
}

.ms-article-main {
    min-width: 0;
}

.ms-article-content {
    color: rgba(255, 255, 255, .82);
    font-size: 1.08rem;
    line-height: 1.85;
}

.ms-article-content > * {
    max-width: 100%;
    margin-right: 0;
    margin-left: 0;
}

.ms-article-content > p:first-child {
    color: var(--ms-white);
    font-size: 1.24rem;
    font-weight: 600;
    line-height: 1.7;
}

.ms-article-content h2 {
    position: relative;
    max-width: 100%;
    margin-top: 64px;
    margin-bottom: 20px;
    padding: 18px 22px 18px 26px;
    border: 1px solid rgba(255, 193, 7, .18);
    border-radius: 20px;
    background: linear-gradient(100deg, rgba(255, 193, 7, .1), rgba(255, 255, 255, .035));
    color: var(--ms-white);
    font-size: clamp(1.3rem, 2.2vw, 1.85rem);
    font-weight: 900;
    letter-spacing: -.035em;
    line-height: 1.15;
}

.ms-article-content h2::before {
    position: absolute;
    top: 18px;
    bottom: 18px;
    left: 0;
    width: 4px;
    border-radius: 0 4px 4px 0;
    background: var(--ms-accent);
    content: '';
}

.ms-article-content h3 {
    margin-top: 42px;
    margin-bottom: 14px;
    color: var(--ms-accent);
    font-size: 1.35rem;
    font-weight: 900;
}

.ms-article-content p {
    margin-top: 0;
    margin-bottom: 24px;
}

.ms-article-content a {
    color: var(--ms-accent);
    font-weight: 800;
    text-decoration: underline;
    text-decoration-color: rgba(255, 193, 7, .4);
    text-underline-offset: 3px;
}

.ms-article-content ul,
.ms-article-content ol {
    margin: 0 0 28px;
    padding-left: 1.4em;
}

.ms-article-content li {
    margin-bottom: 10px;
}

.ms-article-content blockquote {
    margin: 36px auto;
    padding: 26px 28px;
    border-left: 4px solid var(--ms-accent);
    border-radius: 0 20px 20px 0;
    background: rgba(255, 193, 7, .08);
    color: var(--ms-white);
    font-size: 1.18rem;
    font-weight: 700;
}

.ms-article-content img {
    height: auto;
    border-radius: 22px;
}

.ms-article-content .wp-block-table,
.ms-article-content > table {
    width: 100%;
    max-width: 100%;
    margin: 42px auto 52px;
    overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 24px;
    background: rgba(255, 255, 255, .045);
    box-shadow:
        0 18px 46px rgba(0, 0, 0, .16),
        inset 0 1px 0 rgba(255, 255, 255, .06);
}

.ms-article-content .wp-block-table table,
.ms-article-content > table {
    min-width: 650px;
    margin: 0;
    border: 0;
    border-collapse: separate;
    border-spacing: 0;
    color: rgba(255, 255, 255, .82);
    font-size: .96rem;
    line-height: 1.5;
}

.ms-article-content .wp-block-table td,
.ms-article-content .wp-block-table th,
.ms-article-content > table td,
.ms-article-content > table th {
    padding: 18px 20px;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .09);
    text-align: left;
    vertical-align: middle;
}

.ms-article-content .wp-block-table tr:first-child td,
.ms-article-content .wp-block-table tr:first-child th,
.ms-article-content > table tr:first-child td,
.ms-article-content > table tr:first-child th {
    background: linear-gradient(135deg, var(--ms-accent), #ffd95c);
    color: var(--ms-primary);
    font-size: .82rem;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.ms-article-content .wp-block-table tr:first-child td:first-child,
.ms-article-content .wp-block-table tr:first-child th:first-child,
.ms-article-content > table tr:first-child td:first-child,
.ms-article-content > table tr:first-child th:first-child {
    border-top-left-radius: 23px;
}

.ms-article-content .wp-block-table tr:first-child td:last-child,
.ms-article-content .wp-block-table tr:first-child th:last-child,
.ms-article-content > table tr:first-child td:last-child,
.ms-article-content > table tr:first-child th:last-child {
    border-top-right-radius: 23px;
}

.ms-article-content .wp-block-table tr:last-child td,
.ms-article-content .wp-block-table tr:last-child th,
.ms-article-content > table tr:last-child td,
.ms-article-content > table tr:last-child th {
    border-bottom: 0;
}

.ms-article-content .wp-block-table tr:not(:first-child):hover td,
.ms-article-content > table tr:not(:first-child):hover td {
    background: rgba(255, 193, 7, .06);
}

.ms-article-content .wp-block-table td:first-child,
.ms-article-content .wp-block-table th:first-child,
.ms-article-content > table td:first-child,
.ms-article-content > table th:first-child {
    width: 34%;
    color: var(--ms-white);
    font-weight: 800;
}

.ms-article-content .wp-block-table figcaption {
    padding: 12px 20px 16px;
    color: rgba(255, 255, 255, .58);
    font-size: .82rem;
}

.ms-article-footer {
    margin-top: 76px;
}

.ms-article-footer-cta .ms-blog-eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid rgba(255, 193, 7, .2);
    border-radius: 999px;
    background: rgba(255, 193, 7, .1);
    color: var(--ms-accent);
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.ms-article-footer-cta {
    padding: 42px;
    border: 1px solid rgba(255, 193, 7, .22);
    border-radius: 28px;
    background:
        radial-gradient(circle at 88% 15%, rgba(255, 193, 7, .18), transparent 30%),
        rgba(255, 255, 255, .05);
}

.ms-article-footer-cta h2 {
    max-width: 650px;
    margin: 22px 0 14px;
    color: var(--ms-white);
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 900;
    letter-spacing: -.04em;
    line-height: 1;
}

.ms-article-footer-cta p {
    max-width: 620px;
    margin: 0 0 26px;
    color: var(--ms-text-soft);
}

@media (max-width: 900px) {
    .ms-article-hero-grid {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .ms-article-visual {
        max-width: none;
    }
}

@media (max-width: 640px) {
    .ms-article-hero {
        padding: 54px 0 60px;
    }

    .ms-article-heading h1 {
        font-size: clamp(2.1rem, 9vw, 3rem);
        letter-spacing: -.04em;
    }

    .ms-article-layout {
        padding-top: 52px;
        padding-bottom: 70px;
    }

    .ms-article-content {
        font-size: 1rem;
        line-height: 1.75;
    }

    .ms-article-content > p:first-child {
        font-size: 1.1rem;
    }

    .ms-article-content h2 {
        margin-top: 46px;
        padding: 16px 17px 16px 21px;
        border-radius: 17px;
        font-size: 1.35rem;
    }

    .ms-article-content .wp-block-table,
    .ms-article-content > table {
        margin-top: 32px;
        margin-bottom: 42px;
        border-radius: 18px;
    }

    .ms-article-content .wp-block-table td,
    .ms-article-content .wp-block-table th,
    .ms-article-content > table td,
    .ms-article-content > table th {
        padding: 15px 16px;
        font-size: .9rem;
    }

    .ms-article-footer-cta {
        padding: 28px 22px;
        border-radius: 22px;
    }
}
