/**
 * CSTA Curriculum Search
 * Layout, filters, cards, modals, and responsive styles.
 * Scoped under #curriculum-search-root to avoid conflicts with other CSTA plugins.
 */
@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300..700&display=swap');

:root {
    --cs-primary-teal: #00b3c9;
    --cs-primary-blue: #008eff;
    --cs-bg-white: #ffffff;
    --cs-text-dark: #000000;
    --cs-text-gray: #6b7280;
    --cs-border: #e5e7eb;
    --cs-border-dark: #000000;
    --cs-vivid-cyan: #01d3ff;
    --cs-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
    --cs-shadow-hover: 0 8px 20px rgba(15, 23, 42, 0.12);
    --cs-transition: all 250ms cubic-bezier(0.16, 1, 0.3, 1);
}

#curriculum-search-root,
#curriculum-search-root button,
#curriculum-search-root input[type=text] {
    box-sizing: border-box;
    line-height: 1.4;
}

body:has(#curriculum-search-root) .content-container.site-container {
    max-width: 1572px;
}

#curriculum-search-root.container {
    max-width: 1572px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 15px 0 60px;
    position: relative;
}

#curriculum-search-root .page-header_cs {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    width: 100%;
    margin-bottom: 16px;
}

@media (min-width: 981px) {
    #curriculum-search-root .csta-sticky-page-intro_cs {
        display: none;
    }
}

/* STATIC DATA SWITCH — safe to delete after CURRICULUM_SEARCH_ENABLE_STATIC is false */
#curriculum-search-root .data-source-switch_cs {
    display: inline-flex;
    border: 2px solid #000;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

#curriculum-search-root .data-source-option_cs {
    display: inline-flex;
    align-items: center;
    margin: 0;
    cursor: pointer;
}

#curriculum-search-root .data-source-option_cs input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

#curriculum-search-root .data-source-option_cs span {
    display: inline-block;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 700;
    color: #000;
    background: #fff;
    line-height: 1.2;
}

#curriculum-search-root .data-source-option_cs + .data-source-option_cs span {
    border-left: 2px solid #000;
}

#curriculum-search-root .data-source-option_cs input:checked + span {
    background: #000;
    color: #fff;
}

#curriculum-search-root .data-source-option_cs input:focus-visible + span {
    outline: 2px solid #01d3ff;
    outline-offset: -2px;
}

body:not(.admin-bar) #curriculum-search-root.container {
    padding-top: 0;
}

.filter-panel-heading_cs,
.card-title_cs,
.results-count_cs {
    font-family: var(--global-heading-font-family, inherit);
}

#curriculum-search-root .main-wrapper_cs {
    display: flex;
    gap: 40px;
}

#curriculum-search-root .csta-skip-link_cs {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: 100000;
    padding: 12px 20px;
    background: var(--cs-bg-white);
    color: #007f8f;
    font-weight: 700;
    text-decoration: underline;
    border: 2px solid #007f8f;
}

#curriculum-search-root .csta-skip-link_cs:focus {
    left: 16px;
    top: 16px;
    width: auto;
    height: auto;
    overflow: visible;
}

#curriculum-search-root .csta-sr-announce_cs {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

#curriculum-search-root .sidebar_cs {
    width: 300px;
    flex-shrink: 0;
    align-self: flex-start;
    position: sticky;
    top: 0;
    z-index: 10;
    max-height: calc(100vh - 24px);
    overflow: visible;
}

#curriculum-search-root .main-content_cs {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 0;
}

#curriculum-search-root .btn-cs_cs {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    font-size: 14px !important;
    font-weight: 600 !important;
    border: none !important;
    cursor: pointer;
    transition: var(--cs-transition);
    border-radius: 0 !important;
    background: #01d3ff !important;
    color: var(--cs-text-dark) !important;
    letter-spacing: 0;
}

#curriculum-search-root .btn-cs_cs:hover {
    box-shadow: 0 4px 12px rgba(0, 179, 201, 0.3);
    transform: translateY(-2px);
    color: var(--cs-text-dark) !important;
}

#curriculum-search-root .btn-cs_cs.is-inactive_cs,
#curriculum-search-root .btn-cs_cs:disabled {
    background: #e5e7eb !important;
    color: #9ca3af !important;
    cursor: not-allowed !important;
    opacity: 0.6;
    box-shadow: none !important;
    transform: none !important;
}

#curriculum-search-root .btn-cs_cs.is-inactive_cs:hover,
#curriculum-search-root .btn-cs_cs:disabled:hover {
    box-shadow: none !important;
    transform: none !important;
}

#curriculum-search-root .view-pinned-btn_cs.is-active-view_cs {
    outline: 2px solid #000;
    outline-offset: 1px;
}

#curriculum-search-root .share-btn_cs img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    display: block;
}

#curriculum-search-root .header-actions_cs .btn-cs_cs {
    height: 39px;
}

#curriculum-search-root .filter-card_cs {
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 24px);
    overflow: hidden;
}

body.admin-bar #curriculum-search-root .sidebar_cs {
    top: 24px;
    max-height: calc(100vh - 48px);
}

body.admin-bar #curriculum-search-root .filter-card_cs {
    max-height: calc(100vh - 48px);
}

#curriculum-search-root .filter-card-scroll_cs {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding-right: 10px;
    padding-bottom: 50px;
}

#curriculum-search-root .filter-panel-heading_cs {
    display: flex;
    align-items: center;
    font-size: 28px;
    font-weight: 900;
    gap: 10px;
    padding: 25px 0 19px;
    margin-bottom: 26px;
    min-height: 85px;
    box-sizing: border-box;
    border-bottom: 2px solid #000;
    color: #000;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 6;
    background: var(--cs-bg-white);
}

#curriculum-search-root .filter-panel-heading_cs .btn-cs_cs {
    height: 39px;
}

#curriculum-search-root .filter-heading-label_cs {
    display: flex;
    gap: 3px;
    align-items: center;
}

#curriculum-search-root .filter-icon-label_cs,
#curriculum-search-root .filter-icon-label-box_cs {
    width: 30px;
    height: 30px;
}

#curriculum-search-root .ge-symbol_cs {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 0.9em;
    height: 1.05em;
    line-height: 0;
    flex: 0 0 auto;
}

#curriculum-search-root .ge-symbol_cs svg {
    display: block;
    width: 100%;
    height: 100%;
}

