/* =========================================================
   SZA — Case Studies (Shortcode Styling)
   Calm editorial cards, hairline borders, soft shadows
   ========================================================= */

.sza-cs {
    --sza-text: rgba(10, 10, 20, .92);
    --sza-muted: rgba(10, 10, 20, .62);
    --sza-border: rgba(20, 20, 40, .10);
    --sza-surface: #ffffff;
    --sza-radius: 16px;
    --sza-shadow: 0 10px 24px rgba(0, 0, 0, .06);
    color: var(--sza-text);
}

/* Section heading (What I Owned / Solution etc.) */
.sza-section-title {
    font-family: "Montserrat", Sans-serif;
    font-size: 30px;
    font-weight: 600;
    letter-spacing: -3px;
    word-spacing: 0px;
    color: #1E293B;
    margin: 0 0 10px 0;
}

/* Cards */
.sza-card {
    background: var(--sza-surface);
    border: 1px solid var(--sza-border);
    border-radius: var(--sza-radius);
    box-shadow: var(--sza-shadow);
    padding: 18px;
}

/* Card title (block heading like Architecture / Performance) */
.sza-card-title {
    font-family: "Montserrat", Sans-serif !important;
    font-size: 24px !important;
    font-weight: 600 !important;
    letter-spacing: -2px;
    color: #1E293B;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* List */
.sza-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.sza-list li {
    position: relative;
    padding-left: 18px;
    margin: 10px 0;
    color: var(--sza-muted);
    line-height: 1.65;
}

.sza-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .62em;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: rgba(10, 10, 20, .24);
}

/* Owned grid */
.sza-owned-grid {
    display: grid;
    gap: 16px;
}

.sza-cols-2 .sza-owned-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sza-cols-3 .sza-owned-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sza-cols-4 .sza-owned-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1024px) {

    .sza-cols-3 .sza-owned-grid,
    .sza-cols-4 .sza-owned-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {

    .sza-cols-2 .sza-owned-grid,
    .sza-cols-3 .sza-owned-grid,
    .sza-cols-4 .sza-owned-grid {
        grid-template-columns: 1fr;
    }

    .sza-card {
        padding: 16px;
    }
}

/* Solution steps */
.sza-solution-stack {
    display: grid;
    gap: 14px;
}

.sza-step {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--sza-border);
    border-radius: var(--sza-radius);
    background: #fff;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .05);
}

.sza-step-num {
    width: 50px;
    height: 50px;
    border-radius: 999px;
    border: 1px solid var(--sza-border);
    display: grid;
    place-items: center;
    color: #9b9b9b;
    font-size: 20px;
    font-weight:600;
    letter-spacing: .12em;
    font-style:italic;
}

/* Step title */
.sza-step-title {
    font-family: "Montserrat", Sans-serif !important;
    font-size: 24px !important;
    font-weight: 600 !important;
    letter-spacing: -2px;
    color: #1E293B;
    margin: 0 0 6px 0;
    line-height: 1.25;
}

.sza-step-body {
    color: var(--sza-muted);
    line-height: 1.75;
}

.sza-step-body p {
    margin: 0 0 10px 0;
}

.sza-step-body p:last-child {
    margin-bottom: 0;
}

/* Bullet list typography (your exact spec) */
.sza-list li {
    font-family: "Montserrat", Sans-serif !important;
    font-size: 16px;
    font-weight: 300;
    line-height: 26px;
    letter-spacing: 0.5px;
    color: #4B4B4B;
}

/* Step body (cs_step_body) — match your text spec */
.sza-step-body,
.sza-step-body p,
.sza-step-body li {
    font-family: "Montserrat", Sans-serif !important;
    font-size: 16px;
    font-weight: 300;
    line-height: 26px;
    letter-spacing: 0.5px;
    color: #4B4B4B;
}

/* Replace dot bullets with subtle icon bullet */
.sza-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .70em;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: rgba(30, 41, 59, .22);
}

