/* Childcare Costs State Pages */

/* Highlights card */
.ccs-highlights-card {
    max-width: 700px;
    margin: -32px auto 24px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(61,47,80,0.10);
    padding: 24px;
    position: relative;
    z-index: 1;
}

.ccs-highlight-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.ccs-highlight {
    text-align: center;
}

.ccs-highlight-icon {
    font-size: 24px;
    display: block;
    margin-bottom: 4px;
}

.ccs-highlight-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #695A80;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ccs-highlight-value {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: #3D2F50;
}

.ccs-highlight-sub {
    display: block;
    font-size: 13px;
    color: #695A80;
}

/* Rankings */
.ccs-ranking-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    max-width: 700px;
    margin: 0 auto 24px;
}

.ccs-ranking-card {
    padding: 20px;
    border: 1.5px solid rgba(139,123,184,0.10);
    border-radius: 14px;
    background: #fff;
}

.ccs-ranking-title {
    font-size: 16px;
    font-weight: 700;
    color: #3D2F50;
    margin: 0 0 12px;
}

.ccs-ranking-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: rank;
}

.ccs-ranking-list li {
    counter-increment: rank;
    list-style: none;
}

.ccs-ranking-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(139,123,184,0.06);
    text-decoration: none;
    transition: color 0.15s;
}

.ccs-ranking-list li:last-child a {
    border-bottom: none;
}

.ccs-ranking-name {
    font-size: 15px;
    font-weight: 600;
    color: #3D2F50;
}

.ccs-ranking-name::before {
    content: counter(rank) ". ";
    color: #8B7BB8;
    font-weight: 700;
}

.ccs-ranking-list li a:hover .ccs-ranking-name {
    color: #8B7BB8;
}

.ccs-ranking-cost {
    font-size: 15px;
    font-weight: 700;
    color: #695A80;
}

/* All states grid */
.ccs-all-states {
    margin: 24px 0;
}

.ccs-all-title {
    font-size: 18px;
    font-weight: 700;
    color: #3D2F50;
    margin: 0 0 16px;
    text-align: center;
}

.ccs-state-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.ccs-state-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 16px 12px;
    border: 1.5px solid rgba(139,123,184,0.10);
    border-radius: 12px;
    background: #fff;
    text-decoration: none;
    transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}

.ccs-state-card:hover {
    text-decoration: none;
    border-color: #8B7BB8;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(61,47,80,0.08);
}

.ccs-state-name {
    font-size: 15px;
    font-weight: 700;
    color: #3D2F50;
}

.ccs-state-cost {
    font-size: 16px;
    font-weight: 800;
    color: #8B7BB8;
    margin-top: 4px;
}

.ccs-state-monthly {
    font-size: 14px;
    color: #695A80;
}

.ccs-state-pct {
    font-size: 13px;
    color: #695A80;
    margin-top: 2px;
}

/* CTA section */
.ccs-cta-section {
    text-align: center;
    margin: 32px 0;
    padding: 32px 24px;
    background: linear-gradient(135deg, rgba(139,123,184,0.06), rgba(123,200,184,0.06));
    border-radius: 16px;
}

.ccs-cta-title {
    font-size: 20px;
    font-weight: 800;
    color: #3D2F50;
    margin: 0 0 8px;
}

.ccs-cta-text {
    font-size: 15px;
    color: #695A80;
    margin: 0 0 16px;
}

.ccs-cta-btn {
    display: inline-block;
    padding: 12px 28px;
    background: linear-gradient(135deg, #7BC8B8, #5aa898);
    color: #fff;
    font-family: 'Nunito', sans-serif;
    font-size: 15px;
    font-weight: 700;
    border-radius: 24px;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s;
}

.ccs-cta-btn:hover {
    text-decoration: none;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(123,200,184,0.3);
}

/* ============ Detail page ============ */

.ccs-detail-card {
    max-width: 600px;
    margin: -32px auto 24px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(61,47,80,0.10);
    padding: 28px;
    position: relative;
    z-index: 1;
}

/* Cost grid */
.ccs-cost-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.ccs-cost-item {
    text-align: center;
    padding: 16px 12px;
    border: 1.5px solid rgba(139,123,184,0.15);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(139,123,184,0.04), rgba(139,123,184,0.01));
}

.ccs-cost-item.family {
    background: linear-gradient(135deg, rgba(123,200,184,0.06), rgba(123,200,184,0.02));
    border-color: rgba(123,200,184,0.20);
}

.ccs-cost-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #695A80;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ccs-cost-value {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: #3D2F50;
    margin: 4px 0;
}

.ccs-cost-monthly {
    display: block;
    font-size: 13px;
    color: #695A80;
}

/* Stat bar */
.ccs-stat-row {
    margin-bottom: 20px;
}

.ccs-stat-item {
    padding: 16px;
    border: 1.5px solid rgba(139,123,184,0.10);
    border-radius: 12px;
}

.ccs-stat-item .ccs-stat-label {
    font-size: 13px;
    font-weight: 700;
    color: #695A80;
}

.ccs-stat-item .ccs-stat-value {
    font-size: 28px;
    font-weight: 800;
    color: #3D2F50;
    display: block;
    margin: 4px 0 8px;
}