#curriculum-search-root .accordion-header_cs .ge-symbol_cs {
    transform: translateY(4px);
}

#curriculum-search-root .filter-section_cs {
    margin-bottom: 15px;
    padding-bottom: 3px;
    border-bottom: 1px solid var(--cs-border-dark);
    overflow: visible;
}

#curriculum-search-root .filter-section_cs.csta-text-search_cs {
    border-bottom: none;
}

#curriculum-search-root .filter-label_cs {
    font-size: 18px;
    font-weight: 700;
    color: var(--cs-text-dark);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

#curriculum-search-root .accordion-header_cs {
    cursor: pointer;
    user-select: none;
    justify-content: space-between;
}

#curriculum-search-root .accordion-header_cs:hover {
    opacity: 0.8;
}

#curriculum-search-root .accordion-toggle_cs {
    width: 24px;
    height: 24px;
    min-width: 24px;
    border-radius: 50%;
    background: #01d3ff;
    color: #000;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    font-size: 12px;
}

#curriculum-search-root .search-input-wrapper_cs {
    position: relative;
    width: 100%;
}

#curriculum-search-root .search-box_cs {
    width: 100%;
    padding: 14px 40px 14px 12px;
    border: 2px solid var(--cs-border-dark);
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
}

#curriculum-search-root .search-box_cs:focus {
    outline: none;
    border-color: var(--cs-primary-teal);
    box-shadow: 0 0 0 3px rgba(0, 179, 201, 0.1);
}

#curriculum-search-root .search-icon_cs {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--cs-text-dark);
    font-size: 20px;
    pointer-events: none;
}

#curriculum-search-root .checkbox-group_cs {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 10px;
}

#curriculum-search-root .time-slider_cs {
    padding: 4px 2px 16px;
}

#curriculum-search-root .time-slider-values_cs {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

#curriculum-search-root .time-slider-values_cs .checkbox-label_cs {
    font-size: inherit;
    font-weight: inherit;
    font-family: inherit;
    letter-spacing: inherit;
    line-height: inherit;
    color: var(--cs-text-dark);
}

#curriculum-search-root .time-slider-track_cs {
    position: relative;
    height: 36px;
    touch-action: pan-y;
}

#curriculum-search-root .time-slider-rail_cs,
#curriculum-search-root .time-slider-range_cs {
    position: absolute;
    top: 16px;
    height: 4px;
    border-radius: 999px;
    pointer-events: none;
}

#curriculum-search-root .time-slider-rail_cs {
    left: 0;
    right: 0;
    background: #d4d4d4;
}

#curriculum-search-root .time-slider-range_cs {
    left: 0;
    width: 100%;
    background: #000;
}

#curriculum-search-root .time-slider-input_cs {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 36px;
    margin: 0;
    padding: 0;
    background: none;
    border: none;
    outline: none;
    pointer-events: none;
    touch-action: none;
    -webkit-appearance: none;
    appearance: none;
    z-index: 3;
}

#curriculum-search-root #csTimeMax {
    z-index: 4;
}

#curriculum-search-root .time-slider-input_cs::-webkit-slider-runnable-track {
    height: 4px;
    background: transparent;
    border: none;
}

#curriculum-search-root .time-slider-input_cs::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    pointer-events: auto;
    width: 27px;
    height: 27px;
    margin-top: -12px;
    border-radius: 50%;
    border: none;
    background: #01d3ff;
    cursor: pointer;
    box-shadow: none;
}

#curriculum-search-root .time-slider-input_cs::-moz-range-track {
    height: 4px;
    background: transparent;
    border: none;
}

#curriculum-search-root .time-slider-input_cs::-moz-range-thumb {
    pointer-events: auto;
    width: 27px;
    height: 27px;
    border-radius: 50%;
    border: none;
    background: #01d3ff;
    cursor: pointer;
    box-shadow: none;
}

#curriculum-search-root .checkbox-item_cs {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    margin-left: 0;
    position: relative;
}

#curriculum-search-root .checkbox-group-head_cs.checkbox-item_cs {
    margin-left: 0;
}

#curriculum-search-root .nested-container_cs {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 4px;
}

#curriculum-search-root .nested-container_cs .checkbox-item_cs {
    margin-left: 30px;
}

#curriculum-search-root .accordion-header_cs > span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

#curriculum-search-root .checkbox-item_cs input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px;
    min-height: 18px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    border: 2px solid var(--cs-border-dark);
    border-radius: 0;
    background: transparent;
    position: relative;
    flex-shrink: 0;
    margin: 2px 0 0;
    padding: 0;
}

#curriculum-search-root .checkbox-item_cs input[type="checkbox"]:checked {
    background-color: var(--cs-border-dark) !important;
    border-color: var(--cs-border-dark) !important;
}

#curriculum-search-root .checkbox-item_cs input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 12px;
    font-weight: bold;
}

#curriculum-search-root .checkbox-label_cs {
    color: var(--cs-text-dark);
    cursor: pointer;
}

#curriculum-search-root .checkbox-count_cs {
    font-size: 12px;
    color: #737373;
    font-style: italic;
}

#curriculum-search-root .filter-subgroup-label_cs {
    font-size: 14px;
    font-weight: 800;
    margin: 4px 0 2px;
}

#curriculum-search-root .checkbox-help_cs {
    background: #e6e6e6;
    color: #000;
    font-size: 12px;
    height: 16px;
    width: 16px;
    border-radius: 10px;
    text-align: center;
    display: inline-block;
    cursor: help;
    position: relative;
    margin-left: 4px;
    line-height: 16px;
    font-weight: normal;
}

#curriculum-search-root .checkbox-help_cs:hover {
    background: #d0d0d0;
}

.cs-tooltip-js {
    position: fixed;
    z-index: 99999;
    padding: 8px 12px;
    background: #000;
    color: #fff;
    font-size: 12px;
    font-family: inherit;
    border-radius: 4px;
    max-width: min(360px, 92vw);
    width: max-content;
    text-align: left;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    pointer-events: none;
}

#curriculum-search-root .search-result-main_cs {
    margin-bottom: 26px;
    padding: 25px 0 19px;
    min-height: 85px;
    box-sizing: border-box;
    border-bottom: 2px solid #000;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--cs-bg-white);
    box-shadow: 0 4px 0 0 var(--cs-bg-white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: nowrap;
}

