/* Editorial story layout — shared by blog posts and customer cases */

body {
    --story-bg: #fcfcfc;
    --story-surface: #f4f4f1;
    --story-text: #181818;
    --story-muted: #71716d;
    --story-line: rgba(38, 38, 38, 0.14);
    background: var(--story-bg);
}

body.case-story {
    --story-bg: #fff;
}

.case-story .blog-post-container {
    padding-top: 0;
}

.case-story .blog-post-header {
    box-sizing: border-box;
    padding: clamp(72px, 8vw, 118px) 24px clamp(52px, 6vw, 80px);
    margin-bottom: 0;
    background: #fff;
}

.blog-post-container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: clamp(72px, 8vw, 118px) 24px clamp(96px, 11vw, 160px);
    box-sizing: border-box;
    background: var(--story-bg);
    color: var(--story-text);
}

/* Story header */
.blog-post-header {
    width: min(920px, 100%);
    margin: 0 auto clamp(52px, 6vw, 80px);
    text-align: center;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    margin: 0 0 26px;
}

.breadcrumb a {
    color: var(--story-muted);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
    color: var(--story-text);
}

.blog-post-header h1 {
    max-width: 18ch;
    margin: 0 auto 30px;
    color: var(--story-text);
    font-size: clamp(42px, 4.6vw, 64px);
    font-weight: 500;
    letter-spacing: -0.045em;
    line-height: 0.99;
    text-wrap: balance;
}

.blog-post-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 0;
    margin: 0 0 20px;
    color: var(--story-muted);
    font-size: 13px;
}

.blog-post-meta span {
    display: inline-flex;
    align-items: center;
    font-weight: 400;
}

.blog-post-meta span + span::before {
    content: "";
    width: 3px;
    height: 3px;
    margin: 0 12px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.65;
}

.blog-post-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    padding: 7px 11px;
    border: 1px solid var(--story-line);
    border-radius: 999px;
    background: rgba(38, 38, 38, 0.025);
    color: #61615d;
    font-size: 12px;
    font-weight: 400;
    line-height: 1;
}

/* Reading column */
.blog-post-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 0 0 clamp(72px, 8vw, 112px);
    line-height: 1.65;
}

.blog-post-content > * {
    width: min(100%, 650px);
    margin-right: auto;
    margin-left: auto;
    box-sizing: border-box;
}

.blog-post-content p,
.blog-post-content li {
    color: #4f4f4b;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.68;
}

.blog-post-content p {
    margin-top: 0;
    margin-bottom: 24px;
}

.blog-post-content > p:first-of-type {
    margin-top: clamp(50px, 6vw, 78px);
    margin-bottom: 34px;
    color: var(--story-text);
    font-size: clamp(22px, 2vw, 27px);
    line-height: 1.38;
    letter-spacing: -0.018em;
}

.blog-post-content h2 {
    margin-top: clamp(54px, 6vw, 78px);
    margin-bottom: 20px;
    color: var(--story-text);
    font-size: clamp(27px, 2.5vw, 34px);
    font-weight: 500;
    letter-spacing: -0.025em;
    line-height: 1.15;
    text-align: left;
    text-wrap: balance;
}

.blog-post-content h3 {
    margin-top: 42px;
    margin-bottom: 16px;
    color: var(--story-text);
    font-size: clamp(21px, 2vw, 26px);
    font-weight: 500;
    letter-spacing: -0.018em;
    line-height: 1.25;
    text-align: left;
}

.blog-post-content h4 {
    margin-top: 34px;
    margin-bottom: 12px;
    color: var(--story-text);
    font-size: 19px;
    font-weight: 500;
    line-height: 1.35;
}

.blog-post-content strong {
    color: var(--story-text);
    font-weight: 500;
}

.blog-post-content em {
    color: var(--story-text);
}