.ccs-stat-bar {
    position: relative;
    height: 12px;
    background: #eee;
    border-radius: 6px;
    overflow: visible;
}

.ccs-stat-bar-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 0.5s ease;
}

.ccs-stat-bar-fill.low { background: #2ea44f; }
.ccs-stat-bar-fill.medium { background: #f9a825; }
.ccs-stat-bar-fill.high { background: #e53935; }

.ccs-stat-bar-threshold {
    position: absolute;
    top: -4px;
    width: 2px;
    height: 20px;
    background: #3D2F50;
}

.ccs-stat-bar-label {
    position: absolute;
    top: 20px;
    left: -20px;
    font-size: 10px;
    color: #695A80;
    white-space: nowrap;
}

/* Comparison */
.ccs-comparison-section {
    margin-bottom: 16px;
}

.ccs-compare-title {
    font-size: 15px;
    font-weight: 700;
    color: #3D2F50;
    margin: 0 0 12px;
}

.ccs-compare-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ccs-compare-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid rgba(139,123,184,0.08);
    border-radius: 8px;
}

.ccs-compare-label {
    font-size: 15px;
    color: #695A80;
}

.ccs-compare-value {
    font-size: 15px;
    font-weight: 700;
}

.ccs-compare-value.above { color: #e53935; }
.ccs-compare-value.below { color: #2ea44f; }

/* Pre-K badge */
.ccs-prek-badge {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: linear-gradient(135deg, rgba(46,164,79,0.06), rgba(76,175,80,0.04));
    border: 1.5px solid rgba(46,164,79,0.20);
    border-radius: 12px;
}

.ccs-prek-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.ccs-prek-badge strong {
    font-size: 15px;
    color: #3D2F50;
}

.ccs-prek-badge p {
    font-size: 15px;
    color: #695A80;
    margin: 4px 0 0;
    line-height: 1.4;
}

/* Calculator CTA */
.ccs-calc-cta {
    text-align: center;
    margin: 0 auto 24px;
    max-width: 600px;
}

.ccs-calc-cta-btn {
    display: inline-block;
    padding: 12px 28px;
    background: linear-gradient(135deg, #7BC8B8, #5aa898);
    color: #fff;
    font-family: 'Nunito', sans-serif;
    font-size: 15px;
    font-weight: 700;
    border-radius: 24px;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s;
}

.ccs-calc-cta-btn:hover {
    text-decoration: none;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(123,200,184,0.3);
}

/* Info sections (shared with hub) */
.ccs-info-section {
    margin: 24px 0;
    padding: 24px;
    border: 1.5px solid rgba(139,123,184,0.10);
    border-radius: 14px;
    background: #fff;
}

.ccs-info-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 17px;
    font-weight: 700;
    color: #3D2F50;
    margin: 0 0 12px;
}

.ccs-info-icon {
    font-size: 20px;
}

.ccs-info-text {
    font-size: 16px;
    color: #695A80;
    line-height: 1.6;
    margin: 0;
}

/* FAQ */
.ccs-faq {
    padding: 12px 0;
    border-bottom: 1px solid rgba(139,123,184,0.08);
}

.ccs-faq:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.ccs-faq-q {
    font-size: 15px;
    font-weight: 700;
    color: #3D2F50;
    text-transform: none;
    letter-spacing: 0;
    margin: 0 0 4px;
}

.ccs-faq-a {
    font-size: 15px;
    color: #695A80;
    line-height: 1.6;
    margin: 0;
}

/* Related chips */
.ccs-related-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ccs-related-chip {
    display: inline-block;
    padding: 8px 16px;
    border: 1.5px solid rgba(139,123,184,0.15);
    border-radius: 20px;
    font-size: 15px;
    font-weight: 600;
    color: #3D2F50;
    text-decoration: none;
    transition: border-color 0.15s, background 0.15s;
}

.ccs-related-chip:hover {
    text-decoration: none;
    border-color: #8B7BB8;
    background: #f5f2fa;
}

/* CTA grid */
.ccs-cta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.ccs-cta-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 16px 12px;
    border: 1.5px solid rgba(139,123,184,0.10);
    border-radius: 12px;
    text-decoration: none;
    transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}

.ccs-cta-card:hover {
    text-decoration: none;
    border-color: #8B7BB8;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(61,47,80,0.08);
}

.ccs-cta-icon {
    font-size: 24px;
    margin-bottom: 6px;
}

.ccs-cta-text {
    font-size: 15px;
    font-weight: 700;
    color: #3D2F50;
}

/* Mobile */
@media (max-width: 600px) {
    .ccs-highlights-card {
        margin: -12px 12px 20px;
        padding: 16px;
    }

    .ccs-highlight-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .ccs-ranking-section {
        grid-template-columns: 1fr;
        margin: 0 12px 20px;
    }

    .ccs-state-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ccs-detail-card {
        margin: -12px 12px 20px;
        padding: 20px;
    }

    .ccs-cost-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .ccs-cost-value {
        font-size: 18px;
    }

    .ccs-info-section {
        margin: 20px 12px;
    }

    .ccs-cta-grid {
        grid-template-columns: 1fr;
    }

    .ccs-cta-section {
        margin: 24px 12px;
    }
}