body.admin-bar #curriculum-search-root .search-result-main_cs {
    top: 24px;
}

#curriculum-search-root .results-count_cs {
    font-size: 28px;
    font-weight: 900;
    color: var(--cs-text-dark);
    flex-shrink: 0;
}

#curriculum-search-root .results-leading_cs {
    display: contents;
}

#curriculum-search-root .results-count-sort_cs {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
    min-width: 0;
}

#curriculum-search-root .results-sort-wrap_cs {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

#curriculum-search-root .provider-filter-chip_cs {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 39px;
    padding: 0 12px;
    background: #01d3ff;
    color: #000;
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
}

#curriculum-search-root .provider-filter-chip_cs[hidden] {
    display: none !important;
}

#curriculum-search-root .provider-filter-clear_cs {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    padding: 0;
    border: none;
    background: transparent;
    color: #000;
    cursor: pointer;
    font-size: 12px;
    line-height: 1;
}

#curriculum-search-root .csta-sort-btn {
    min-width: 0;
    width: auto;
    height: 39px;
    padding: 6px 8px;
    justify-content: flex-start;
    flex-wrap: nowrap;
}

#curriculum-search-root .results-sort-btn-text_cs {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.15;
    min-width: 0;
    flex: 1 1 auto;
}

#curriculum-search-root .results-sort-by-line_cs {
    font-size: 10px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

#curriculum-search-root .results-sort-suffix_cs {
    font-size: 14px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    white-space: nowrap;
}

#curriculum-search-root .header-actions_cs {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-left: auto;
}

#curriculum-search-root .header-action-btns_cs {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: nowrap;
}

#curriculum-search-root .open-close-cards_cs {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 39px;
    margin: 0;
    padding: 0 12px 0 15px;
    background: #01d3ff;
    color: #000;
    box-sizing: border-box;
    white-space: nowrap;
    cursor: pointer;
}

#curriculum-search-root .open-close-cards-label_cs {
    margin: 0;
    min-width: 4.2em;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
    text-transform: uppercase;
    color: #000;
    cursor: pointer;
}

#curriculum-search-root .open-close-switch_cs {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin: 0;
    flex: 0 0 auto;
    cursor: pointer;
}

#curriculum-search-root .open-close-switch_cs input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    opacity: 0;
}

#curriculum-search-root .open-close-switch-ui_cs {
    position: relative;
    display: block;
    width: 36px;
    height: 20px;
    background: #fff;
    border: 2px solid #000;
    border-radius: 999px;
    box-sizing: border-box;
    transition: background 200ms ease;
}

#curriculum-search-root .open-close-switch-ui_cs::after {
    content: "";
    position: absolute;
    top: 1px;
    left: 1px;
    width: 14px;
    height: 14px;
    background: #000;
    border-radius: 50%;
    transition: transform 200ms ease;
}

#curriculum-search-root .open-close-switch_cs input:checked + .open-close-switch-ui_cs {
    background: #000;
}

#curriculum-search-root .open-close-switch_cs input:checked + .open-close-switch-ui_cs::after {
    background: #01d3ff;
    transform: translateX(16px);
}

#curriculum-search-root .open-close-switch_cs input:focus-visible + .open-close-switch-ui_cs {
    outline: 2px solid #000;
    outline-offset: 2px;
}

#curriculum-search-root .dropdown-toggle_cs {
    position: relative;
}

#curriculum-search-root .dropdown-menu_cs {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border: 1px solid var(--cs-border);
    border-radius: 12px;
    margin-top: 8px;
    box-shadow: var(--cs-shadow);
    min-width: 160px;
    z-index: 50;
}

#curriculum-search-root .dropdown-menu_cs.active_cs {
    display: block;
}

#curriculum-search-root .dropdown-menu_cs a {
    display: block;
    padding: 12px 16px;
    color: var(--cs-text-dark);
    text-decoration: none;
    font-size: 14px;
}

#curriculum-search-root .dropdown-menu_cs a:hover {
    background: #f5f7fb;
    color: var(--cs-primary-teal);
}

#curriculum-search-root .curriculum-card_cs {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: var(--cs-transition);
    border: 2px solid #000000;
    font-size: 14px;
    margin-bottom: 20px;
    background: #000;
}

#curriculum-search-root .curriculum-card_cs.featured_cs {
    border-color: #0e5df8;
    border-width: 3px;
    background: #0e5df8;
}

#curriculum-search-root .curriculum-card_cs.is-expanded_cs {
    border-color: #000000;
}

#curriculum-search-root .curriculum-card_cs.featured_cs.is-expanded_cs {
    border-color: #0e5df8;
}

#curriculum-search-root .curriculum-card_cs:hover {
    box-shadow: var(--cs-shadow-hover);
}

#curriculum-search-root .featured-ribbon_cs {
    display: flex;
    align-items: center;
    background: #dbe6fd;
    color: #0757f3;
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    padding: 3px 20px;
    cursor: pointer;
}

#curriculum-search-root .featured_cs.is-expanded_cs .featured-ribbon_cs {
    display: none;
}

#curriculum-search-root .card-row_cs {
    display: flex;
}

#curriculum-search-root .card-left-panel_cs {
    background: #000000;
    padding: 10px 6px;
    display: flex;
    align-items: flex-start;
    flex-shrink: 0;
}

#curriculum-search-root .curriculum-card_cs.featured_cs .card-left-panel_cs {
    background: #0e5df8;
}

#curriculum-search-root .card-left-panel_cs .pin-icon_cs {
    filter: brightness(0) invert(1);
}

#curriculum-search-root .curriculum-card_cs.is-expanded_cs .card-left-panel_cs {
    background: #000000;
}

#curriculum-search-root .curriculum-card_cs.featured_cs.is-expanded_cs .card-left-panel_cs {
    background: #0e5df8;
}

#curriculum-search-root .curriculum-card_cs.is-expanded_cs .card-left-panel_cs .pin-icon_cs {
    filter: brightness(0) invert(1);
}

#curriculum-search-root .card-right-panel_cs {
    flex: 1;
    min-width: 0;
    background: #fff;
}

#curriculum-search-root .card-header_cs {
    padding: 16px 20px 8px;
    display: flex;
    /* justify-content: space-between; */
    align-items: center;
    gap: 16px;
    cursor: pointer;
    min-width: 0;
}