.blog-post-content a {
    color: #5555ee !important;
    text-decoration-color: rgba(85, 85, 238, 0.42) !important;
    text-underline-offset: 3px;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.blog-post-content a:hover,
.blog-post-content a:focus-visible {
    color: #3030c9 !important;
    text-decoration-color: currentColor !important;
}

.blog-post-content ul {
    margin-top: 4px;
    margin-bottom: 30px;
    padding-left: 22px;
}

.blog-post-content li {
    margin-bottom: 12px;
    padding-left: 5px;
}

.blog-post-content li::marker {
    color: #6464ff;
}

/* Public company and deployment facts for customer cases */
.case-company-facts {
    width: min(100%, 1040px);
    margin-top: clamp(40px, 5vw, 58px);
    margin-bottom: 8px;
    padding: 28px 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    border-top: 1px solid var(--story-line);
    border-bottom: 1px solid var(--story-line);
}

.case-company-facts > div {
    min-width: 0;
}

.case-company-facts dt {
    margin: 0 0 9px;
    color: var(--story-muted);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.075em;
    line-height: 1.35;
    text-transform: uppercase;
}

.case-company-facts dd {
    margin: 0;
    color: var(--story-text);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.45;
}

.case-company-facts a {
    color: var(--story-text) !important;
    text-decoration: none !important;
}

.case-company-facts a:hover,
.case-company-facts a:focus-visible {
    color: #5555ee !important;
}

.blog-post-content ul.blog-year-list li {
    margin-bottom: 32px;
}

.blog-post-content ul.blog-year-list li p {
    margin-top: 8px;
    margin-bottom: 0;
}

/* Wide visual rhythm */
.blog-post-content > .blog-post-image,
.blog-post-content > .blog-post-video {
    width: min(100%, 1040px);
    margin-top: clamp(42px, 6vw, 72px);
    margin-bottom: clamp(42px, 6vw, 72px);
}

.blog-post-content > .blog-post-image:first-of-type,
.blog-post-content > .blog-post-video:first-of-type {
    order: -1;
    margin-top: 0;
    margin-bottom: 0;
}

.blog-post-image,
.blog-post-video {
    text-align: center;
}

.blog-post-inline-image,
.blog-post-video-player {
    display: block;
    width: 100%;
    max-width: none;
    height: auto;
    max-height: 680px;
    margin: 0 auto;
    border: 1px solid var(--story-line);
    border-radius: 6px;
    box-shadow: 0 20px 56px rgba(38, 38, 38, 0.10);
    object-fit: cover;
}

.blog-post-video-player {
    background: #181818;
}

/* Editorial quotes */
.story-quote {
    width: min(100%, 650px);
    margin-top: 28px;
    margin-bottom: 34px;
}

.story-quote + .story-quote {
    margin-top: 8px;
}

.story-quote blockquote {
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0;
    background: transparent;
    color: var(--story-text) !important;
    font-size: 20px;
    font-weight: 500;
    font-style: normal !important;
    letter-spacing: -0.012em;
    line-height: 1.52;
}

.story-quote blockquote p {
    color: inherit;
    font-size: inherit;
    line-height: inherit;
}

.story-quote figcaption {
    margin-top: 12px;
    color: var(--story-muted);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.45;
}

/* End-of-story navigation */
.blog-post-footer {
    width: min(100%, 1040px);
    margin: 0 auto;
    padding-top: 32px;
    border-top: 1px solid var(--story-line);
}

.blog-post-share {
    margin-bottom: 32px;
    text-align: center;
}

.blog-post-share h3 {
    margin: 0 0 16px;
    color: var(--story-text);
    font-size: 20px;
    font-weight: 500;
}

.share-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.share-button {
    padding: 9px 15px;
    border: 1px solid var(--story-line);
    border-radius: 3px;
    color: var(--story-text);
    font-size: 13px;
    text-decoration: none;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.share-button:hover {
    border-color: rgba(38, 38, 38, 0.28);
    background: rgba(38, 38, 38, 0.04);
}

.blog-post-navigation {
    text-align: left;
}

.back-to-blog {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--story-text);
    font-size: 15px;
    font-weight: 400;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.back-to-blog:hover,
.back-to-blog:focus-visible {
    color: #8b8bff;
    transform: translateX(-3px);
}

@media screen and (max-width: 768px) {
    .blog-post-container {
        padding: 92px 18px 88px;
    }

    .blog-post-header {
        margin-bottom: 42px;
    }

    .breadcrumb {
        margin-bottom: 20px;
    }

    .blog-post-header h1 {
        max-width: 20ch;
        margin: 0 auto 24px !important;
        font-size: clamp(34px, 10vw, 50px) !important;
        line-height: 1.02;
    }

    .blog-post-meta {
        gap: 6px 0;
        margin-bottom: 18px;
    }

    .blog-post-meta span + span::before {
        display: none;
    }

    .blog-post-meta {
        justify-content: flex-start;
        column-gap: 12px;
    }

    .blog-post-content p,
    .blog-post-content li {
        font-size: 16px !important;
        line-height: 1.65;
    }

    .blog-post-content p {
        margin-top: 0 !important;
        margin-bottom: 22px !important;
    }

    .blog-post-content > p:first-of-type {
        margin-top: 38px !important;
        margin-bottom: 28px !important;
        font-size: 21px !important;
        line-height: 1.42;
    }

    .blog-post-content h2 {
        margin: 48px 0 18px !important;
        font-size: clamp(25px, 7vw, 32px) !important;
        line-height: 1.18;
    }

    .blog-post-content h3 {
        margin: 36px 0 14px !important;
        font-size: 22px !important;
    }

    .blog-post-content h4 {
        margin: 28px 0 10px !important;
        font-size: 18px;
    }

    .blog-post-content > .blog-post-image,
    .blog-post-content > .blog-post-video {
        margin-top: 38px;
        margin-bottom: 38px;
    }

    .blog-post-inline-image,
    .blog-post-video-player {
        max-height: 480px;
        border-radius: 4px;
    }

    .story-quote {
        margin-top: 24px;
        margin-bottom: 30px;
    }

    .story-quote + .story-quote {
        margin-top: 6px;
    }

    .story-quote blockquote {
        font-size: 19px;
        line-height: 1.5;
    }

    .story-quote figcaption {
        margin-top: 10px;
        font-size: 14px;
    }

    .case-company-facts {
        grid-template-columns: 1fr;
        gap: 24px 20px;
        margin-top: 36px;
        padding: 24px 0;
    }

    .blog-post-footer {
        padding-top: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .breadcrumb a,
    .blog-post-content a,
    .share-button,
    .back-to-blog {
        transition: none;
    }
}
