/* snapshot/comparison-slider — front-end (loaded in editor too).
   Visually matches the "Features-tabs-LevelsOfCare" pattern from the raw
   HTML+<script> block it replaces, renamed to the snp-cs__ convention, with
   two corrections against the Figma reference (node 2975-3876):
   1. Active tab is a gold-outlined pill on transparent/white, not the old
      HTML's filled mint background — Figma shows the outline treatment.
   2. Icon circle background uses current brand mint (#d8e8d9), not the
      original's pre-refresh #d2ebee/#def0f4 values.
   font-weight:100 on the heading is the same Sentient-at-100 bug fixed
   elsewhere this session — corrected to 400 here too. */

.snp-cs {
    padding: 64px 96px 128px;
}

/* Background Color options (same pattern as snp-pc) */
.snp-cs--bg-white {
    background-color: #ffffff;
}
.snp-cs--bg-cream {
    background-color: #f9f4f2;
}
.snp-cs--bg-primary {
    background-color: #0a1849;
}
.snp-cs--bg-secondary {
    background-color: #dbad57;
}
.snp-cs--bg-accent {
    background-color: #d8e8d9;
}
.snp-cs--bg-primary .snp-cs__heading,
.snp-cs--bg-primary .snp-cs__subheading,
.snp-cs--bg-primary .snp-cs__body {
    color: #ffffff;
}

.snp-cs__wrap {
    display: flex;
    flex-direction: column;
    gap: 32px;
    align-items: center;
}

/* Header */
.snp-cs__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 822px;
    margin: 0 auto;
    text-align: center;
    gap: 16px;
}
.snp-cs__heading {
    margin: 0;
    font-family: 'Sentient', Georgia, serif;
    font-weight: 400;
    font-size: 32px;
    line-height: 1.2;
    color: #2a2f30;
}
.snp-cs__heading:empty {
    display: none;
}
.snp-cs__subheading {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    font-family: 'Menca', Arial, sans-serif;
    color: #0a1849;
}
.snp-cs__subheading:empty {
    display: none;
}
.snp-cs__body {
    margin: 0;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.5;
    font-family: 'Menca', Arial, sans-serif;
    color: #2a2f30;
}
.snp-cs__body:empty {
    display: none;
}

.snp-cs__content {
    display: flex;
    flex-direction: column;
    gap: 32px;
    align-items: center;
    width: 100%;
    max-width: 1248px;
    margin: 0 auto;
    min-height: 364px;
}

/* Tab filter */
.snp-cs__filter-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 999px;
}
.snp-cs__tabs {
    display: flex;
    align-items: center;
    padding: 16px;
    background: rgba(255, 255, 255, .5);
    border: 1px solid #ffffff;
    border-radius: 999px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    cursor: grab;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.snp-cs__tabs::-webkit-scrollbar {
    display: none;
}
.snp-cs__scroll-indicator {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 80px;
    background: linear-gradient(to left, rgba(255, 254, 254, 0.999), transparent);
    border-radius: 0 999px 999px 0;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.3s ease;
}
.snp-cs__scroll-indicator--hidden {
    opacity: 0;
}

.snp-cs__tab {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
    border: 1px solid transparent;
    background: transparent;
    border-radius: 999px;
    font-family: 'Menca', Arial, sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #0a1849;
    opacity: 0.5;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
    text-transform: capitalize !important;
}
.snp-cs__tab:hover {
    background: rgba(216, 232, 217, 0.5);
    color: #2a2f30 !important;
}
.snp-cs__tab--active,
.snp-cs__tab--active:hover {
    background: #ffffff;
    border-color: #dbad57;
    color: #0a1849;
    opacity: 1;
}
.snp-cs__tab:focus {
    outline: none;
}

/* Cards */
.snp-cs__grid {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
}
.snp-cs__card {
    flex: 1 0 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 24px 16px;
    background: rgba(255, 255, 255, 0.33);
    border: 2px solid #fff;
    border-radius: 16px;
    min-width: 0;
}

.snp-cs__card-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    width: 100%;
}
.snp-cs__card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.snp-cs__card-icon--bg-white {
    background: #ffffff;
    border-radius: 50%;
}
.snp-cs__card-icon--bg-primary {
    background: #0a1849;
    border-radius: 50%;
}
.snp-cs__card-icon--bg-secondary {
    background: #dbad57;
    border-radius: 50%;
}
.snp-cs__card-icon--bg-accent {
    background: #d8e8d9;
    border-radius: 50%;
}
.snp-cs__card-icon img {
    max-width: 48px;
    max-height: 48px;
}

.snp-cs__card-title {
    font-family: 'Menca', Arial, sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    color: #2a2f30;
    text-align: center;
}
.snp-cs__card-value {
    font-family: 'Menca', Arial, sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.3;
    color: #2a2f30;
    text-align: center;
    width: 100%;
}
.snp-cs__card-link {
    font-family: 'Menca', Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: #0a1849;
    text-align: center;
    text-decoration: underline;
    cursor: pointer;
}
.snp-cs__card-link:hover {
    color: #dbad57;
}

/* Responsive */
@media (max-width: 1280px) {
    .snp-cs {
        padding: 64px 32px;
    }
    .snp-cs__grid {
        flex-wrap: wrap;
    }
    .snp-cs__card {
        flex: 1 1 calc(33.333% - 12px);
        min-width: 200px;
    }
}

@media (max-width: 900px) {
    .snp-cs__heading {
        font-size: 28px;
    }
    .snp-cs__body {
        font-size: 18px;
    }
    .snp-cs__card {
        flex: 1 1 calc(50% - 8px);
    }
    .snp-cs__filter-container {
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .snp-cs {
        padding: 48px 16px;
    }
    .snp-cs__heading {
        font-size: 24px;
    }
    .snp-cs__body {
        font-size: 16px;
    }
    .snp-cs__filter-container {
        position: sticky;
        top: 10px;
        z-index: 10;
    }
    .snp-cs__tabs {
        background: #fff;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    }
    .snp-cs__grid {
        flex-direction: column;
    }
    .snp-cs__card {
        flex: none;
        width: 100%;
    }
}