#curriculum-search-root .card-header-main_cs {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
}

#curriculum-search-root .card-header-actions_cs {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

#curriculum-search-root .card-provider-tools_cs {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    max-width: 165px;
    min-height: 30px;
}

#curriculum-search-root .provider-logo_cs {
    height: 30px;
    width: auto;
    max-width: 125px;
    max-height: 30px;
    object-fit: contain;
    object-position: right center;
    display: block;
    flex: 0 1 auto;
}

#curriculum-search-root .provider-logo-fallback_cs {
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    line-height: 1;
    max-width: 125px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#curriculum-search-root .card-filter-btn_cs {
    width: 28px;
    min-width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #ececec;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border: none;
    padding: 0;
    cursor: pointer;
    flex: 0 0 28px;
    visibility: visible;
}

#curriculum-search-root .card-filter-btn_cs.is-active_cs {
    background: #ececec;
}

#curriculum-search-root .card-filter-btn_cs img {
    width: 14px;
    height: 14px;
    object-fit: contain;
    display: block;
}

#curriculum-search-root .card-title_cs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-weight: 400;
    color: #000;
    font-size: 22px;
    margin: 0;
    line-height: 1.2;
    min-width: 0;
    max-width: 100%;
}

#curriculum-search-root .card-title_cs .curriculum-name_cs {
    font-weight: bold;
    color: #000;
    font-size: 18px;
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
    white-space: normal;
}

#curriculum-search-root .card-title_cs .provider-sep_cs {
    font-weight: 400;
    color: #cccccc;
    font-size: 22px;
}

#curriculum-search-root .card-title_cs.is-title-wrapped_cs .provider-sep_cs {
    display: none;
}

#curriculum-search-root .card-title-line_cs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
    white-space: normal;
}

#curriculum-search-root .card-title_cs .provider-name_cs {
    font-weight: 400;
    color: #666666;
    font-size: 16px;
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
    white-space: normal;
}

#curriculum-search-root .curriculum-card_cs.is-expanded_cs .curriculum-name_cs {
}

#curriculum-search-root .curriculum-card_cs.is-expanded_cs .card-header_cs {
    border-bottom: 1px solid #000;
    padding-bottom: 12px;
    margin: 0 0 1rem;
}

/* Let each pill participate in the title flex row so they sit beside the provider and wrap with it. */
#curriculum-search-root .card-tags_cs {
    display: contents;
}

#curriculum-search-root .tag_cs {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    padding: 4px 10px;
    background: #f2f2f2;
    color: var(--cs-text-dark);
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    width: auto;
    max-width: 100%;
    box-sizing: border-box;
}

#curriculum-search-root .tag-level_cs {
    background: #c8eeff;
}

#curriculum-search-root .tag-cost_cs {
    background: #d8f8c8;
}

#curriculum-search-root .tag-approach_cs {
    background: #ececec;
}

#curriculum-search-root .card-collapsed-meta_cs {
    padding: 0 20px 16px;
    cursor: pointer;
}

#curriculum-search-root .align-chip-row_cs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 10px 0 8px;
}

#curriculum-search-root .align-chip-label_cs {
    display: inline-flex;
    align-items: center;
    gap: 0.2em;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.03em;
    margin-right: 4px;
}

#curriculum-search-root .align-chip-label_cs .ge-symbol_cs {
    width: 0.85em;
    height: 1em;
}

#curriculum-search-root .align-chip_cs {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 20px;
    padding: 1px 6px 0;
    color: #000000;
    font-size: 14px;
    font-weight: bold;
    cursor: help;
}

#curriculum-search-root .card-summary_cs {
    margin: 0;
    font-size: 14px;
}

#curriculum-search-root .curriculum-card_cs.is-expanded_cs .card-collapsed-meta_cs {
    display: none;
}

#curriculum-search-root .card-btn-black_cs {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #111;
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 10px 14px;
    border: none;
    cursor: pointer;
    line-height: 1.2;
}

#curriculum-search-root .card-btn-black_cs:hover {
    color: #fff !important;
    background: #333;
}

#curriculum-search-root .card-btn-black_cs.is-disabled_cs {
    background: #c4c4c4;
    color: #fff !important;
    opacity: 1;
    pointer-events: none;
}

#curriculum-search-root .card-icon-btn_cs {
    background: none;
    border: none;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cs-text-dark);
    font-size: 18px;
    border-radius: 8px;
    padding: 0;
}

#curriculum-search-root .card-icon-btn_cs.pinned_cs .pin-icon_cs {
    filter: brightness(0) saturate(100%);
}

#curriculum-search-root .card-left-panel_cs .card-icon-btn_cs.pinned_cs .pin-icon_cs {
    filter: brightness(0) invert(1);
}

#curriculum-search-root .card-chevron-btn_cs .fa-chevron-down {
    transition: transform 250ms ease;
}

#curriculum-search-root .card-chevron-btn_cs .fa-chevron-down.rotated_cs {
    transform: rotate(180deg);
}

#curriculum-search-root .card-content_cs {
    display: none;
    padding: 0 20px 24px;
}

#curriculum-search-root .card-content_cs[hidden] {
    display: none !important;
}

#curriculum-search-root .card-content_cs.expanded_cs {
    display: block;
}

#curriculum-search-root .card-section-label_cs {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

#curriculum-search-root .expand-top_cs {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    margin-bottom: 16px;
    align-items: stretch;
}

#curriculum-search-root .expand-top_cs:has(.expand-meta_cs) {
    grid-template-columns: minmax(0, 1fr) 250px;
}

#curriculum-search-root .expand-main_cs {
    display: flex;
    flex-direction: column;
    gap: 16px;
    border: 1px solid #d0d0d0;
    border-radius: 10px;
    padding: 16px 18px;
    min-width: 0;
}

#curriculum-search-root .expand-main-foot_cs {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px 20px;
}

#curriculum-search-root .expand-desc_cs .section-text_cs {
    margin-bottom: 16px;
}

#curriculum-search-root .expand-levels_cs {
    width: auto;
    flex: 1 1 auto;
    min-width: 0;
}

#curriculum-search-root .expand-levels_cs .card-section-label_cs {
    margin-bottom: 8px;
}

#curriculum-search-root .expand-desc_cs {
    min-width: 0;
}

#curriculum-search-root .expand-version_cs {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex: 0 0 auto;
    margin-left: auto;
}

