/* ============================================================================
   before-after-shift.css -- widget #03 (paired baseline vs after cards)

   reuses library theme tokens. the "after" card is accent-tinted via
   --cw-accent / --cw-accent-soft so a course recolors it by overriding the
   accent on the mount. no hard-coded hex.
   ============================================================================ */

.cw-shift-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: stretch;
}

.cw-shift-arrow {
    display: none;
    align-self: center;
    justify-self: center;
    color: var(--cw-accent);
    font-size: 1.5rem;
    line-height: 1;
    transform: rotate(90deg);
}

@media (min-width: 640px) {
    .cw-shift-grid {
        grid-template-columns: 1fr auto 1fr;
        gap: 14px;
    }
    .cw-shift-arrow {
        display: block;
        transform: none;
    }
}

.cw-shift-card {
    padding: 16px 16px 14px;
    border-radius: var(--cw-radius, 14px);
    background: var(--cw-surface);
    border: 1px solid var(--cw-border);
}

.cw-shift-card--before {
    border-left: 3px solid var(--cw-muted);
}

.cw-shift-card--after {
    border-left: 3px solid var(--cw-accent);
    background:
        linear-gradient(135deg, var(--cw-accent-soft), transparent),
        var(--cw-surface);
}

.cw-shift-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0.08em;
    color: var(--cw-muted);
    margin-bottom: 6px;
}

.cw-shift-card--after .cw-shift-label {
    color: var(--cw-accent);
}

.cw-shift-headline {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--cw-text);
    margin: 0 0 8px;
    line-height: 1.3;
}

.cw-shift-body {
    font-size: 0.85rem;
    line-height: 1.55;
    color: var(--cw-muted);
    margin: 0;
}
