/* Challenge Grid & Lower Panel Premium GovCon design */
.cs-wrapper-e1d58c92 {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

/* Equal Height Behavior */
.cs-equal-height-yes .cs-grid-e1d58c92 {
    align-items: stretch;
}
.cs-equal-height-yes .cs-card-e1d58c92 {
    height: 100%;
}

/* Grid Layout */
.cs-grid-e1d58c92 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

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

@media (max-width: 640px) {
    .cs-grid-e1d58c92 {
        grid-template-columns: 1fr !important;
    }
}

/* Card Styling */
.cs-card-e1d58c92 {
    background-color: #ffffff;
    border: 1px solid #E6E9ED;
    border-radius: 6px;
    padding: 28px 20px;
    position: relative;
    cursor: pointer;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 270px;
    overflow: hidden;
}

/* Top Area */
.cs-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    width: 100%;
    padding-right: 36px; /* Ensure content never overlaps selection circle */
}

/* Flex spacing */
.cs-card-flex-spacer {
    flex-grow: 1;
}

/* Number badge brackets design */
.cs-card-number-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: 4px;
    color: #ffffff;
    background-color: #1b365d;
}

.cs-wrapper-e1d58c92[style*="--badge-use-accent: yes"] .cs-card-number-badge {
    background-color: var(--cgs-card-accent) !important;
}

.cs-card-number-bracket {
    opacity: 0.8;
}

/* Selected badge */
.cs-selected-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    letter-spacing: 0.05em;
    opacity: 0;
    transition: opacity 0.25s ease;
    background-color: #1b365d;
    color: #ffffff;
}

.cs-wrapper-e1d58c92[style*="--sel-badge-show: no"] .cs-selected-badge {
    display: none !important;
}

.cs-wrapper-e1d58c92[style*="--sel-badge-use-accent: yes"] .cs-selected-badge {
    background-color: var(--cgs-card-accent) !important;
}

/* Text area */
.cs-card-text {
    font-size: 1.1rem;
    line-height: 1.35;
    color: #09243A;
    margin: 16px 0 24px 0;
}

/* Bottom elements */
.cs-card-bottom {
    width: 100%;
    margin-top: auto;
}

.cs-card-divider {
    width: 100%;
    border-top: 1px solid #DCE2E7;
    margin-top: 16px;
    margin-bottom: 12px;
}

.cs-wrapper-e1d58c92[style*="--divider-use-accent: yes"] .cs-card-divider {
    border-top-color: var(--cgs-card-accent) !important;
}

.cs-solution-eyebrow {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #647386;
    margin-bottom: 4px;
}

.cs-wrapper-e1d58c92[style*="--eyebrow-use-accent: yes"] .cs-solution-eyebrow {
    color: var(--cgs-card-accent) !important;
}

.cs-solution-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #09243A;
    margin: 0;
    line-height: 1.3;
}

.cs-wrapper-e1d58c92[style*="--title-use-accent: yes"] .cs-solution-title {
    color: var(--cgs-card-accent) !important;
}


/* HOVER STATE */
.cs-card-e1d58c92:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.cs-wrapper-e1d58c92[style*="--hover-use-accent: yes"] .cs-card-e1d58c92:not(.is-active):hover {
    border-color: var(--cgs-card-accent) !important;
}