#curriculum-search-root .expand-version_cs .card-btn-black_cs {
    align-self: flex-end;
}

#curriculum-search-root .expand-meta_cs {
    display: flex;
    flex-direction: column;
    gap: 14px;
    border: 1px solid #d0d0d0;
    border-radius: 10px;
    padding: 16px 18px;
    min-width: 0;
}

#curriculum-search-root .meta-block_cs h4 {
    margin: 0 0 4px;
}

#curriculum-search-root .version-value_cs {
    font-size: 16px;
    margin-bottom: 12px;
}

#curriculum-search-root .section-text_cs {
    margin: 0 0 14px;
}

#curriculum-search-root .a11y-features_cs {
    margin: 10px 0 0;
    padding-left: 26px;
}

#curriculum-search-root .a11y-features-line_cs {
    margin: 0;
}

#curriculum-search-root .a11y-features-label_cs {
    font-weight: 700;
}

/*#curriculum-search-root .a11y-features-text_cs {
    font-weight: 400;
}*/

#curriculum-search-root .level-pills_cs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

#curriculum-search-root .level-pill_cs {
    background: #ead9f6;
    border-radius: 12px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
}

#curriculum-search-root .align-panel_cs {
    border: 1px solid #d0d0d0;
    border-radius: 10px;
    padding: 16px 18px;
    margin-bottom: 18px;
}

#curriculum-search-root .align-panel-body_cs {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: flex-start;
    column-gap: 16px;
    row-gap: 12px;
}

#curriculum-search-root .align-groups_cs {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    column-gap: 0;
    row-gap: 20px;
}

@media (max-width: 640px) {
    #curriculum-search-root .align-groups_cs {
        row-gap: 0;
    }
}

#curriculum-search-root .align-group_cs {
    min-width: 0;
    padding: 0 16px 0 0;
    border-right: 1px solid #d0d0d0;
    margin: 0 16px 0 0;
}

#curriculum-search-root .align-group_cs:last-child {
    border-right: none;
    padding-right: 0;
    margin-right: 0;
}

#curriculum-search-root .align-group_cs.is-row-end_cs {
    border-right-color: transparent;
}

#curriculum-search-root .align-group-label_cs {
    font-weight: 800;
    margin-bottom: 8px;
    color: #111;
}

#curriculum-search-root .align-gauges_cs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 6px;
    align-items: flex-start;
}

#curriculum-search-root .align-gauge_cs {
    width: 58px;
    text-align: center;
    cursor: help;
}

#curriculum-search-root .align-gauge_cs.is-large_cs {
    width: 78px;
}

#curriculum-search-root .align-circle_cs {
    width: 46px;
    height: 46px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 16px;
    font-weight: bold;
    margin: 14px auto 6px;
}

#curriculum-search-root .align-gauge_cs.is-large_cs .align-circle_cs {
    width: 60px;
    height: 60px;
    font-size: 24px;
    border-radius: 30px;
}

#curriculum-search-root .align-circle-caption_cs {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1.2;
    text-transform: uppercase;
}

#curriculum-search-root .align-panel-actions_cs {
    display: flex;
    align-items: flex-end;
    flex: 0 0 auto;
    width: auto;
    margin: 0;
    padding: 0;
    align-self: flex-end;
}

#curriculum-search-root .align-color-alg_cs { background: #f90696; color: #000; }
#curriculum-search-root .align-color-pro_cs { background: #fe9900; color: #000; }
#curriculum-search-root .align-color-dat_cs { background: #5df14d; color: #000; }
#curriculum-search-root .align-color-sys_cs { background: #01d3ff; color: #000; }
#curriculum-search-root .align-color-soc_cs { background: #ff3c00; color: #000; }
#curriculum-search-root .align-color-overall_cs { background: #dde8fe; color: #000; margin-top: 0; }
#curriculum-search-root .align-color-ain_cs,
#curriculum-search-root .align-color-cyb_cs,
#curriculum-search-root .align-color-dsc_cs,
#curriculum-search-root .align-color-gmd_cs,
#curriculum-search-root .align-color-phy_cs,
#curriculum-search-root .align-color-swd_cs,
#curriculum-search-root .align-color-xcs_cs { background: #9d1db2; color: #fff; }
#curriculum-search-root .align-color-cross_cs { background: #adadad; color: #000; }

#curriculum-search-root .expand-columns_cs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 16px;
    align-items: stretch;
}

#curriculum-search-root .expand-col_cs {
    border: 1px solid #d0d0d0;
    border-radius: 10px;
    padding: 16px 18px;
    min-width: 0;
}

#curriculum-search-root .expand-col_cs .card-section-label_cs:not(:first-child) {
    margin-top: 16px;
}

#curriculum-search-root .expand-col_cs > *:not(.card-section-label_cs) {
    padding-left: 1rem;
}

#curriculum-search-root .field-label_cs {
    font-weight: 700;
}

#curriculum-search-root .feature-row_cs {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 6px;
}

#curriculum-search-root .feature-row_cs .fa-check {
    color: #0e5df8;
    margin-top: 2px;
}

#curriculum-search-root .feature-link_cs {
    color: #0e5df8 !important;
    text-decoration: underline !important;
    font-weight: 400;
}

#curriculum-search-root .feature-link_cs:hover {
    color: #0947c4 !important;
}

#curriculum-search-root .feature-dash_cs {
    color: #808080;
    width: 14px;
    text-align: center;
    font-weight: 700;
    flex: 0 0 14px;
}

#curriculum-search-root .feature-label_cs,
#curriculum-search-root .feature-row_cs.is-missing_cs,
#curriculum-search-root .feature-row_cs.is-missing_cs .feature-label_cs,
#curriculum-search-root .key-features-list_cs .feature-row_cs.is-missing_cs {
    color: #000000;
}

#curriculum-search-root .expand-col_cs:nth-child(2) .feature-row_cs.is-missing_cs,
#curriculum-search-root .expand-col_cs:nth-child(3) .feature-row_cs.is-missing_cs,
#curriculum-search-root .expand-col_cs:nth-child(2) .feature-label_cs,
#curriculum-search-root .expand-col_cs:nth-child(3) .feature-label_cs {
    color: #000000 !important;
}

#curriculum-search-root .key-features-list_cs .feature-dash_cs {
    color: #808080;
}

#curriculum-search-root .btn-row_cs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 16px;
}