/* Paragraph rhythm inside textarea output */
.sza-step-body p {
    margin: 0 0 10px 0;
}

.sza-step-body p:last-child {
    margin-bottom: 0;
}

/* If user adds line breaks that become lists later */
.sza-step-body ul {
    margin: 10px 0 0 0;
    padding-left: 18px;
}

.sza-step-body li {
    margin: 6px 0;
}

/* Subtle icon styling in card titles */
.sza-icon {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(30, 41, 59, .70);
}

.sza-icon svg {
    width: 24px;
    height: 24px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Keep cards calm (slightly reduce shadow if needed) */
.sza-card,
.sza-step {
    box-shadow: 0 10px 24px rgba(0, 0, 0, .05);
}

@media (max-width: 640px) {
    .sza-step {
        grid-template-columns: 40px 1fr;
        padding: 14px;
    }

    .sza-step-num {
        width: 34px;
        height: 34px;
    }
}

/* =========================================================
   Engineering Notes (distinct but calm)
   ========================================================= */

.sza-notes-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 900px) {
    .sza-notes-grid {
        grid-template-columns: 1fr;
    }
}

.sza-note-card {
    padding: 18px;
}

.sza-note-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

/* Type pill */
.sza-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    font-family: "Montserrat", Sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.4px;
    color: rgba(30, 41, 59, .85);
    background: rgba(30, 41, 59, .06);
    border: 1px solid rgba(30, 41, 59, .12);
}

/* Optional subtle variations */
.sza-pill-decision {
    background: rgba(2, 132, 199, .06);
    border-color: rgba(2, 132, 199, .18);
}

.sza-pill-principle {
    background: rgba(16, 185, 129, .06);
    border-color: rgba(16, 185, 129, .18);
}

.sza-pill-tradeoff {
    background: rgba(245, 158, 11, .07);
    border-color: rgba(245, 158, 11, .20);
}

.sza-pill-detail {
    background: rgba(100, 116, 139, .08);
    border-color: rgba(100, 116, 139, .18);
}

.sza-note-title {
    font-family: "Montserrat", Sans-serif !important;
    font-size: 24px !important;
    font-weight: 600 !important;
    letter-spacing: -2px;
    color: #1E293B;
    margin: 0 0 8px 0;
    line-height: 1.25;
}

.sza-note-body,
.sza-note-body p {
    font-family: "Montserrat", Sans-serif !important;
    font-size: 16px;
    font-weight: 300;
    line-height: 26px;
    letter-spacing: 0.5px;
    color: #4B4B4B;
}

.sza-note-impact {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(20, 20, 40, .08);
    font-family: "Montserrat", Sans-serif;
    font-size: 14px;
    font-weight: 300;
    line-height: 22px;
    letter-spacing: 0.3px;
    color: rgba(30, 41, 59, .78);
}

.sza-note-impact-label {
    font-weight: 600;
    color: rgba(30, 41, 59, .86);
    margin-right: 6px;
}

/* =========================================================
   Results (metric-forward, clean)
   ========================================================= */

.sza-results-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1024px) {
    .sza-results-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .sza-results-grid {
        grid-template-columns: 1fr;
    }
}

.sza-result-card {
    padding: 18px;
}

.sza-metric {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 10px;
    font-family: "Montserrat", Sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.4px;
    color: rgba(30, 41, 59, .85);
    background: rgba(30, 41, 59, .06);
    border: 1px solid rgba(30, 41, 59, .12);
    margin-bottom: 10px;
}

.sza-result-title {
    font-family: "Montserrat", Sans-serif !important;
    font-size: 24px !important;
    font-weight: 600 !important;
    letter-spacing: -2px;
    color: #1E293B;
    margin: 0 0 8px 0;
    line-height: 1.25;
}

.sza-result-body,
.sza-result-body p {
    font-family: "Montserrat", Sans-serif !important;
    font-size: 16px;
    font-weight: 300 !important;
    line-height: 26px;
    letter-spacing: 0.5px;
    color: #4B4B4B;
}