/* SELECTED STATE */
.cs-card-e1d58c92.is-active {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.cs-card-e1d58c92.is-active .cs-selected-badge {
    opacity: 1;
}

/* Selected state borders mapping */
.cs-wrapper-e1d58c92[style*="--sel-border-use-accent: yes"] .cs-card-e1d58c92.is-active {
    border-color: var(--cgs-card-accent) !important;
    border-width: 2px;
}

/* Background modes mapping */
.cs-wrapper-e1d58c92[style*="--sel-bg-mode: card_tint"] .cs-card-e1d58c92.is-active {
    background-color: var(--cgs-card-tint) !important;
}
.cs-wrapper-e1d58c92[style*="--sel-bg-mode: white"] .cs-card-e1d58c92.is-active {
    background-color: #ffffff !important;
}


/* LOWER PANEL DESIGN */
.cs-panel-e1d58c92 {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transition: all 0.3s ease;
}

.cs-wrapper-e1d58c92[style*="--pan-bg-use-selected-tint: yes"] .cs-panel-e1d58c92 {
    background-color: var(--cgs-active-tint) !important;
}

.cs-panel-accent-line {
    height: 4px;
    background-color: var(--cgs-active-accent);
}

.cs-panel-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 32px;
    gap: 24px;
}

@media (max-width: 768px) {
    .cs-panel-content {
        flex-direction: column;
        align-items: flex-start;
    }
}

.cs-panel-left {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.cs-panel-eyebrow {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #1b365d;
    margin-bottom: 8px;
}

.cs-wrapper-e1d58c92[style*="--pan-eyebrow-use-accent: yes"] .cs-panel-eyebrow {
    color: var(--cgs-active-accent) !important;
}

.cs-panel-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 12px 0;
}

.cs-panel-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #4b5563;
    margin: 0;
}

.cs-panel-cta {
    display: inline-block;
    padding: 12px 28px;
    background-color: #1b365d;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.cs-wrapper-e1d58c92[style*="--pan-cta-use-accent-bg: yes"] .cs-panel-cta {
    background-color: var(--cgs-active-accent) !important;
}

.cs-panel-cta:hover {
    filter: brightness(0.9);
}

/* RESOURCE PILLS LAYOUT & PLACEMENT ENGINE */
.cs-panel-pills {
    display: none;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 12px 0;
    padding: 0;
    list-style: none;
}

.cs-wrapper-e1d58c92[style*="--show-resource-pills: yes"] .cs-panel-pills {
    display: flex;
}

/* Individual Pill */
.cs-panel-pill {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 6px 11px;
    border-radius: 999px;
    transition: all 0.25s ease;
    text-decoration: none;
    box-sizing: border-box;
}

/* PILLS STYLES WITH ACCENT SYNC */
/* 1. Filled */
.cs-wrapper-e1d58c92[style*="--pills-style-mode: filled"][style*="--pills-use-accent: yes"] .cs-panel-pill {
    background-color: var(--cgs-active-accent) !important;
    border-color: var(--cgs-active-accent) !important;
    color: #FFFFFF !important;
}
/* 2. Outline */
.cs-wrapper-e1d58c92[style*="--pills-style-mode: outline"][style*="--pills-use-accent: yes"] .cs-panel-pill {
    background-color: transparent !important;
    border-color: var(--cgs-active-accent) !important;
    color: var(--cgs-active-accent) !important;
}
/* 3. Soft Tint */
.cs-wrapper-e1d58c92[style*="--pills-style-mode: soft_tint"][style*="--pills-use-accent: yes"] .cs-panel-pill {
    background-color: var(--cgs-active-tint) !important;
    border-color: var(--cgs-active-accent) !important;
    color: var(--cgs-active-accent) !important;
}

.cs-panel-pill:hover {
    filter: brightness(0.95);
}

/* SELECTION CIRCLE SYSTEM */
.cs-card-circle {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border-style: solid;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    pointer-events: none; /* standard card click handles selection seamlessly */
}

.cs-card-circle svg {
    width: 12px;
    height: 12px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.cs-card-e1d58c92.is-active .cs-card-circle svg {
    opacity: 1;
}

/* Active inheritance mappings */
.cs-wrapper-e1d58c92[style*="--circle-selected-border-use-accent: yes"] .is-active .cs-card-circle {
    border-color: var(--cgs-card-accent) !important;
}

.cs-wrapper-e1d58c92[style*="--circle-selected-bg-use-accent: yes"] .is-active .cs-card-circle {
    background-color: var(--cgs-card-accent) !important;
}