#curriculum-search-root .pd-cost_cs {
    margin: 6px 0 10px;
}

#curriculum-search-root .pd-cost_cs .feature-dash_cs {
    visibility: hidden;
}

#curriculum-search-root .pd-badge_cs {
    width: 228px;
    height: auto;
    display: block;
    margin: 8px 0 12px;
}

#curriculum-search-root .lessons-panel_cs {
    border: 1px solid #d0d0d0;
    border-radius: 10px;
    padding: 16px 18px;
}

#curriculum-search-root .lessons-panel-head_cs {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    min-height: 32px;
}

#curriculum-search-root .lessons-panel-head_cs .card-section-label_cs {
    margin: 0;
    line-height: 32px;
}

#curriculum-search-root .lessons-nav-group_cs {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

#curriculum-search-root .lessons-nav_cs {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 20px;
    color: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
}

#curriculum-search-root .lessons-nav_cs:hover,
#curriculum-search-root .lessons-nav_cs:focus {
    color: #000;
}

#curriculum-search-root .lessons-nav_cs:focus {
    outline: 2px solid #000;
    outline-offset: 2px;
}

#curriculum-search-root .lessons-nav_cs:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

#curriculum-search-root .lessons-track_cs {
    display: flex;
    align-items: stretch;
    gap: 14px;
    overflow-x: auto;
    padding: 6px 2px 12px;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

#curriculum-search-root .lessons-track_cs::-webkit-scrollbar {
    display: none;
}

#curriculum-search-root .lesson-card_cs {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 0 0 calc((100% - 42px) / 4);
    max-width: calc((100% - 42px) / 4);
    border: 2px solid #111;
    background: #fff;
    padding: 0 0 12px;
    border-radius: 0;
    scroll-snap-align: start;
    min-width: 0;
    transition: transform 200ms ease, box-shadow 200ms ease;
}

#curriculum-search-root .lesson-card_cs.is-clickable_cs {
    cursor: pointer;
}

#curriculum-search-root .lesson-card_cs:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.14);
}

#curriculum-search-root .lesson-card-link_cs {
    position: absolute;
    inset: 0;
    z-index: 1;
    text-indent: -9999px;
    overflow: hidden;
}

#curriculum-search-root .lesson-thumb_cs {
    height: 108px;
    background: #01d3ff;
    position: relative;
    margin: 12px;
    overflow: hidden;
}

#curriculum-search-root .lesson-thumb_cs.has-image_cs {
    background: #fff;
}

#curriculum-search-root .lesson-thumb_cs img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

#curriculum-search-root .lesson-thumb-frame_cs {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 92px;
    height: 52px;
    transform: translate(-50%, -42%);
    border: 2px solid #fff;
    border-radius: 8px;
    pointer-events: none;
}

#curriculum-search-root .lesson-new_cs {
    position: absolute;
    top: -12px;
    left: -12px;
    z-index: 1;
    background: #3cda3c;
    color: #000;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 0.04em;
    padding: 3px 10px;
    border-radius: 0 15px 15px 0;
}

#curriculum-search-root .lesson-title_cs {
    margin: 0 12px 6px;
    font-size: 14px;
    font-weight: 800;
    color: #111;
}

#curriculum-search-root .lesson-desc_cs {
    margin: 0 12px 12px;
    font-size: 12px;
    color: #333;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1 1 auto;
}

#curriculum-search-root .lesson-actions_cs {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 6px;
    padding: 0 12px;
    margin-top: auto;
}

#curriculum-search-root .lesson-outline-btn_cs {
    border: 2px solid #111;
    color: #111 !important;
    text-decoration: none !important;
    background: #fff;
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 0;
}

#curriculum-search-root .lesson-outline-btn_cs:hover {
    background: #f3f3f3;
}

#curriculum-search-root .csta-loader_cs {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    min-height: 300px;
    transition: opacity 0.3s ease-in-out;
}

#curriculum-search-root .csta-loader_cs.hidden_cs {
    display: none;
}

#curriculum-search-root .loader-spinner_cs {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(1, 211, 255, 0.2);
    border-top-color: var(--cs-vivid-cyan);
    border-radius: 50%;
    animation: cs-spin 0.8s linear infinite;
    margin-bottom: 20px;
}

@keyframes cs-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

#curriculum-search-root .loader-text_cs {
    font-size: 16px;
    font-weight: 600;
    color: var(--cs-text-dark);
    text-align: center;
}

.csta-toast_cs {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #fff;
    color: #000;
    padding: 14px 20px;
    border-radius: 12px;
    border: 2px solid #01d3ff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    z-index: 100000;
    display: none;
    max-width: min(420px, calc(100vw - 32px));
}

.csta-toast_cs.active_cs {
    display: block;
}

.csta-toast_cs .toast-content_cs {
    display: flex;
    align-items: center;
    gap: 12px;
}

.csta-toast_cs .toast-icon_cs {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #01d3ff;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.csta-toast_cs .toast-message_cs {
    color: #000;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
}

.modal-overlay_cs {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 100001;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal-overlay_cs.active_cs {
    display: flex !important;
}

.modal-overlay_cs .modal_cs {
    background: #fff;
    max-width: 720px;
    width: 100%;
    max-height: 90vh;
    overflow: auto;
    border-radius: 12px;
}

.modal-overlay_cs .modal-header_cs,
.modal-overlay_cs .modal-footer_cs {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
}

.modal-overlay_cs .modal-footer_cs {
    border-top: 1px solid #e5e7eb;
    border-bottom: none;
}

.modal-overlay_cs .modal-title_cs {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
}

.modal-overlay_cs .modal-body_cs {
    padding: 16px 20px;
}

.modal-overlay_cs .pd-modal-frame_cs {
    width: 100%;
    min-height: 70vh;
    border: 0;
    display: block;
}

.modal-overlay_cs .pd-static-modal_cs .section-text_cs {
    margin: 0 0 12px;
}

.modal-overlay_cs .modal-close_cs,
.modal-overlay_cs .btn-close-modal_cs {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #01d3ff;
    color: #000;
    cursor: pointer;
    font-weight: 700;
    flex-shrink: 0;
    line-height: 1;
}

.modal-overlay_cs .modal-body_cs > :last-child {
    margin-top: 24px;
}

#curriculum-search-root .filters-toggle-btn_cs {
    display: none;
    height: 39px;
    cursor: pointer;
    margin: 0;
    background: #01d3ff;
    color: #000;
    border: none;
    padding: 8px 16px;
    font-size: 14px;
}

