/* Case study article — Nafias */

.csa-page {
    --csa-ink: #1c1917;
    --csa-muted: #5c564e;
    --csa-line: #e7e2da;
    --csa-paper: #f6f4f0;
    --csa-accent: #0068ce;
    background: #fff;
    color: var(--csa-ink);
    padding: 2.5rem 0 5rem;
}

.csa-page .row {
    margin-left: 0;
    margin-right: 0;
}

.csa-page .row > [class*="col-"] {
    padding-left: 0;
    padding-right: 0;
}

@media (min-width: 768px) {
    .csa-page .row > .col-md-4 {
        padding-left: 3.5rem;
    }
}

.csa-back {
    display: inline-flex;
    margin-bottom: 1.5rem;
    color: var(--csa-muted);
    font-weight: 600;
    text-decoration: none;
}

.csa-back:hover {
    color: var(--csa-ink);
    text-decoration: none;
}

.csa-kicker {
    margin: 0 0 0.8rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--csa-accent);
}

.csa-kicker a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.csa-title {
    margin: 0 0 1.25rem;
    font-size: clamp(2rem, 4.5vw, 3.4rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.csa-share {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    list-style: none;
    margin: 0 0 1.75rem;
    padding: 0;
}

.csa-share a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: 1px solid var(--csa-line);
    color: var(--csa-ink) !important;
    text-decoration: none !important;
}

.csa-share a:hover {
    border-color: var(--csa-accent);
    color: var(--csa-accent);
}

.csa-hero {
    margin: 0 0 2.5rem;
    border-radius: 24px;
    overflow: hidden;
    background: var(--csa-paper);
}

.csa-hero img {
    display: block;
    width: 100%;
    height: auto;
}

.csa-hero img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.csa-lede {
    margin: 0 0 1.25rem;
    font-size: 1.25rem;
    line-height: 1.7;
    color: #3f3a34;
}

.csa-page p {
    font-size: 1rem;
    line-height: 1.8;
    margin: 0 0 1rem;
    color: #444444;
}

.csa-page h2 {
    margin: 2.4rem 0 0.9rem;
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.csa-table-wrap {
    margin-top: 1.25rem;
    overflow-x: hidden;
}

.csa-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    min-width: 0;
}

.csa-table th,
.csa-table td {
    padding: 0.9rem 0.85rem;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--csa-line);
    font-size: 0.95rem;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.csa-table th {
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--csa-muted);
}

.csa-table th:first-child,
.csa-table td:first-child {
    width: 24%;
    font-weight: 700;
}

@media (max-width: 700px) {
    .csa-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
    }

    .csa-table,
    .csa-table tbody,
    .csa-table tr,
    .csa-table td {
        display: block;
        width: 100%;
    }

    .csa-table tr {
        padding: 0.85rem 0 0.35rem;
        border-bottom: 1px solid var(--csa-line);
    }

    .csa-table td {
        border: 0;
        padding: 0.35rem 0;
        width: 100%;
    }

    .csa-table td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 0.15rem;
        font-size: 0.72rem;
        font-weight: 700;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: var(--csa-muted);
    }
}

.csa-related {
    margin-top: 0.25rem;
}

.csa-related-label {
    margin: 0 0 1rem;
    font-weight: 700;
    text-transform: uppercase;
}

.csa-related-card {
    display: grid;
    grid-template-columns: 7.5rem 1fr;
    gap: 0.9rem;
    align-items: center;
    margin-bottom: 0.85rem;
    padding: 0.7rem;
    border: 1px solid var(--csa-line);
    border-radius: 16px;
    background: #fff;
    color: inherit;
    text-decoration: none;
}

.csa-related-card:hover {
    border-color: #c9c2b8;
    color: inherit;
    text-decoration: none;
}

.csa-related-card img {
    display: block;
    width: 100%;
    height: 5.4rem;
    object-fit: cover;
    border-radius: 10px;
    background: var(--csa-paper);
}

.csa-related-body {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
}

.csa-related-chip {
    align-self: flex-start;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    background: #e1f2fa;
    color: #0068ce;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.csa-related-title {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.35;
}

@media (min-width: 768px) {
    .csa-related {
        position: sticky;
        top: 6.5rem;
    }
}

/* Body elements used by the other case studies (same look as the Nafias article) */
.csa-page h3 {
    margin: 1.8rem 0 0.6rem;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

.csa-page p a,
.csa-page li a {
    color: var(--csa-accent);
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.csa-list {
    margin: 0 0 1.25rem;
    padding-left: 1.25rem;
}

.csa-list li {
    margin: 0 0 0.55rem;
    font-size: 1rem;
    line-height: 1.75;
    color: #444444;
}

.csa-list li strong {
    color: var(--csa-ink);
}

.csa-quote {
    margin: 1.5rem 0;
    padding: 0.2rem 0 0.2rem 1.25rem;
    border-left: 3px solid var(--csa-accent);
}

.csa-quote p {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
    font-style: italic;
    color: var(--csa-ink);
}

.csa-figure {
    margin: 1.75rem 0;
    border-radius: 18px;
    overflow: hidden;
    background: var(--csa-paper);
}

.csa-figure img {
    display: block;
    width: 100%;
    height: auto;
}

.csa-figure figcaption {
    padding: 0.7rem 1rem;
    font-size: 0.85rem;
    color: var(--csa-muted);
}

.csa-callout {
    margin: 1.5rem 0;
    padding: 1.1rem 1.3rem;
    border: 1px solid var(--csa-line);
    border-radius: 16px;
    background: var(--csa-paper);
}

.csa-callout .csa-list {
    margin-bottom: 0;
}

.csa-callout p:last-child {
    margin-bottom: 0;
}
