/* =============================================================================
   OHM Case Study — Frontend Styles
   Class prefix: ohm-cs-
   ============================================================================= */

/* ── Item wrapper ──────────────────────────────────────────────────────────── */
.ohm-cs-item {
    display: flex;
    flex-direction: column;
}

/* ── Eyebrow label ─────────────────────────────────────────────────────────── */
.ohm-cs-eyebrow {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #888780;
    margin-bottom: 12px;
}

/* ── Columns wrapper ───────────────────────────────────────────────────────── */
.ohm-cs-columns {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* ── Card wrapper ──────────────────────────────────────────────────────────── */
.ohm-cs-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 12px;
    border: 0.5px solid #e0ddd6;
    overflow: hidden;
    font-family: inherit;
    line-height: 1.5;
}

/* ── Header ────────────────────────────────────────────────────────────────── */
.ohm-cs-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 20px;
}

.ohm-cs-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 2px;
}

.ohm-cs-icon img {
    max-width: 60%;
    max-height: 60%;
    object-fit: contain;
}

.ohm-cs-icon svg {
    color: #ffffff;
}

.ohm-cs-header-text {
    flex: 1;
    min-width: 0;
}

.ohm-cs-header-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    margin-bottom: 4px;
    line-height: 1.3;
}

.ohm-cs-header-title {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.25;
    margin-bottom: 8px;
}

.ohm-cs-header-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.ohm-cs-header-location {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
}

.ohm-cs-header-location svg {
    color: rgba(255, 255, 255, 0.85);
    flex-shrink: 0;
}

.ohm-cs-header-sep {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.ohm-cs-header-audience {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
}

/* ── Body ──────────────────────────────────────────────────────────────────── */
.ohm-cs-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 20px 20px 56px; /* JS overrides bottom based on tallest pills in grid */
}

/* ── Sections ──────────────────────────────────────────────────────────────── */
.ohm-cs-section {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 22px;
}

.ohm-cs-section:last-of-type {
    margin-bottom: 20px;
}

/* Section icon container */
.ohm-cs-section-icon {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
    flex-shrink: 0;
}

.ohm-cs-section-icon--problem {
    background: #FEE2E2;
    color: #DC2626;
}

.ohm-cs-section-icon--did {
    background: #DBEAFE;
    color: #2563EB;
}

.ohm-cs-section-icon--result {
    background: #D1FAE5;
    color: #059669;
}

.ohm-cs-section-icon svg {
    display: block;
}

/* Section label */
.ohm-cs-section-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    margin-bottom: 6px;
    line-height: 1;
}

.ohm-cs-section-label--problem { color: #DC2626; }
.ohm-cs-section-label--did     { color: #2563EB; }
.ohm-cs-section-label--result  { color: #059669; }

/* Section text */
.ohm-cs-section-text {
    font-size: 15px;
    line-height: 1.65;
    color: #374151;
    margin: 0;
}

/* ── Highlights pills ──────────────────────────────────────────────────────── */
.ohm-cs-pills {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: #f8fafc;
    border: 1px solid var(--bdr, #e5e7eb);
    border-radius: 8px;
    padding: .72rem .82rem;
    display: flex;
    gap: .38rem;
    flex-wrap: wrap;
}

@media (max-width: 767px) {
    .ohm-cs-pills {
        position: static;
        margin-top: .7rem;
    }

    .ohm-cs-body {
        padding-bottom: 20px;
    }
}

.ohm-cs-pill {
    display: flex;
    align-items: center;
    gap: .28rem;
    font-size: .72rem;
    font-weight: 600;
    color: #1f2937;
    background: #fff;
    border: 1px solid var(--bdr, #e5e7eb);
    border-radius: 999px;
    padding: .22em .65em;
}

.ohm-cs-pill-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #16a34a;
    flex-shrink: 0;
}

/* ── Grid (multiple cards) ─────────────────────────────────────────────────── */
.ohm-cs-grid {
    display: grid;
    grid-template-columns: repeat(var(--ohm-cs-cols-sm, 1), 1fr);
    gap: 32px;
}

@media (min-width: 576px) {
    .ohm-cs-grid {
        grid-template-columns: repeat(var(--ohm-cs-cols-sm, 1), 1fr);
    }
}

@media (min-width: 768px) {
    .ohm-cs-grid {
        grid-template-columns: repeat(var(--ohm-cs-cols-md, 2), 1fr);
    }
}

@media (min-width: 992px) {
    .ohm-cs-grid {
        grid-template-columns: repeat(var(--ohm-cs-cols-lg, 2), 1fr);
    }
}

@media (min-width: 1200px) {
    .ohm-cs-grid {
        grid-template-columns: repeat(var(--ohm-cs-cols-xl, 2), 1fr);
    }
}

@media (min-width: 1400px) {
    .ohm-cs-grid {
        grid-template-columns: repeat(var(--ohm-cs-cols-xxl, 2), 1fr);
    }
}

/* ── Empty state ───────────────────────────────────────────────────────────── */
.ohm-cs-empty {
    font-size: 13px;
    color: #888780;
    padding: 20px;
    border: 0.5px dashed #e0ddd6;
    border-radius: 8px;
    text-align: center;
    margin: 0;
}