#curriculum-search-root .empty-results_cs {
    text-align: center;
    color: var(--cs-text-gray);
    padding: 40px;
}

#curriculum-search-root .csta-loading-more-message_cs {
    text-align: center;
    color: var(--cs-text-gray);
    font-size: 14px;
    font-weight: 600;
    padding: 10px 0 20px;
}

#curriculum-search-root .csta-loading-more-message_cs.hidden_cs {
    display: none;
}

@media (max-width: 1280px) {
    #curriculum-search-root .expand-top_cs,
    #curriculum-search-root .expand-main_cs,
    #curriculum-search-root .expand-columns_cs {
        grid-template-columns: minmax(0, 1fr);
    }

    #curriculum-search-root .expand-top_cs:has(.expand-meta_cs) {
        grid-template-columns: minmax(0, 1fr);
    }

    #curriculum-search-root .expand-version_cs {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
    }

    #curriculum-search-root .lesson-card_cs {
        flex-basis: calc((100% - 14px) / 2);
        max-width: calc((100% - 14px) / 2);
    }
}

@media (max-width: 1500px) and (min-width: 981px) {
    #curriculum-search-root .search-result-main_cs {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        column-gap: 16px;
        row-gap: 12px;
    }

    #curriculum-search-root .results-leading_cs {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 12px;
        width: auto;
        max-width: 100%;
        min-width: max-content;
        flex: 0 0 auto;
    }

    #curriculum-search-root .results-count-sort_cs {
        display: inline-flex;
        align-items: center;
        gap: 12px;
        width: max-content;
        max-width: none;
        min-width: max-content;
        flex: 0 0 auto;
    }

    #curriculum-search-root .provider-filter-chip_cs {
        width: max-content;
        max-width: 100%;
    }

    #curriculum-search-root .header-actions_cs {
        margin-left: auto;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: flex-end;
        flex: 0 0 auto;
        min-width: max-content;
    }

    #curriculum-search-root .open-close-cards_cs {
        width: auto;
        flex: 0 0 auto;
    }

    #curriculum-search-root .header-action-btns_cs {
        justify-content: flex-end;
        flex-wrap: nowrap;
        flex: 0 0 auto;
    }
}

@media (max-width: 980px) {
    #curriculum-search-root .main-wrapper_cs.csta-search-result_cs {
        flex-direction: column;
        gap: 16px;
    }

    #curriculum-search-root .page-header_cs {
        justify-content: space-between;
        flex-wrap: nowrap;
    }

    #curriculum-search-root .filters-toggle-btn_cs {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        flex-shrink: 0;
    }

    #curriculum-search-root .data-source-switch_cs {
        flex-shrink: 1;
        min-width: 0;
    }

    #curriculum-search-root .sidebar_cs {
        width: 100%;
        display: none;
        position: static;
        top: auto;
        max-height: none;
    }

    #curriculum-search-root .sidebar_cs.is-open_cs {
        display: block;
    }

    #curriculum-search-root .filter-card_cs {
        position: relative;
        max-height: none;
    }

    #curriculum-search-root .search-result-main_cs {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        align-items: center;
        min-height: 0;
        flex-wrap: wrap;
        margin-bottom: 12px;
        padding: 12px 0;
    }

    #curriculum-search-root .results-leading_cs,
    #curriculum-search-root .results-count-sort_cs {
        display: contents;
    }

    #curriculum-search-root .results-count_cs {
        min-width: 0;
    }

    #curriculum-search-root .results-sort-wrap_cs,
    #curriculum-search-root .results-sort-wrap_cs .dropdown-toggle_cs {
        width: 100%;
        min-width: 0;
        grid-column: 2;
    }

    #curriculum-search-root .csta-sort-btn {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        overflow: hidden;
    }

    #curriculum-search-root .provider-filter-chip_cs {
        grid-column: 1 / -1;
        width: 100%;
        justify-content: center;
    }

    #curriculum-search-root .lesson-card_cs {
        flex-basis: calc((100% - 14px) / 2);
        max-width: calc((100% - 14px) / 2);
    }

    #curriculum-search-root .align-panel-body_cs {
        flex-direction: column;
        align-items: stretch;
    }

    #curriculum-search-root .align-panel-actions_cs {
        margin-left: 0;
        margin-top: 12px;
        padding-left: 0;
        width: auto;
        align-self: flex-start;
    }

    #curriculum-search-root .header-actions_cs {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-column: 1 / -1;
        gap: 12px;
        margin-left: 0;
        width: 100%;
    }

    #curriculum-search-root .header-action-btns_cs {
        display: contents;
    }

    #curriculum-search-root .header-actions_cs .view-pinned-btn_cs,
    #curriculum-search-root .header-actions_cs .clear-pins-btn_cs {
        width: 100%;
        min-width: 0;
        justify-content: center;
    }

    #curriculum-search-root .header-actions_cs .share-btn_cs,
    #curriculum-search-root .header-actions_cs .open-close-cards_cs {
        width: 100%;
        min-width: 0;
        height: 39px;
        min-height: 39px;
        max-height: 39px;
        justify-content: center;
        box-sizing: border-box;
    }

    #curriculum-search-root .header-actions_cs .share-btn_cs img {
        width: 16px;
        height: 16px;
    }

    #curriculum-search-root .header-actions_cs .open-close-cards_cs {
        order: 0;
        padding: 0 8px 0 10px;
        gap: 8px;
        white-space: nowrap;
        overflow: hidden;
    }

    #curriculum-search-root .header-actions_cs .open-close-cards-label_cs {
        min-width: 0;
        flex: 1 1 auto;
        font-size: 14px;
        font-weight: 600;
        line-height: 1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    #curriculum-search-root .header-actions_cs .open-close-cards-space_cs {
        display: none;
    }

    #curriculum-search-root .header-actions_cs .open-close-cards-action_cs,
    #curriculum-search-root .header-actions_cs .open-close-cards-rest_cs {
        display: block;
    }

    /* Mobile card header:
       row 1 = curriculum title + chevron
       row 2 = provider name + pills + logo/filter */
    #curriculum-search-root .card-header_cs {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        column-gap: 8px;
        row-gap: 2px;
        padding-bottom: 2px;
    }

    #curriculum-search-root .align-chip-row_cs {
        margin-top: 2px;
    }

    #curriculum-search-root .card-header_cs::after {
        content: '';
        flex: 1 0 100%;
        order: 2;
        height: 0;
        margin: 0;
        pointer-events: none;
    }

    #curriculum-search-root .card-header-main_cs,
    #curriculum-search-root .card-header-actions_cs,
    #curriculum-search-root .card-title_cs {
        display: contents;
    }

    #curriculum-search-root .card-title_cs .tag_cs {
        order: 3;
        flex: 0 0 auto;
    }

    #curriculum-search-root .card-chevron-btn_cs {
        order: 1;
        flex: 0 0 auto;
        align-self: start;
        height: 20px;
        margin-left: 8px;
        margin-right: -10px;
    }

    #curriculum-search-root .card-provider-tools_cs {
        display: flex;
        align-items: center;
        gap: 8px;
        order: 1;
        flex: 0 0 auto;
        align-self: start;
        margin-left: auto;
        margin-bottom: 0;
        max-width: none;
    }

    #curriculum-search-root .card-title-line_cs {
        flex: 0 1 auto;
        min-width: 0;
        max-width: calc(100% - 210px);
    }

    #curriculum-search-root .card-content_cs {
        padding-left: 16px;
        padding-right: 16px;
        min-width: 0;
    }

    #curriculum-search-root .expand-top_cs,
    #curriculum-search-root .expand-main_cs,
    #curriculum-search-root .expand-columns_cs {
        display: flex;
        flex-direction: column;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        grid-template-columns: minmax(0, 1fr);
    }

    #curriculum-search-root .expand-main-foot_cs {
        flex-direction: column;
        align-items: stretch;
    }

    #curriculum-search-root .expand-desc_cs,
    #curriculum-search-root .expand-version_cs,
    #curriculum-search-root .expand-meta_cs,
    #curriculum-search-root .expand-col_cs {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    #curriculum-search-root .card-section-label_cs,
    #curriculum-search-root .section-text_cs,
    #curriculum-search-root .meta-block_cs {
        word-break: normal;
        overflow-wrap: break-word;
        white-space: normal;
    }
}

@media (max-width: 640px) {
    #curriculum-search-root .card-header_cs {
        row-gap: 8px;
        padding-bottom: 8px;
    }

    /* Keep each collapsed card detail on its own row on narrow phones. */
    #curriculum-search-root .curriculum-card_cs:not(.is-expanded_cs) .card-header_cs {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 32px;
    }

    #curriculum-search-root .curriculum-card_cs:not(.is-expanded_cs) .card-header_cs::after {
        display: none;
    }

    #curriculum-search-root .curriculum-card_cs:not(.is-expanded_cs) .curriculum-name_cs {
        grid-column: 1;
        grid-row: 1;
        max-width: 100%;
    }

    #curriculum-search-root .curriculum-card_cs:not(.is-expanded_cs) .card-chevron-btn_cs {
        grid-column: 2;
        grid-row: 1;
    }

    #curriculum-search-root .curriculum-card_cs:not(.is-expanded_cs) .provider-name_cs {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    #curriculum-search-root .curriculum-card_cs:not(.is-expanded_cs) .card-tags_cs {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        grid-column: 1 / -1;
        grid-row: 3;
        min-width: 0;
    }

    #curriculum-search-root .curriculum-card_cs:not(.is-expanded_cs) .card-provider-tools_cs {
        grid-column: 1 / -1;
        grid-row: 4;
    }

    #curriculum-search-root .card-chevron-btn_cs {
        margin-left: auto;
    }

    #curriculum-search-root .card-provider-tools_cs {
        display: flex;
        align-items: center;
        gap: 8px;
        order: 3;
        flex: 0 0 auto;
        align-self: auto;
        margin-left: 0;
        margin-bottom: 0;
        max-width: none;
    }

    #curriculum-search-root .align-chip-row_cs {
        margin-top: 10px;
    }

    #curriculum-search-root .align-groups_cs,
    #curriculum-search-root .align-group_cs {
        width: 100%;
        max-width: 100%;
    }

    #curriculum-search-root .align-groups_cs {
        flex-direction: column;
        flex-wrap: nowrap;
    }

    #curriculum-search-root .align-group_cs {
        border-right: none;
        padding: 8px 0 12px;
        border-bottom: 1px solid #d0d0d0;
    }

    #curriculum-search-root .align-group_cs:first-child {
        padding-top: 0;
    }

    #curriculum-search-root .align-group_cs:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    #curriculum-search-root .card-title-line_cs {
        display: contents;
    }

    #curriculum-search-root .card-title_cs .curriculum-name_cs {
        order: 1;
        flex: 1 1 0;
        min-width: 0;
        max-width: calc(100% - 28px);
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
    }

    #curriculum-search-root .card-title_cs.is-title-wrapped_cs .curriculum-name_cs {
        flex-basis: 0;
    }

    #curriculum-search-root .card-title_cs .provider-sep_cs {
        display: none;
    }

    #curriculum-search-root .card-title_cs .provider-name_cs {
        order: 3;
        flex: 0 1 auto;
        min-width: 0;
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
    }

    #curriculum-search-root .card-title_cs,
    #curriculum-search-root .card-title_cs .curriculum-name_cs,
    #curriculum-search-root .card-title_cs .provider-sep_cs {
        font-size: 18px;
    }

    #curriculum-search-root .card-title_cs .provider-name_cs {
        font-size: 14px;
    }

    #curriculum-search-root .results-count_cs {
        font-size: 22px;
    }

    #curriculum-search-root .data-source-option_cs span {
        padding: 8px 10px;
        font-size: 12px;
        white-space: nowrap;
    }

    #curriculum-search-root .hide-on-small_cs {
        display: none;
    }

    #curriculum-search-root .lesson-card_cs {
        flex-basis: 100%;
        max-width: 100%;
    }
}

@media (max-width: 980px) {
    #curriculum-search-root .csta-sort-btn {
        justify-content: center;
    }

    #curriculum-search-root .results-sort-btn-text_cs {
        flex: 0 1 auto;
        align-items: center;
        text-align: center;
    }

    #curriculum-search-root .header-actions_cs .open-close-cards-label_cs {
        flex: 0 1 auto;
        text-align: center;
    }
}
