/**
 * CSTA Standards Search - Dynamic (Styles)
 * Styles for the dynamic search UI: layout, filters sidebar, standard cards, sections
 * (boundaries, implementation, interdisciplinary, progressions, resources), modals,
 * glossary links, progressions timeline, responsive and loader/toast.
 * All rules are scoped under #csta-search-dynamic-root_test where needed to avoid conflicts.
 */
/* ===== FONT IMPORT ===== */
@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300..700&display=swap');
/* ===== SCOPED TO DYNAMIC PLUGIN: root has id="csta-search-dynamic-root" to avoid conflicts when multiple CSTA plugins are active ===== */
/* ===== CSS VARIABLES (colors, shadows, transitions used across the plugin) ===== */
:root {
    --primary-teal: #00b3c9;
    --primary-blue: #008eff;
    --pink: #ff1493;
    --light-purple: #f4ebff;
    --light-green: #e8ffe4;
    --light-yellow: #fff3df;
    --light-magenta: #ffe7fb;
    --light-lavender: #f3f0ff;
    --bg-main: #f5f7fb;
    --bg-white: #ffffff;
    /*--text-dark: #1f2937;*/
    --text-dark: #000000;
    --text-gray: #6b7280;
    --text-light: #9ca3af;
    --border-color: #e5e7eb;
    --border-dark: #000000;
    --vivid-cyan: #01d3ff;
    --shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
    --shadow-hover: 0 8px 20px rgba(15, 23, 42, 0.12);
    --transition: all 250ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===== RESET & BASE (box-sizing, body, line-height for result area) ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-white);
    color: var(--text-dark);
}
.csta-search-result_test,
.csta-search-result_test button,
.csta-search-result_test input[type=text]{
    line-height: 1.4;
}
/*.csta-new-search_test{
    font-family: var(--global-heading-font-family);
}*/
.filter-panel-heading_test,
.card-title_test,
.resource-title_test,
.progression-card-text_test,
.results-count_test{
    font-family: var(--global-heading-font-family);
}
.progression-card-active_test .progression-card-text_test{
    font-weight: 900;
}
/* ===== LAYOUT CONTAINER (max-width, padding; no top padding when no admin bar) ===== */
/* Match theme shell width to CSTA Search Dynamic (https://cstastg.wpengine.com/csta-search-dynamic/) on any page using this shortcode — not tied to a single page ID. */
body:has(#csta-search-dynamic-root_test) .content-container.site-container {
    max-width: 1572px;
}
.container_test {
    /*max-width: 1400px;*/
    margin: 0 auto;
    padding: 15px 0 60px;
}
/* Same content width as https://cstastg.wpengine.com/csta-search-dynamic/ (theme .content-container.site-container = 1572px) */
#csta-search-dynamic-root_test.container_test {
    max-width: 1572px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}
/* Logged-out: no admin bar – start content at top (no top padding); sidebar/results bar stick at 0 */
body:not(.admin-bar) #csta-search-dynamic-root_test.container {
    padding-top: 0;
}
body:not(.admin-bar) #csta-search-dynamic-root_test .filter-card_test {
    top: 0 !important;
}

.main-wrapper_test {
    display: flex;
    gap: 40px;
}

/* ===== HEADER SECTION ===== */
.page-header_test {
    margin-bottom: 32px;
}

#csta-search-dynamic-root_test .search-page-title_test {
    font-size: 48px;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.header-info_test {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    position: relative;
}

.results-count_test {
    font-size: 28px;
    font-weight: 900;
    color: var(--text-dark);
    flex-shrink: 0;
}
.results-sort-wrap_test {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 12px;
    flex-shrink: 0;
}
/* Stack matches DOWNLOAD: same btn height + inline-flex (theme .header-actions_test .btn-cs_test height 39px). */
.results-sort-wrap_test > .dropdown-toggle_test > .btn-cs_test.btn-primary-cs_test {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}
.results-sort-icon_test {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 24px;
    min-width: 24px;
    height: 100%;
    gap: 1px;
}
.results-sort-icon_test .fa-arrow-up,
.results-sort-icon_test .fa-arrow-down {
    display: block;
    font-size: 13px;
    line-height: 1;
    width: 1em;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.results-sort-icon_test .fa-arrow-up {
    margin-bottom: -1px;
}
.results-sort-btn-text_test {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    line-height: 1.15;
    white-space: normal;
    text-align: left;
}
.results-sort-by-line_test {
    font-size: 10px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.2;
}
.results-sort-suffix_test {
    font-size: 14px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.2;
}

.header-actions_test {
    display: flex;
    gap: 12px;
    align-items: center;
    overflow: visible;
    margin-left: auto;
    flex-shrink: 0;
}
.header-actions_test .btn-cs_test{
    height: 39px;
}
/* ===== BUTTONS ===== */
.btn-cs_test {
    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(--transition);
    letter-spacing: 0;
    border-radius: 0 !important;
}

.btn-primary-cs_test {
    background: #01d3ff !important;
    color: var(--text-dark) !important;
    box-shadow: 0 2px 8px rgba(0, 179, 201, 0.2);
}
.view-pinned-btn_test .fa-thumbtack{
    transform: rotate(40deg);
}

.btn-primary-cs_test:hover {
    background: #01d3ff !important;
    box-shadow: 0 4px 12px rgba(0, 179, 201, 0.3);
    transform: translateY(-2px);
    color: var(--text-dark) !important;
}

.btn-primary-cs_test:focus {
    outline: none;
}

/* Keyboard focus: high-contrast ring on primary toolbar controls (not hover lift/shadow). */
#csta-search-dynamic-root_test .filter-heading_test .btn-cs_test.btn-primary-cs_test:focus-visible,
#csta-search-dynamic-root_test #sortBtn_dynamic_test:focus-visible,
#csta-search-dynamic-root_test #pinnedBtn_dynamic_test:focus-visible,
#csta-search-dynamic-root_test #clearPinnedBtn_dynamic_test:focus-visible,
#csta-search-dynamic-root_test #downloadBtn_dynamic_test:focus-visible,
#csta-search-dynamic-root_test #cstaSettingsBtn_dynamic_test:focus-visible {
    background: #01d3ff !important;
    color: var(--text-dark) !important;
    transform: none;
    box-shadow: 0 0 0 2px #111, 0 0 0 4px #fff, 0 0 0 6px #111;
}

.btn-primary-cs_test:disabled,
.btn-primary-cs_test.disabled_test {
    background: #e5e7eb !important;
    color: #9ca3af !important;
    cursor: not-allowed !important;
    opacity: 0.6;
    box-shadow: none !important;
    transform: none !important;
}

.btn-primary-cs_test:disabled:hover,
.btn-primary-cs_test.disabled_test:hover {
    background: #e5e7eb !important;
    color: #9ca3af !important;
    transform: none !important;
    box-shadow: none !important;
}

.btn-secondary-cs_test {
    background: white;
    color: var(--text-dark);
    border: 1px solid var(--border-color);
    position: relative;
}

.btn-secondary-cs_test:hover {
    background: #fafbfc;
    border-color: #d1d5db;
}

.dropdown-toggle_test {
    position: relative;
}

.dropdown-menu_test {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-top: 8px;
    box-shadow: var(--shadow);
    min-width: 160px;
    z-index: 50;
}

#downloadMenu_dynamic_test {
    z-index: 50;
}

.dropdown-menu_test.active_test {
    display: block;
}

.dropdown-menu_test a {
    display: block;
    padding: 12px 16px;
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    font-size: 14px;
}

.dropdown-menu_test a:hover {
    background: var(--bg-main);
    color: var(--primary-teal);
}

/* Skip link: visible on keyboard focus (WCAG bypass block) */
#csta-search-dynamic-root_test {
    position: relative;
}
#csta-search-dynamic-root_test .csta-skip-link_test {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: 100000;
    padding: 12px 20px;
    background: var(--bg-white);
    color: var(--primary-teal);
    font-weight: 700;
    text-decoration: underline;
    border: 2px solid var(--primary-teal);
    border-radius: 4px;
}
#csta-search-dynamic-root_test .csta-skip-link_test:focus {
    left: 16px;
    top: 16px;
    width: auto;
    height: auto;
    overflow: visible;
}

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

/* ===== SIDEBAR: FILTERS (filter card, headings, checkbox groups, search input) ===== */
#csta-search-dynamic-root_test .sidebar_test {
    width: 300px;
    flex-shrink: 0;
    overflow: visible;
    z-index: 1;
}

/* Sidebar filter card sticks at browser top until main content ends */
.filter-card_test {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 24px);
    overflow-x: hidden;
    overflow-y: hidden;
    z-index: 10;
}
body.admin-bar .filter-card_test {
    top: 24px;
    max-height: calc(100vh - 48px);
}

.filter-card-scroll_test {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding-right: 10px;
}

.filter-panel-heading_test{
    display: flex;
    align-items: center;
    font-size: 28px;
    font-weight: 900;
    gap: 10px;
    padding-bottom: 19px;
    margin-bottom: 26px;
    border-bottom: 2px solid #000;
    color: #000;
    padding-top: 25px;
    flex-wrap: nowrap;
    overflow: visible;
}
.filter-heading-label_test{
    display: flex;
    gap: 3px;
    align-items: center;
}
.filter-panel-heading_test.filter-heading_test{
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 6;
    background: var(--bg-white);
}
.filter-icon-label_test, .filter-icon-label-box_test{
    width: 30px;
    height: 30px;
}
.filter-panel-heading_test > * {
    flex-shrink: 0;
}

.filter-panel-heading_test img {
    flex-shrink: 0;
}

.filter-panel-heading_test span.checkbox-help_test {
    flex-shrink: 0;
}

.filter-panel-heading_test .reset-btn-inline_test {
    margin-left: 0;
    font-size: 14px !important;
    font-weight: 600 !important;
    padding: 8px 14px !important;
    height: auto;
    white-space: nowrap !important;
    flex-shrink: 0;
    min-width: fit-content;
    width: auto;
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    line-height: 1;
    overflow: visible;
}

.filter-panel-heading_test .reset-btn-inline_test i {
    flex-shrink: 0;
    font-size: 14px;
}

.filter-panel-heading_test .reset-btn-inline_test,
.filter-panel-heading_test .reset-btn-inline_test * {
    white-space: nowrap !important;
}

.filter-notice_test {
    color: var(--text-dark);
    margin-bottom: 12px;
}

.filter-reset_test {
    color: #0e5df8;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 15px;
    display: inline-block;
    margin-bottom: 10px;
}

.filter-reset_test:hover {
    color: #0095a8;
    text-decoration: underline;
}

.filter-section_test {
    margin-bottom: 15px;
    padding-bottom: 3px;
    border-bottom: 1px solid var(--border-dark);
    overflow: visible;
}

.filter-section_test:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

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

.filter-label_test .info-icon_test {
    width: 18px;
    height: 18px;
    background: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    cursor: help;
}
#csta-search-dynamic-root_test .csta-sort-icon {
    font-size: 16px;
    line-height: 1;
    min-width: 16px;
}
#csta-search-dynamic-root_test .csta-sort-btn {
    min-width: 150px;
    height: 39px;
    padding: 6px 10px;
    gap: 6px;
    align-items: center;
    justify-content: flex-start;
}
/* ===== ACCORDION STYLING (filter sections expand/collapse, toggle icons) ===== */
.accordion-header_test {
    cursor: pointer;
    user-select: none;
    justify-content: space-between;
    margin-bottom: 12px;
}

/* Results bar: stay above cards when scrolling (works logged in and logged out) */
/* Default top: 0 for logged-out users (no admin bar); WordPress adds body.admin-bar when logged in */
.search-result-main_test{
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 2px solid #000;
    padding-top: 25px;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--bg-white);
    box-shadow: 0 4px 0 0 var(--bg-white);
    isolation: isolate;
}
/* When WordPress admin bar is present, stick below it */
body.admin-bar .search-result-main_test {
    top: 24px;
}
body.admin-bar .search-result-main_test.is-fixed-fallback_test {
    top: 24px;
}

/* Ensure main content has a stacking context so bar (1000) stays above list (0) regardless of theme/login state */
#csta-search-dynamic-root_test .main-content_test{
    position: relative;
    z-index: 0;
}

.main-content_test .standard-list-container_test{
    position: relative;
    z-index: 0;
}

/* Fallback when position:sticky is broken (e.g_test. theme overflow when logged out) - applied by JS */
.search-result-main_test.is-fixed-fallback_test {
    position: fixed !important;
    margin-bottom: 0;
}
.search-result-main-spacer_test {
    flex-shrink: 0;
    width: 100%;
}

.accordion-header_test:hover {
    opacity: 0.8;
}

.accordion-toggle_test {
    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;
    transition: var(--transition);
    flex-shrink: 0;
    letter-spacing: 0;
}

.accordion-toggle_test:hover, .accordion-toggle_test:focus {
    background: #01d3ff;
    /*transform: scale(1.1);*/
    color: var(--text-dark);
}

.accordion-toggle_test i {
    display: block;
}

.accordion-toggle_test.active_test {
    background: #01d3ff;
}

.accordion-content_test {
    overflow: visible;
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
    margin-bottom: 15px;
}

.accordion-content_test:not(.expanded_test) {
    max-height: 0;
    opacity: 0;
}

.accordion-content_test.expanded_test {
    max-height: 5000px;
    opacity: 1;
}

.accordion-selected-items_test {
    display: none;
    margin: 6px 0 10px;
}

.accordion-selected-item_test {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 6px;
    cursor: pointer;
    font-size: 14px;
}

.accordion-selected-item_test input[type="checkbox"] {
    width: 16px !important;
    height: 16px !important;
    min-width: 16px;
    min-height: 16px;
    margin: 0;
}

.accordion-selected-label_test {
    color: var(--text-dark);
}

.search-input-wrapper_test {
    position: relative;
    width: 100%;
}

#csta-search-dynamic-root_test .search-box_test {
    width: 100%;
    padding: 14px 40px 14px 12px;
    border: 2px solid var(--border-dark);
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    transition: var(--transition);
}

#csta-search-dynamic-root_test .search-box_test:focus {
    outline: none;
    border-color: var(--primary-teal);
    box-shadow: 0 0 0 3px rgba(0, 179, 201, 0.1);
}
.pillars-dispositions-divider_test {
    width: 2px;
    flex-shrink: 0;
    align-self: stretch;
    background: #dce9ff;
    flex: 0 0 2px;
}
.search-icon_test {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-dark);
    font-size: 20px;
    pointer-events: none;
}

.checkbox-group_test {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 10px;
    overflow: visible;
}
.checkbox-help_test,
.toggle-help_test {
    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: 18px;
    font-weight: normal;
}

/* A11y converts ? spans to buttons; reset theme button styles so they look like before */
#csta-search-dynamic-root_test button.checkbox-help_test,
#csta-search-dynamic-root_test button.toggle-help_test {
    background: #e6e6e6;
    color: #000;
    font-size: 12px;
    height: 16px;
    width: 16px;
    min-width: 16px;
    min-height: 16px;
    max-width: 16px;
    max-height: 16px;
    border-radius: 10px;
    text-align: center;
    display: inline-block;
    cursor: help;
    position: relative;
    margin-left: 4px;
    line-height: 16px;
    font-weight: normal;
    padding: 0;
    border: none;
    box-shadow: none;
    font-family: inherit;
    vertical-align: middle;
    appearance: none;
    -webkit-appearance: none;
    letter-spacing: normal;
    text-transform: none;
}

.checkbox-help_test:hover,
.toggle-help_test:hover,
#csta-search-dynamic-root_test button.checkbox-help_test:hover,
#csta-search-dynamic-root_test button.toggle-help_test:hover {
    background: #d0d0d0;
}

#csta-search-dynamic-root_test button.checkbox-help_test:focus-visible,
#csta-search-dynamic-root_test button.toggle-help_test:focus-visible {
    outline: 2px solid var(--primary-teal);
    outline-offset: 2px;
}

/* Tooltip styling */
.checkbox-help_test[data-tooltip],
.toggle-help_test[data-tooltip] {
    position: relative;
}

.checkbox-help_test[data-tooltip]::before,
.toggle-help_test[data-tooltip]::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 12px;
    background: #000;
    color: #fff;
    font-size: 12px;
    font-family: inherit;
    border-radius: 4px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease-in-out;
    z-index: 10000;
    max-width: 250px;
    white-space: normal;
    text-align: left;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    word-wrap: break-word;
    width: 200px;
}

.checkbox-help_test[data-tooltip]::after,
.toggle-help_test[data-tooltip]::after {
    content: '';
    position: absolute;
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease-in-out;
    z-index: 10001;
}

.checkbox-help_test[data-tooltip]:hover::before,
.toggle-help_test[data-tooltip]:hover::before,
.checkbox-help_test[data-tooltip]:hover::after,
.toggle-help_test[data-tooltip]:hover::after {
    opacity: 1;
}

/*
 * One tooltip only: setupTooltips() in search_new_test.js shows a fixed overlay (.csta-tooltip-js_test).
 * Hide CSS ::before/::after here so hover does not duplicate the same data-tooltip text.
 */
#csta-search-dynamic-root_test .checkbox-help_test[data-tooltip]::before,
#csta-search-dynamic-root_test .checkbox-help_test[data-tooltip]::after,
#csta-search-dynamic-root_test .toggle-help_test[data-tooltip]::before,
#csta-search-dynamic-root_test .toggle-help_test[data-tooltip]::after {
    content: none !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    opacity: 0 !important;
}

/* JS tooltip overlay (appended to body, never clipped by overflow) */
.csta-tooltip-js_test {
    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;
    white-space: normal;
    text-align: left;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    pointer-events: none;
}

@media (max-width: 480px) {
    #csta-search-dynamic-root_test .csta-ds-openclose-pill_test {
        gap: 2px;
        padding: 3px 5px;
    }

    #csta-search-dynamic-root_test .csta-ds-openclose-close-text_test,
    #csta-search-dynamic-root_test .csta-ds-openclose-open-text_test {
        font-size: 11px;
        padding: 1px 3px;
    }

    #csta-search-dynamic-root_test .csta-ds-openclose-sep_test {
        font-size: 11px;
        margin: 0 1px;
    }
}

/* Resources on narrow viewports: stack all cards (no carousel arrows). */
@media (max-width: 991px) {
    #csta-search-dynamic-root_test .section-resources_test .resources-carousel_test,
    #progressionModal_dynamic_test .section-resources_test .resources-carousel_test {
        flex-direction: column;
        gap: 6px;
    }

    #csta-search-dynamic-root_test .section-resources_test .resource-nav-arrow_test,
    #progressionModal_dynamic_test .section-resources_test .resource-nav-arrow_test {
        display: none !important;
    }

    #csta-search-dynamic-root_test .section-resources_test .resources-viewport_test,
    #progressionModal_dynamic_test .section-resources_test .resources-viewport_test {
        overflow: visible;
    }

    #csta-search-dynamic-root_test .section-resources_test .resources-scroll_test,
    #progressionModal_dynamic_test .section-resources_test .resources-scroll_test {
        display: flex !important;
        flex-direction: column !important;
        gap: 6px !important;
        transform: none !important;
        width: 100%;
    }

    #csta-search-dynamic-root_test .section-resources_test .resources-scroll_test .resource-card_test,
    #progressionModal_dynamic_test .section-resources_test .resources-scroll_test .resource-card_test {
        flex: none !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    #csta-search-dynamic-root_test .section-resources_test .section-content_test.expanded_test {
        overflow: visible !important;
        max-height: none !important;
    }

    /* Let expanded card body show full resource stacks (theme/mobile clipping). */
    #csta-search-dynamic-root_test .standard-card_test .card-content_test.expanded_test {
        overflow: visible !important;
        max-height: none !important;
    }

    #csta-search-dynamic-root_test .standard-card_test {
        overflow: visible !important;
    }

    #csta-search-dynamic-root_test .section-resources_test .resource-thumb_test {
        min-height: 0;
    }

    #csta-search-dynamic-root_test .section-resources_test .resource-thumb_test img {
        aspect-ratio: 16 / 9;
        object-fit: cover;
    }
}

/* Resources hover: keep full purple border visible (header stacking + overflow clipping). */
#csta-search-dynamic-root_test .section-resources_test .section-header_test,
#progressionModal_dynamic_test .section-resources_test .section-header_test {
    z-index: 0;
}

#csta-search-dynamic-root_test .section-resources_test .section-content_test.expanded_test,
#progressionModal_dynamic_test .section-resources_test .section-content_test.expanded_test {
    overflow: visible !important;
    position: relative;
    z-index: 1;
}

/* Glossary focus rings on first content line: keep above section header bar, not clipped. */
#csta-search-dynamic-root_test .section-content_test.expanded_test,
#progressionModal_dynamic_test .section-content_test.expanded_test {
    overflow: visible;
    position: relative;
    z-index: 1;
    padding-top: 4px;
}

#csta-search-dynamic-root_test .section-header_test,
#progressionModal_dynamic_test .section-header_test {
    position: relative;
    z-index: 0;
}

#csta-search-dynamic-root_test .section-resources_test .resources-viewport_test,
#progressionModal_dynamic_test .section-resources_test .resources-viewport_test {
    overflow: visible;
}

/* Room inside the carousel for translateY(-4px) without clipping the top border. */
#csta-search-dynamic-root_test .section-resources_test .resources-carousel_test,
#progressionModal_dynamic_test .section-resources_test .resources-carousel_test {
    padding-top: 10px;
}

#csta-search-dynamic-root_test .section-resources_test .resources-scroll_test,
#progressionModal_dynamic_test .section-resources_test .resources-scroll_test {
    padding-top: 4px;
    margin-top: -4px;
}

#csta-search-dynamic-root_test .section-resources_test .resource-card_test:hover,
#progressionModal_dynamic_test .section-resources_test .resource-card_test:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
    position: relative;
    z-index: 2;
}

/* Expanded cards: do not clip the Resources block (standard-card uses overflow:hidden). */
#csta-search-dynamic-root_test .standard-card_test .card-content_test.expanded_test:has(.section-resources_test) {
    overflow: visible;
}

/* Override font for tooltips inside filter-panel-heading to match other tooltips */
.filter-panel-heading_test .checkbox-help_test[data-tooltip]::before {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-weight: normal;
    line-height: 1.4;
}

.checkbox-group_test:last-child {
    margin-bottom: 0px;
}

.checkbox-item_test {
    display: flex;
    align-items: flex-start;
    gap: 3px;
    cursor: pointer;
    margin-left: 30px;
    position: relative;
    overflow: visible;
}
.checkbox-group-head_test.checkbox-item_test{
    margin-left: 0;
}

.checkbox-item_test input[type="checkbox"],
.accordion-selected-item_test input[type="checkbox"]{
    width: 18px !important;
    height: 18px !important;
    min-width: 18px;
    min-height: 18px;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: 2px solid var(--border-dark);
    border-radius: 0;
    background-color: transparent;
    position: relative;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
    margin-top: 2px;
}

.checkbox-item_test input[type="checkbox"]:checked,
.accordion-selected-item_test input[type="checkbox"]:checked{
    background-color: var(--border-dark) !important;
    border-color: var(--border-dark) !important;
}

.checkbox-item_test input[type="checkbox"]:checked::after,
.accordion-selected-item_test input[type="checkbox"]:checked::after{
    content: '✓';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.checkbox-label_test {
    color: var(--text-dark);
    cursor: pointer;
    /*flex: 1;*/
}

.checkbox-count_test {
    font-size: 12px;
    color: #737373;
    font-style: italic;
}

.select-control_test {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    color: var(--text-dark);
    background: white;
    cursor: pointer;
    transition: var(--transition);
}
.interdisciplinary-filter_test .checkbox-item_test{
    margin-left: 0;
}

.implementation-examples-filter_test .checkbox-item_test,
#csta-search-dynamic-root_test .dispositions-filter_test .checkbox-item_test{
    margin-left: 0;
}
.ai-standards-filter_test .checkbox-item_test{
    margin-left: 0;
}

/* Swapped filter rows: force same checkbox/text alignment as standard rows. */
#csta-search-dynamic-root_test .grade-specialty-swapped_test > .checkbox-group_test > .checkbox-group-head_test.checkbox-item_test,
#csta-search-dynamic-root_test .specialty-filter-swapped_test > .checkbox-item_test {
    align-items: center !important;
    gap: 3px !important;
}

#csta-search-dynamic-root_test .grade-specialty-swapped_test > .checkbox-group_test > .checkbox-group-head_test.checkbox-item_test {
    margin-left: 30px !important;
}

#csta-search-dynamic-root_test .specialty-filter-swapped_test > .checkbox-item_test {
    margin-left: 0 !important;
}

#csta-search-dynamic-root_test .grade-specialty-swapped_test > .checkbox-group_test > .checkbox-group-head_test.checkbox-item_test input[type="checkbox"],
#csta-search-dynamic-root_test .specialty-filter-swapped_test > .checkbox-item_test input[type="checkbox"] {
    margin-top: 0 !important;
}

#csta-search-dynamic-root_test .grade-specialty-swapped_test > .checkbox-group_test {
    margin-bottom: 0 !important;
    gap: 0 !important;
}

#csta-search-dynamic-root_test .grade-specialty-swapped_test > .checkbox-group_test > .specialty-container_test {
    margin-top: 4px;
}

#csta-search-dynamic-root_test .grade-specialty-swapped_test > .checkbox-group_test > .specialty-container_test .checkbox-item_test {
    margin-left: 56px !important;
}

#csta-search-dynamic-root_test .specialty-filter-swapped_test {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#csta-search-dynamic-root_test .grade-specialty-swapped_test {
    gap: 12px !important;
}

#csta-search-dynamic-root_test .grade-specialty-swapped_test > .checkbox-group_test > .checkbox-group-head_test.checkbox-item_test .checkbox-label_test,
#csta-search-dynamic-root_test .specialty-filter-swapped_test > .checkbox-item_test .checkbox-label_test {
    line-height: 1.2;
}
.reset-btn-container_test{
    margin: 15px 0;
}
.select-control_test:focus {
    outline: none;
    border-color: var(--primary-teal);
}

/* ===== TOGGLE SWITCHES (Show/Hide section toggles for boundaries, implementation, etc.) ===== */
.show-hide-section_test{
    margin-top: 40px;
}
.toggle-help-text_test {
    margin-bottom: 25px;
}

/* Work in progress label */
.work-in-progress-label_test {
    margin-top: 12px;
    margin-left: 30px;
    font-size: 14px;
    color: var(--text-gray);
    font-style: italic;
}

body.csta-modal-open_test {
    overflow: hidden !important;
}
/* Same typography as accordion section bars (.section-title_test); scoped to .csta-new-search_test so modals match (they sit outside #csta-search-dynamic-root_test). */
.csta-new-search_test .pillar-practices-heading_test,
.csta-new-search_test .dispositions-heading_test {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.3;
}
/* Show All / Hide All Button */
        /*.show-hide-all-container_test {
            margin-top: 20px;
            padding-top: 20px;
            border-top: 1px solid var(--border-dark);
        }*/
        
        .show-hide-all-btn_test {
            letter-spacing: 0;
            padding: 2px;
            background: var(--bg-white);
            border: 2px solid var(--border-dark);
            font-size: 14px;
            font-weight: 500;
            color: var(--text-dark);
            cursor: pointer;
            transition: var(--transition);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            text-transform: initial;
            width: 161px;
            border-radius: 20px;
            min-height: 32px;
        }
        
        .show-hide-all-btn_test:hover {
            background: var(--bg-white);
            border: 2px solid var(--border-dark);
            color: var(--text-dark);
        }
        .show-hide-all-btn_test:focus {
            background: var(--bg-white);
            border: 2px solid var(--border-dark);
            color: var(--text-dark);
        }
        
        .show-hide-all-btn_test .separator_test {
            color: var(--border-dark);
            margin: 0 4px;
        }
        
        .show-hide-all-btn_test .show-all-text_test,
        .show-hide-all-btn_test .hide-all-text_test {
            cursor: pointer;
        }
        
        .show-hide-all-btn_test .show-all-text_test:hover,
        .show-hide-all-btn_test .hide-all-text_test:hover {
            color: var(--text-dark);
        }

        .toggle-item_test {
            display: flex;
            margin-bottom: 12px;
            gap: 10px;
            position: relative;
        }
        
        .toggle-item_test > div:last-child {
            position: relative;
            overflow: visible;
        }
        
        .toggle-item_test > div {
            position: relative;
        }

        .toggle-label_test {
            color: var(--text-dark);
        }

        .switch_test {
            position: relative;
            width: 44px;
            min-width: 44px;
            height: 24px;
            background: white;
            border-radius: 12px;
            cursor: pointer;
            transition: background 250ms;
            border: 2px solid #000;
        }

        .switch_test.active_test {
            background: var(--primary-teal);
        }

        .switch_test::after {
            content: '';
            position: absolute;
            width: 12px;
            height: 12px;
            background: #000;
            border-radius: 50%;
            top: 4px;
            left: 4px;
            transition: left 250ms;
        }

        .switch_test.active_test::after {
            left: 24px;
        }
        .boundaries-and-practices_test .switch_test.active_test{
            background: #dfebff;
        }
        .implementation-examples_test .switch_test.active_test{
            background: #dffcdc;
        }
        .interdisciplinary-connections_test .switch_test.active_test{
            background: #feebcd;
        }
        .progressions_test .switch_test.active_test{
            background: #fdceea;
        }
        .resources_test .switch_test.active_test{
            background: #ebd2ef;
        }

        /* ===== MAIN CONTENT (results bar, actions, standard list container) ===== */
        .main-content_test {
            flex: 1;
            min-width: 0;
        }

        .standards-list_test {
            display: flex;
            flex-direction: column;
            gap: 16px;
        }

        /*.standard-list-container_test {
            max-height: 1600px;
            overflow-y: auto;
        }*/

        /* ===== PAGINATION (infinite-scroll sentinel / load more area) ===== */
        .csta-pagination_test {
            margin-top: 24px;
            padding: 16px 0;
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
            border-top: 1px solid var(--border-color);
        }
        .csta-pagination-info_test {
            font-size: 14px;
            color: var(--text-gray);
        }
        .csta-pagination-nav_test {
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .csta-pagination-numbers_test {
            display: flex;
            align-items: center;
            gap: 4px;
        }
        .csta-pagination-btn_test {
            min-width: 36px;
            height: 36px;
            padding: 0 12px;
            font-size: 14px;
            font-weight: 600;
            color: var(--text-dark);
            background: var(--bg-white);
            border: 1px solid var(--border-color);
            border-radius: 8px;
            cursor: pointer;
            transition: var(--transition);
        }
        .csta-pagination-btn_test:hover:not(:disabled) {
            background: var(--primary-teal);
            color: white;
            border-color: var(--primary-teal);
        }
        .csta-pagination-btn_test:disabled,
        .csta-pagination-btn_test.disabled_test {
            opacity: 0.5;
            cursor: not-allowed;
        }
        .csta-pagination-btn-active_test {
            background: var(--primary-teal);
            color: white;
            border-color: var(--primary-teal);
        }
        .csta-pagination-ellipsis_test {
            padding: 0 4px;
            color: var(--text-gray);
            font-size: 14px;
        }

        /* ===== STANDARD CARD (card layout, left bar, border; specialty = gray bar/outline) ===== */
        .standard-card_test {
            background: white;
            border-radius: 16px;
            overflow: hidden;
            transition: var(--transition);
            border: 2px solid var(--vivid-cyan);
            display: flex;
            font-size: 14px;
        }
        .standard-left-panel_test{
            background: #01d3ff;
            padding: 10px 5px;
        }
        /* Specialty standards use gray outline and left bar */
        .standard-card_test.standard-card-specialty_test {
            border-color: #adadad;
        }
        .standard-card_test.standard-card-specialty_test .standard-left-panel_test {
            background: #adadad;
        }

        .standard-card_test:hover {
            box-shadow: var(--shadow-hover);
        }

        .card-header_test {
            padding: 16px 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 16px;
            cursor: pointer;
            transition: var(--transition);
            user-select: none;
        }

        .card-header_test:hover {
            background: linear-gradient(135deg, rgba(0, 179, 201, 0.12) 0%, rgba(0, 142, 255, 0.12) 100%);
        }

        .card-left_test {
            flex: 1;
            min-width: 0;
        }

        .card-code-tags_test {
            display: flex;
            gap: 8px;
            align-items: center;
            flex-wrap: wrap;
            margin-bottom: 12px;
        }

        .tag_test {
            display: inline-block;
            padding: 4px 10px;
            background: var(--primary-blue);
            color: var(--text-dark);
            border-radius: 12px;
            font-size: 12px;
            font-weight: 500;
    cursor: default;
        }
.card-code-tags_test,
.card-code-tags_test .grade-name_test,
.card-code-tags_test .tag_test {
    cursor: default;
}
        .grade-tag_test{
            background: #f2f2f2;
        }
        .concept-tag_test{
            background: #9aedff;
        }
        .subconcept-tag_test{
            background: #cdf6ff;
        }

        .card-title_test {
            font-weight: 900;
            color: var(--text-dark);
            font-size: 18px;
        }

        .card-actions_test {
            display: flex;
            gap: 12px;
            align-items: center;
        }

        .card-icon-btn_test {
            background: none;
            border: none;
            cursor: pointer;
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-gray);
            font-size: 18px;
            transition: var(--transition);
            border-radius: 8px;
            padding: 0;
        }
        .card-icon-btn_test:focus{
            background: none;
        }

        .card-icon-btn_test .fa-thumbtack{
            transform: rotate(40deg);
            color: #fff; /* Makes the main icon body transparent */
            -webkit-text-stroke-width: 1.5px; /* Sets the stroke thickness */
            -webkit-text-stroke-color: #000; /* Sets the stroke color */
            /* For cross-browser compatibility (less support): */
            text-stroke-width: 1.5px;
            text-stroke-color: #000
        }
        .card-icon-pin_test{
            color: #ffffff;
        }

        /* Pinned state: pin icon renders black (SVG assets may be teal/blue). */
        #csta-search-dynamic-root_test .card-icon-pin_test.pinned_test .pin-icon_test {
            filter: brightness(0) saturate(100%);
        }

        .progression-modal-pin_test.pinned .pin-icon_test,
        .progression-modal-pin_test.pinned_test .pin-icon_test {
            filter: brightness(0) saturate(100%);
        }

        .card-icon-btn_test:hover {
            color: var(--primary-teal);
            background: rgba(0, 179, 201, 0.08);
        }

        /* Expansion caret only (not pin): dark icon for contrast on white / light-blue card header hover */
        #csta-search-dynamic-root_test .card-icon-btn_test:has(.fa-chevron-down):not(.card-icon-pin_test) {
            color: var(--text-dark);
        }

        #csta-search-dynamic-root_test .card-icon-btn_test:has(.fa-chevron-down):not(.card-icon-pin_test):hover,
        #csta-search-dynamic-root_test .card-header_test:hover .card-icon-btn_test:has(.fa-chevron-down):not(.card-icon-pin_test) {
            color: #004d56;
            background: rgba(0, 77, 86, 0.12);
        }

        #csta-search-dynamic-root_test .card-icon-btn_test:has(.fa-chevron-down):not(.card-icon-pin_test):focus,
        #csta-search-dynamic-root_test .card-icon-btn_test:has(.fa-chevron-down):not(.card-icon-pin_test):focus-visible {
            color: var(--text-dark);
            background: rgba(0, 0, 0, 0.08);
            outline: 2px solid #111;
            outline-offset: 2px;
        }

        #csta-search-dynamic-root_test .card-header_test:hover .card-icon-btn_test:has(.fa-chevron-down):not(.card-icon-pin_test):focus,
        #csta-search-dynamic-root_test .card-header_test:hover .card-icon-btn_test:has(.fa-chevron-down):not(.card-icon-pin_test):focus-visible,
        #csta-search-dynamic-root_test .card-icon-btn_test:has(.fa-chevron-down):not(.card-icon-pin_test):hover:focus,
        #csta-search-dynamic-root_test .card-icon-btn_test:has(.fa-chevron-down):not(.card-icon-pin_test):hover:focus-visible {
            color: var(--text-dark);
            background: rgba(0, 0, 0, 0.12);
        }

        .card-icon-btn_test.pinned_test {
            color: var(--text-dark);
        }
        .card-icon-btn_test.pinned_test .fa-thumbtack{
            color: var(--text-dark);
        }

.card-copy-inline-btn_test {
    border: none;
    background: transparent;
    color: #000;
    cursor: pointer;
    padding: 0 2px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    height: 20px;
    width: 24px;
}

.card-copy-inline-btn_test:hover,
.card-copy-inline-btn_test:focus {
    color: #000;
    background: transparent;
}

        .card-icon-btn_test .fa-chevron-down {
            transition: transform 300ms ease-in-out;
        }

        .card-icon-btn_test .fa-chevron-down.rotated_test {
            transform: rotate(180deg);
        }

        .card-content_test {
            max-height: 0;
            overflow: hidden;
            transition: max-height 300ms ease-in-out;
        }

        .card-content_test.expanded_test {
            max-height: 5000px;
            border-top: 1px solid var(--vivid-cyan);
        }

        .card-body_test {
            padding: 24px;
            display: flex;
            flex-direction: column;
            gap: 25px;
        }

        /* ===== CONTENT SECTIONS (section headers, toggles, section text) ===== */
        /*.section_test {
            border-radius: 12px;
            padding: 16px;
        }*/

        .section_test.hidden_test {
            display: none;
        }

        .section-title_test {
            font-size: 16px;
            font-weight: 700;
            text-transform: uppercase;
            color: var(--text-dark);
            margin-bottom: 12px;
        }

        /* ===== CARD SECTION ACCORDION (expand/collapse within each card) ===== */
        .card-section-controls_test {
            display: flex;
            justify-content: space-around;
            align-items: center;
            gap: 5px;
            padding: 2px;
            border: 2px solid var(--border-dark);
            background: var(--bg-white);
            width: 194px;
            border-radius: 20px;
            min-height: 32px;
            height: auto;
        }

        .card-section-controls_test.hidden_test {
            display: none;
        }

        .section-control-btn_test {
            padding: 0;
            font-size: 14px;
            font-weight: 500;
            color: var(--text-dark);
            background: transparent;
            border: none;
            cursor: pointer;
            transition: var(--transition);
            text-transform: none;
            letter-spacing: 0;
        }

        .section-control-btn_test:hover {
            color: #01d3ff;
            background: transparent;
        }
        .section-control-btn_test:focus {
            color: #000;
            background: transparent;
        }

        .section-control-btn-toggle_test {
            padding: 0;
            font-size: 14px;
            font-weight: 500;
            color: var(--text-dark);
            background: transparent;
            border: none;
            cursor: pointer;
            transition: var(--transition);
            text-transform: none;
            letter-spacing: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 4px;
            width: 100%;
            height: 100%;
        }

        .section-control-btn-toggle_test:hover {
            background: transparent;
        }

        .section-control-btn-toggle_test:focus {
            background: transparent;
        }

        #csta-search-dynamic-root_test .section-control-btn-toggle_test:focus-visible,
        #progressionModal_dynamic_test .section-control-btn-toggle_test:focus-visible,
        .csta-new-search_test .section-control-btn-toggle_test:focus-visible {
            outline: 2px solid var(--primary-teal);
            outline-offset: 2px;
            box-shadow: 0 0 0 3px rgba(0, 179, 201, 0.35);
            border-radius: 18px;
        }

        #csta-search-dynamic-root_test .card-section-controls_test:has(.section-control-btn-toggle_test:focus-visible),
        #progressionModal_dynamic_test .card-section-controls_test:has(.section-control-btn-toggle_test:focus-visible),
        .csta-new-search_test .card-section-controls_test:has(.section-control-btn-toggle_test:focus-visible) {
            border-color: var(--primary-teal);
        }

        .section-control-btn-toggle_test .collapse-all-text_test,
        .section-control-btn-toggle_test .expand-all-text_test {
            cursor: pointer;
            transition: var(--transition);
        }

        .section-control-btn-toggle_test .collapse-all-text_test:hover,
        .section-control-btn-toggle_test .expand-all-text_test:hover {
            color: var(--text-dark);
        }
        
        .card-section-controls_test .separator_test {
            color: var(--border-dark);
            margin: 0 4px;
            font-weight: 400;
        }

        .section-header_test {
            display: flex;
            align-items: center;
            justify-content: flex-start;
            gap: 10px;
            cursor: pointer;
            user-select: none;
            padding: 8px;
            border-radius: 25px;
            transition: var(--transition);
            position: relative;
            z-index: 0;
        }

        .section-header_test:hover {
            opacity: 0.9;
        }

        .section-toggle_test {
            width: 24px;
            height: 24px;
            min-width: 24px;
            border-radius: 50%;
            border: none;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            padding: 0;
            font-size: 12px;
            transition: var(--transition);
            flex-shrink: 0;
            background: var(--primary-blue);
            color: white;
            font-weight: bold;
            letter-spacing: 0;
        }

        .section-toggle_test:hover {
            opacity: 0.9;
            transform: scale(1.1);
        }

        .section-toggle_test.active_test {
            color: white;
        }
        
        /* Section header backgrounds and toggle colors */
        .section-boundaries_test .section-header_test {
            background: #dce9ff;
        }
        .section-boundaries_test .section-toggle_test {
            background: #0e5df8;
        }
        
        .section-implementation_test .section-header_test {
            background: #dffcdc;
        }
        .section-implementation_test .section-toggle_test {
            background: #5df14d;
            color: var(--text-dark);
        }
        
        .section-interdisciplinary_test .section-header_test {
            background: #feebcd;
        }
        .section-interdisciplinary_test .section-toggle_test {
            background: #fe9900;
            color: var(--text-dark);
        }
        
        .section-progressions_test .section-header_test {
            background: #fdceea;
        }
        .section-progressions_test .section-toggle_test {
            background: #f90696;
        }
        
        .section-resources_test .section-header_test {
            background: #ebd2ef;
        }
        .section-resources_test .section-toggle_test {
            background: #9d1db2;
        }

        .section-toggle_test i {
            display: block;
        }

        .section-content_test {
            overflow: hidden;
            transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
            margin-top: 20px;
            padding-left: 8px;
            margin-right: 25px;
        }

        .section-content_test:not(.expanded_test) {
            max-height: 0;
            opacity: 0;
            margin-top: 0;
        }

        .section-content_test.expanded_test {
            max-height: 5000px;
            opacity: 1;
            overflow: visible;
            position: relative;
            z-index: 1;
            /* Room for glossary-term :focus-visible outline (2px + 2px offset) on first line */
            padding-top: 4px;
        }

        /* Section title styles - background is now on section-header */
        .section-title_test {
            margin: 0;
            padding: 0;
        }

        /* ===== PILLARS & PRACTICES + DISPOSITIONS ===== */
        .section_test.section-pillars_test > h4,
        .section-pillars_test .pillar-practices-heading_test,
        .section-pillars_test .dispositions-heading_test {
            font-weight: 700;
        }
        .pillars-dispositions-row_test {
            display: flex;
            align-items: stretch;
            gap: 0 12px;
            min-width: 0;
            width: 100%;
        }
        .pillars-col_test {
            flex: 0 0 60%;
            min-width: 0;
            max-width: 60%;
            container-type: inline-size;
            container-name: pillars-col_test;
        }
        .dispositions-col_test {
            flex: 1 1 40%;
            min-width: 0;
            max-width: 40%;
        }
        .pillars-grid_test {
            display: grid;
            grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
            gap: 20px;
            min-width: 0;
        }

        .pillar-item_test {
            display: flex;
            gap: 12px;
            min-width: 0;
            max-width: 100%;
            /* Match reference: simple row, no card border */
            padding: 4px 0;
        }

        .pillar-icon_test {
            width: 50px;
            height: 50px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 31px;
            flex-shrink: 0;
        }
        
        .pillar-icon_test img {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }

        .pillar-content_test {
            min-width: 0;
            flex: 1 1 auto;
            overflow: hidden;
            overflow-wrap: break-word;
        }

        .pillar-content_test h4 {
            font-weight: 600;
            margin-bottom: 2px;
            color: var(--text-dark);
            font-size: 16px;
            min-width: 0;
            overflow-wrap: break-word;
            word-break: normal;
            -webkit-hyphens: auto;
            -ms-hyphens: auto;
            hyphens: auto;
        }

        .pillar-content_test p {
            color: var(--text-dark);
            margin: 0;
            min-width: 0;
            overflow-wrap: break-word;
            word-break: normal;
            -webkit-hyphens: auto;
            -ms-hyphens: auto;
            hyphens: auto;
        }

        @container pillars-col_test (max-width: 420px) {
            .pillars-grid_test {
                grid-template-columns: 1fr;
                gap: 16px;
            }
        }
        /* Dispositions: 2-up when space allows; each title stays on one line */
        .dispositions-grid_test {
            display: flex;
            flex-direction: row;
            flex-wrap: wrap;
            align-items: center;
            align-content: flex-start;
            gap: 10px 24px;
            padding: 0;
            margin: 0;
            width: 100%;
        }
        .disposition-item_test {
            display: inline-flex;
            align-items: center;
            gap: 12px;
            flex: 0 0 auto;
            width: auto;
            max-width: none;
        }
        .disposition-icon-img_test,
        .disposition-icon-img-placeholder_test {
            width: 50px;
            height: 50px;
            flex-shrink: 0;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .disposition-icon-img_test {
            object-fit: contain;
        }
        .disposition-icon-img-placeholder_test {
            background: rgba(1, 211, 255, 0.08);
            border-radius: 10px;
        }
        .disposition-label_test {
            font-size: 15px;
            font-weight: 900;
            color: var(--text-dark);
            margin: 0;
            line-height: 1.3;
            flex: 0 1 auto;
            white-space: nowrap;
            overflow-wrap: normal;
            word-break: keep-all;
            hyphens: none;
        }
        .disposition-label_test .csta-sd-glossary-term_test {
            white-space: nowrap;
        }

        /* ===== IMPLEMENTATION EXAMPLES ===== */
        .examples-list_test {
            display: flex;
            flex-direction: column;
            gap: 20px;
            padding: 0;
            list-style: none;
        }

        .example-item_test {
            display: flex;
            gap: 15px;
            align-items: flex-start;
        }

        .example-icon_test {
            flex-shrink: 0;
            width: 50px;
            height: 50px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .example-icon_test img {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }

        .example-content_test {
            flex: 1;
        }

        .example-type_test {
            display: inline;
            font-weight: 600 !important;
            font-size: 16px;
            font-family: var(--global-heading-font-family);
            color: var(--text-dark);
        }

        .example-description_test {
            display: inline;
            line-height: 1.6;
            color: var(--text-dark);
        }

        .example-content_test p.example-description_test {
            display: block;
            margin: 10px 0 0 0;
            line-height: 1.6;
            color: var(--text-dark);
        }

        .example-content_test p.example-description_test:last-child {
            margin-bottom: 0;
        }

        /* ===== INTERDISCIPLINARY CONNECTIONS ===== */
        .interdisciplinary-grid_test {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
        }
        .interdisciplinary-item_test {
            display: flex;
            gap: 12px;
        }
        .inter-icon-box_test{
            font-size: 12px;
            background: transparent; /* remove pale orange behind icons */
            text-align: center;
            padding: 0;
            border-radius: 0;
            width: 52px;
        }


        .inter-icon-box_test img {
            width: 52px;
            height: auto;
            flex-shrink: 0;
        }


        .interdisciplinary-entry_test {
            margin-bottom: 1.25em;
        }
        .interdisciplinary-entry_test:last-child {
            margin-bottom: 0;
        }
        .interdisciplinary-standard_test {
            font-weight: 700;
            margin-bottom: 4px;
        }
        .interdisciplinary-content_test h4 {
            font-weight: 600;
            margin-bottom: 6px;
            color: var(--text-dark);
            font-size: 16px;
        }
        .interdisciplinary-content_test p {
            color: var(--text-dark);
        }
        .connections-grid_test {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
            gap: 12px;
        }

        .connection-card_test {
            background: white;
            border: 1px solid rgba(0, 0, 0, 0.08);
            border-radius: 10px;
            padding: 12px;
            text-align: center;
        }

        .connection-icon_test {
            font-size: 38px;
            margin-bottom: 8px;
        }

        .connection-label_test {
            font-size: 12px;
            font-weight: 600;
            color: var(--text-dark);
            margin-bottom: 6px;
        }

        .connection-desc_test {
            font-size: 12px;
            color: var(--text-gray);
        }

        /* ===== PROGRESSIONS (timeline labels, nav arrows, progression cards grid) ===== */
        .progression-instruction_test {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            margin-bottom: 24px;
            padding: 12px;
            background: rgba(0, 0, 0, 0.02);
            border-radius: 8px;
            font-size: 14px;
            color: var(--text-dark);
        }
        
        .progression-instruction_test .progression-icon_test {
            width: 31px;
            height: 31px;
            color: var(--text-dark);
            margin-top: 2px;
            flex-shrink: 0;
        }
        
        .progression-instruction_test .progression-link_test {
            color: var(--primary-blue);
            text-decoration: none;
        }
        
        .progression-instruction_test .progression-link_test:hover {
            text-decoration: underline;
        }
        
        .progression-timeline-wrapper_test {
            margin-bottom: 24px;
            position: relative;
        }
        
        .progression-timeline-labels_test {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 8px;
            position: relative;
            z-index: 2;
        }
        
        .progression-label_test {
            font-size: 12px;
            font-weight: 500;
            color: var(--text-dark);
            cursor: pointer;
            padding: 4px 8px;
            position: relative;
            transition: var(--transition);
            text-align: center;
            flex: 1;
        }

        .progression-label_test[role="tab"]:focus-visible {
            outline: 2px solid var(--primary-teal, #0d9488);
            outline-offset: 2px;
            border-radius: 4px;
            box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.25);
        }
        
        .progression-label_test.selected_test {
            font-weight: 600;
        }
        
        .progression-label_test.selected_test::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 0;
            right: 0;
            height: 6px;
            background: #ec4899;
            border-radius: 4px;
        }
        
        .progression-timeline-line_test {
            height: 2px;
            background: #e5e5e5;
            width: 100%;
            position: relative;
            top: -2px;
        }
        
        .section-progressions_test.progression-specialty_test .progression-timeline-line_test {
            background: #fdceea;
        }

        .progression-timeline-labels-specialty-foundation_test .progression-label-static_test {
            cursor: default;
        }

        /* Specialty foundation: three columns; each column stacks cards with vertical gap (mockup). */
        .progression-cards-grid_test.progression-cards-specialty-foundation_test {
            display: grid;
            grid-template-columns: 1fr 1fr 1fr;
            column-gap: 20px;
            row-gap: 0;
            align-items: start;
        }

        .progression-cards-specialty-foundation_test > .progression-specialty-foundation-col_test {
            display: flex;
            flex-direction: column;
            gap: 20px;
            min-width: 0;
            height: auto;
            min-height: 0;
            padding: 0;
            background: transparent;
            border: none;
        }

        .section-progressions_test.progression-specialty_test .progression-cards-specialty-foundation_test > .progression-specialty-foundation-col_test {
            background: transparent;
        }

        .progression-specialty-foundation-col_test > .progression-specialty-foundation-card_test {
            width: 100%;
            flex: 0 0 auto;
            height: auto;
            min-height: 120px;
            background: #fef3fa;
            border: none;
        }

        .section-progressions_test.progression-specialty_test .progression-specialty-foundation-col_test > .progression-specialty-foundation-card_test {
            background: #fef3fa;
        }

        .section-progressions_test.progression-specialty_test .progression-specialty-foundation-col_test > .progression-specialty-foundation-card_test.progression-card-active_test {
            background: #fdceea !important;
        }

        .progression-cards-container_test {
            display: flex;
            align-items: stretch;
            gap: 16px;
            position: relative;
        }
        
        .progression-cards-grid_test {
            display: grid;
            grid-template-columns: 1fr 1fr 1fr;
            column-gap: 16px;
            row-gap: 20px;
            align-items: start;
            flex: 1;
        }
        .progression-cards-grid_test.progression-cards-first-grade_test {
            grid-template-columns: 1fr 1fr;
        }
        .progression-cards-grid_test.progression-cards-last-grade_test {
            grid-template-columns: 1fr 1fr;
        }
        .progression-cards-grid_test.progression-cards-first-grade_test.progression-cards-last-grade_test {
            grid-template-columns: 1fr;
        }
        
        .progression-card-cell-empty_test {
            min-height: 0;
        }
        
        .progression-nav-arrow_test {
            background: none;
            border: none;
            cursor: pointer;
            color: var(--text-gray);
            font-size: 20px;
            padding: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: var(--transition);
            flex-shrink: 0;
            width: 40px;
        }
        
        .progression-nav-arrow_test:hover:not(:disabled) {
            color: var(--text-dark);
        }
        
        .progression-nav-arrow_test:disabled {
            opacity: 0.3;
            cursor: not-allowed;
            color: #000;
        }

        /* Specialty progressions: hide prev/next arrows on desktop (mobile shows them below). */
        .section-progressions_test.progression-specialty_test .progression-nav-arrow_test {
            display: none !important;
        }
        
        .progression-card_test {
            flex: 1;
            padding: 12px;
            border-radius: 8px;
            min-height: 120px;
            display: flex;
            flex-direction: column;
            gap: 0;
            justify-content: flex-start;
            position: relative;
            height: 100%;
        }
        
        .progression-card_test .progression-card-content_test {
            justify-content: flex-start;
        }
        
        .progression-card_test .progression-grade-cards_test {
            width: 100%;
        }
        
        /* Foundational: neutral gray progression cards */
        .progression-card-prev_test {
            background: #fef3fa;
            border: none;
        }
        
        .progression-card-prev_test.has-content_test {
            background: #fef3fa;
        }
        
        .progression-card-current_test {
            background: #fef3fa;
        }
        
        .progression-card-current_test:not(.progression-card-active_test) {
            background: #fef3fa;
        }
        
        .progression-card-next_test {
            background: #fef3fa;
            border: none;
        }
        
        .progression-card-next_test.empty_test {
            background: #fef3fa;
        }
        
        .progression-card-active_test {
            background: #fdceea !important;
        }
        
        /* Specialty standards only: only the active progression card is highlighted (darker pink); all others neutral */
        .section-progressions_test.progression-specialty_test .progression-card-prev_test,
        .section-progressions_test.progression-specialty_test .progression-card-prev_test.has-content_test {
            background: #fef3fa;
        }
        
        .section-progressions_test.progression-specialty_test .progression-card-current_test,
        .section-progressions_test.progression-specialty_test .progression-card-current_test:not(.progression-card-active_test) {
            background: #fef3fa;
        }
        
        .section-progressions_test.progression-specialty_test .progression-card-next_test,
        .section-progressions_test.progression-specialty_test .progression-card-next_test.empty_test {
            background: #fef3fa;
        }
        
        .section-progressions_test.progression-specialty_test .progression-card-active_test {
            background: #fdceea !important;
        }
        
        .progression-card-tag_test span{
            font-size: 12px;
            color: var(--text-black);
            font-weight: 500;
            background: #fff;
            padding: 2px 8px;
            border-radius: 12px;
            display: inline-block;
        }
        
        .progression-card-code_test {
            font-size: 12px;
            font-weight: 700;
            color: var(--text-dark);
        }
        
        .progression-card-text_test {
            font-size: 13px;
            color: var(--text-dark);
            flex: 1;
            font-weight: 500;
        }
        
        .progression-card-empty_test {
            font-size: 13px;
            color: var(--text-gray);
            font-style: italic;
            text-align: center;
            padding: 20px 0;
        }
        
        .progression-card-content_test {
            display: flex;
            flex-direction: column;
            gap: 8px;
            position: relative;
            flex: 1;
            cursor: pointer;
        }
        
        /* Multi-row layout for multiple standards in same grade */
        .progression-grade-cards_test {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }
        
        .progression-grade-cards_test .progression-card-content_test {
            padding: 0;
            margin: 0;
            flex: 0 0 auto;
        }
        
        .progression-grade-cards_test .progression-card-content_test:not(:last-child) {
            padding-bottom: 20px;
            margin-bottom: 0;
            border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        }
        
        .progression-grade-cards_test .progression-card-content_test:last-child {
            padding-bottom: 0;
            margin-bottom: 0;
        }
        
        .progression-card-expanded_test {
            margin-top: 12px;
            padding-top: 12px;
            border-top: 1px solid rgba(0, 0, 0, 0.1);
        }
        
        .progression-expand-button_test {
            background: none;
            border: none;
            cursor: pointer;
            color: var(--text-gray);
            font-size: 11px;
            padding: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: none;
            flex-shrink: 0;
            width: 32px;
            height: 32px;
            align-self: center;
            margin-top: auto;
        }
        
        .progression-expand-button_test:hover:not(:disabled) {
            color: var(--text-dark);
            background: none;
        }
        
        .progression-expand-button_test:active,
        .progression-expand-button_test:focus {
            background: none;
            outline: none;
            color: var(--text-gray);
        }
        
        .progression-expand-button_test:active:hover,
        .progression-expand-button_test:focus:hover {
            color: var(--text-dark);
        }
        
        .progression-expand-button_test:disabled {
            opacity: 0.3;
            cursor: not-allowed;
        }
        
        .progression-expand-button_test i {
            transition: transform 0.3s ease;
            color: inherit;
        }
        
        .progression-expand-button_test.expanded_test {
            color: var(--text-gray);
        }
        
        .progression-expand-button_test.expanded_test:active,
        .progression-expand-button_test.expanded_test:focus {
            color: var(--text-gray);
        }
        
        .progression-expand-button_test.expanded_test i {
            transform: rotate(180deg);
            color: inherit;
        }
        
        .progression-expand-button_test.expanded_test:hover:not(:disabled) {
            color: var(--text-dark);
        }
        
        /* Ensure expanded state does not change background color - preserve original state */
        .progression-card_test.progression-card-expanded-state_test {
            min-height: auto;
        }
        
        /* Active cards keep their active color when expanded (foundational = darker gray) */
        .progression-card-active_test.progression-card-expanded-state_test {
            background: #fdceea !important;
        }
        
        /* Prev cards keep their color when expanded (foundational = gray) */
        .progression-card-prev_test.progression-card-expanded-state_test {
            background: #fef3fa !important;
        }
        
        .progression-card-prev_test.has-content_test.progression-card-expanded-state_test {
            background: #fef3fa !important;
        }
        
        .progression-card-current_test.progression-card-expanded-state_test {
            background: #fef3fa !important;
        }
        
        .progression-card-current_test:not(.progression-card-active_test).progression-card-expanded-state_test {
            background: #fef3fa !important;
        }
        
        .progression-card-next_test.progression-card-expanded-state_test {
            background: #fef3fa !important;
        }
        
        .progression-card-next_test.empty_test.progression-card-expanded-state_test {
            background: #fef3fa !important;
        }
        
        /* Specialty: when expanded, only active card stays pink; others neutral */
        .section-progressions_test.progression-specialty_test .progression-card-prev_test.progression-card-expanded-state_test,
        .section-progressions_test.progression-specialty_test .progression-card-prev_test.has-content_test.progression-card-expanded-state_test {
            background: #fef3fa !important;
        }
        
        .section-progressions_test.progression-specialty_test .progression-card-current_test.progression-card-expanded-state_test,
        .section-progressions_test.progression-specialty_test .progression-card-current_test:not(.progression-card-active_test).progression-card-expanded-state_test {
            background: #fef3fa !important;
        }
        
        .section-progressions_test.progression-specialty_test .progression-card-next_test.progression-card-expanded-state_test {
            background: #fef3fa !important;
        }
        
        .section-progressions_test.progression-specialty_test .progression-card-active_test.progression-card-expanded-state_test {
            background: #fdceea !important;
        }
        
        .progression-card-details_test {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }
        
        .progression-detail-section_test {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }
        
        .progression-detail-label_test {
            font-size: 11px;
            font-weight: 600;
            color: var(--text-dark);
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        
        .progression-detail-value_test {
            font-size: 12px;
            color: var(--text-dark);
            line-height: 1.5;
        }

        /* ===== RESOURCES (resource cards in each standard) ===== */
        .resource-body_test{
            display: flex;
            flex-flow: column;
            gap: 8px;
            justify-content: space-between;
            flex-grow: 1;
            padding: 10px;
        }
        /* Resources: up to 3 cards visible; arrows when more (like Progressions). */
        .resources-carousel_test {
            display: flex;
            align-items: stretch;
            gap: 8px;
            padding-top: 8px;
            padding-bottom: 6px;
        }

        .resources-viewport_test {
            flex: 1;
            min-width: 0;
            overflow: visible;
            container-type: inline-size;
        }

        .resources-scroll_test {
            display: flex;
            gap: 6px;
            align-items: stretch;
            transition: transform 0.25s ease;
            will-change: transform;
        }

        .resources-scroll_test img {
            max-width: 100%;
        }

        .resources-scroll_test .resource-card_test {
            flex: 0 0 calc((100cqw - 12px) / 3);
            min-width: 0;
            width: auto;
            max-width: none;
        }

        .resource-nav-arrow_test {
            background: none;
            border: none;
            cursor: pointer;
            color: var(--text-gray);
            font-size: 20px;
            padding: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: var(--transition);
            flex-shrink: 0;
            width: 40px;
        }

        .resource-nav-arrow_test:hover:not(:disabled),
        .resource-nav-arrow_test:focus:not(:disabled) {
            color: var(--text-dark);
        }

        .resource-nav-arrow_test:disabled {
            opacity: 0.3;
            cursor: not-allowed;
            color: #000;
        }

        .resource-card_test {
            min-width: 0;
            width: 100%;
            max-width: 100%;
            box-sizing: border-box;
            background: white;
            border: 2px solid #ce8ed8;
            border-radius: 12px;
            overflow: hidden;
            transition: var(--transition);
            flex-direction: column;
            display: flex;
            cursor: pointer;
            text-decoration: none;
            color: inherit;
        }

        .resource-card_test:hover {
            box-shadow: var(--shadow-hover);
            transform: translateY(-4px);
            position: relative;
            z-index: 2;
        }

        .resource-thumb_test {
            display: flex;
            flex: 0 0 auto;
            padding: 8px 12px;
            min-height: 0;
            align-items: flex-start;
            justify-content: center;
        }

        .resource-thumb_test img {
            width: 100%;
            height: auto;
            max-width: 100%;
            aspect-ratio: 16 / 9;
            object-fit: cover;
            display: block;
        }

        .resource-title_test {
            font-weight: 900;
            color: var(--text-dark);
        }

        .resource-desc_test {
            font-size: 14px;
        }

        .resource-tags_test {
            display: flex;
            gap: 6px;
            flex-wrap: wrap;
        }

        .resource-tag_test {
            font-size: 12px;
            padding: 3px 6px;
            border: 2px solid #000;
            border-radius: 4px;
            font-weight: 500;
        }

        .resource-link_test {
            font-size: 12px;
            color: var(--primary-teal);
            text-decoration: none;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
        }

        .resource-link_test:hover {
            color: #0095a8;
            text-decoration: underline;
        }

        /* ===== MODAL: PINNED (pinned standards list modal) ===== */
        .modal-overlay_test.progression-details-modal_test {
            margin-bottom: 0 !important;
            background: transparent;
            pointer-events: auto;
        }
        .modal-overlay_test.progression-details-modal_test .modal_test {
            pointer-events: auto;
        }
        .modal-overlay_test {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.5);
            z-index: 1000;
            align-items: center;
            justify-content: center;
            animation: fadeIn 200ms ease-out;
        }

        .modal-overlay_test.active_test {
            display: flex;
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        .modal_test {
            background: white;
            border-radius: 16px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
            max-width: 900px;
            width: 90%;
            overflow-y: auto;
            animation: slideUp 300ms ease-out;
            border: 2px solid var(--vivid-cyan);
        }

        @keyframes slideUp {
            from { transform: translateY(20px); opacity: 0; }
            to { transform: translateY(0); opacity: 1; }
        }

        .modal-header_test {
            padding: 24px;
            border-bottom: 1px solid var(--border-color);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .modal-title_test {
            font-size: 20px;
            font-weight: 700;
            color: var(--text-dark);
        }

        .modal-close_test {
            background: none;
            border: none;
            font-size: 20px;
            color: var(--text-gray);
            cursor: pointer;
            transition: var(--transition);
            padding: 0;
        }
        .progression-modal-header_test .modal-close_test {
            border: none;
            font-size: 20px;
            color: var(--text-dark);
            cursor: pointer;
            transition: var(--transition);
            padding: 0;
            background: var(--vivid-cyan);
            position: absolute;
            right: 0;
            top: 0;
            width: 50px;
            height: 50px;
            border-bottom-left-radius: 10px;
            border-top-right-radius: 10px;
        }
        .progression-modal-header_test .modal-close_test:hover {
            color: var(--text-dark);
            background: var(--vivid-cyan);
        }
        .progression-modal-header_test .modal-close_test{
            font-size: xx-large;
        }

        .modal-close_test:hover {
            color: var(--text-dark);
            background: transparent;
        }

        .modal-body_test {
            padding: 24px;
        }

        .pinned-item_test {
            padding: 12px;
            border: 1px solid var(--border-color);
            border-radius: 8px;
            margin-bottom: 12px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .pinned-item-code_test {
            font-weight: 600;
            color: var(--primary-teal);
            font-size: 14px;
        }

        .pinned-item-title_test {
            font-size: 14px;
            color: var(--text-gray);
            margin-top: 4px;
        }

        .modal-footer_test {
            padding: 16px 24px;
            border-top: 1px solid var(--border-color);
            text-align: right;
        }

        .btn-close-modal_test {
            padding: 8px 16px;
            background: #01d3ff;
            color: var(--text-dark);
            border: none;
            cursor: pointer;
            font-weight: 600;
            transition: var(--transition);
            letter-spacing: 0;
        }

        .btn-close-modal_test:hover {
            background: #01d3ff;
            color: var(--text-dark);
        }

        /* ===== GLOSSARY TERM LINKS & POPUP (button styled as inline link; popup overlay) ===== */
        .csta-sd-glossary-term-desc_test {
            position: absolute;
            width: 1px;
            height: 1px;
            padding: 0;
            margin: -1px;
            overflow: hidden;
            clip: rect(0, 0, 0, 0);
            white-space: nowrap;
            border: 0;
        }
        button.csta-sd-glossary-term_test {
            display: inline;
            padding: 0;
            margin: 0;
            border: none;
            background: transparent;
            box-shadow: none;
            font: inherit;
            letter-spacing: inherit;
            text-transform: inherit;
            text-align: inherit;
            line-height: inherit;
            vertical-align: baseline;
            -webkit-appearance: none;
            appearance: none;
        }
        .csta-sd-glossary-punct-group_test {
            white-space: nowrap;
        }
        button.csta-sd-glossary-term_test:hover,
        button.csta-sd-glossary-term_test:active,
        button.csta-sd-glossary-term_test:focus {
            background: transparent !important;
            border: none;
            box-shadow: none;
        }
        button.csta-sd-glossary-term_test:focus {
            outline: none;
        }
        button.csta-sd-glossary-term_test:focus-visible {
            outline: 2px solid var(--primary-teal);
            outline-offset: 2px;
            background: transparent;
        }
        .section-boundaries_test .csta-sd-glossary-term_test,
        .section-boundaries_test .section-text_test .csta-sd-glossary-term_test,
        .section-implementation_test .csta-sd-glossary-term_test,
        .section-implementation_test .section-text_test .csta-sd-glossary-term_test,
        .section-interdisciplinary_test .csta-sd-glossary-term_test,
        .section-interdisciplinary_test .section-text_test .csta-sd-glossary-term_test,
        .card-title_test .csta-sd-glossary-term_test {
            color: #000000;
            text-decoration: underline;
            cursor: pointer;
        }
        #csta-search-dynamic-root_test .section-boundaries_test .csta-sd-glossary-term_test:hover,
        #csta-search-dynamic-root_test .section-implementation_test .csta-sd-glossary-term_test:hover,
        #csta-search-dynamic-root_test .section-interdisciplinary_test .csta-sd-glossary-term_test:hover,
        #csta-search-dynamic-root_test .card-title_test .csta-sd-glossary-term_test:hover,
        #progressionModal_dynamic_test .csta-sd-glossary-term_test:hover,
        .csta-new-search_test .csta-sd-glossary-term_test:hover {
            color: #0e5df8;
            text-decoration: underline;
            background: transparent !important;
            border: none;
            box-shadow: none;
        }
        .csta-sd-glossary-popup-overlay_test {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            z-index: 10001;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }
        .csta-sd-glossary-popup-backdrop_test {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.5);
        }
        .csta-sd-glossary-popup-box_test {
            position: relative;
            background: #fff;
            border: 2px solid #000;
            border-radius: 8px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
            width: 90%;
            max-width: 720px;
            max-height: 80vh;
            overflow: hidden;
            display: flex;
            flex-direction: column;
        }
        .csta-sd-glossary-popup-header_test {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            padding: 24px 56px 20px 30px;
        }
        .csta-sd-glossary-popup-title_test {
            font-size: 28px;
            font-weight: 800;
            color: #000;
            margin: 0;
            line-height: 1.2;
        }
        .csta-sd-glossary-popup-close_test {
            position: absolute;
            top: 0;
            right: 0;
            width: 48px;
            height: 48px;
            background: #000;
            border: none;
            color: #fff;
            font-size: 20px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0;
            border-bottom-left-radius: 10px;
        }
        .csta-sd-glossary-popup-close_test:hover {
            background: #333;
            color: #fff;
        }
        .csta-sd-glossary-popup-close_test i {
            font-size: 20px;
        }
        .csta-sd-glossary-popup-divider_test {
            height: 1px;
            background: #000;
            margin: 0 30px;
        }
        .csta-sd-glossary-popup-divider-above-footer_test {
            width: 50%;
            margin-left: 30px;
            margin-right: auto;
        }
        .csta-sd-glossary-popup-body_test {
            padding: 16px 30px;
            overflow-y: auto;
            font-size: 14px;
            line-height: 1.6;
            color: #000;
            flex: 1;
            font-weight: 400;
        }
        .csta-sd-glossary-popup-term-label_test {
            color: #000;
            font-weight: 700;
        }
        .csta-sd-glossary-popup-footer_test {
            padding: 10px 24px 24px 30px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: nowrap;
            gap: 16px;
        }
        .csta-sd-glossary-popup-sources_test {
            margin: 0;
            font-size: 12px;
            color: #000;
            flex: 1;
            min-width: 0;
        }
        .csta-sd-glossary-popup-sources-label_test {
            font-weight: 700;
            color: #000;
        }
        .csta-sd-glossary-popup-sources-value_test {
            font-weight: 400;
            color: #000;
        }
        .csta-sd-glossary-popup-sources-value_test a.csta-sd-glossary-popup-source-link_test {
            color: #0b5cab;
            text-decoration: underline;
            font-weight: 600;
        }
        .csta-sd-glossary-popup-sources-value_test a.csta-sd-glossary-popup-source-link_test:hover,
        .csta-sd-glossary-popup-sources-value_test a.csta-sd-glossary-popup-source-link_test:focus {
            text-decoration: underline;
        }
        .csta-sd-glossary-popup-view-btn_test {
            display: inline-block;
            padding: 6px 12px;
            background: #fff;
            border: 2px solid #000;
            border-radius: 0;
            color: #000;
            font-size: 16px;
            font-weight: 700;
            letter-spacing: normal;
            text-transform: uppercase;
            text-decoration: none;
            cursor: pointer;
            text-align: center;
            flex-shrink: 0;
            margin-left: auto;
        }
        .csta-sd-glossary-popup-view-btn_test:hover {
            background: #fef3fa;
            color: #000;
            border-color: #000;
        }

        /* ===== FILTERS BUTTON (Mobile: toggle sidebar) ===== */
        .filters-toggle-btn_test {
            display: none;
            height: 39px;
            cursor: pointer;
            margin-bottom: 16px;
            background: #01d3ff;
            color: #000;
            border: none;
            cursor: pointer;
            margin-bottom: 16px;
            letter-spacing: 0;
            padding: 8px 16px;
            font-size: 14px;
        }
        #csta-search-dynamic-root_test .filterlogo_test{
            width: 230px;
            height: auto;
        }

        .progression-modal-content_test{
            display: flex;
            flex-direction: column;
            gap: 20px;
        }
        .progression-modal-header_test{
            padding: 16px 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 16px;
            transition: var(--transition);
            border-bottom: 1px solid var(--vivid-cyan);
            position: relative;
        }
        #progressionModalHeader_dynamic_test{
            display: flex;
            align-items: flex-start;
            gap: 14px;
            flex: 1;
            min-width: 0;
        }
        #progressionModalHeader_dynamic_test .progression-modal-pin_test{
            flex-shrink: 0;
            margin-top: 2px;
        }
        #progressionModalHeader_dynamic_test .progression-modal-header-tags_test{
            flex: 1;
            min-width: 0;
        }
        #progressionModalHeader_dynamic_test .progression-modal-header-tags_test .card-code-tags_test{
            margin-bottom: 8px;
        }
        .progression-modal-body_test{
            flex: 1;
            min-height: 0;
            overflow-y: auto;
            max-height: calc(90vh - 140px);
            color: var(--text-dark);
            font-size: 14px;
        }
        .modal_test.progression-details-modal-inner_test{
            max-width: 1400px;
            width: 92%;
            max-height: 90vh;
            overflow-y: initial;
            overflow: hidden;
            display: flex;
            flex-direction: column;
        }

        .hide-shadow_test{
            position: absolute;
            background: white;
            height: 100%;
            width: 25px;
        }
        .hide-shadow-left_test{
            left: -25px;
        }
        .hide-shadow-right_test{
            right: -25px;
        }

        /* ===== RESPONSIVE DESIGN (breakpoints for sidebar, cards, typography) ===== */
        @media (max-width: 1024px) {
            #csta-search-dynamic-root_test .header-info_test.search-result-main_test{
                display: flex;
                align-items: center;
            }
            .container_test {
                padding: 16px;
            }

            .main-wrapper_test {
                gap: 24px;
            }

            #csta-search-dynamic-root_test .sidebar_test {
                width: 240px;
            }
            .pillars-dispositions-row_test {
                flex-flow: column;
            }
            .pillars-dispositions-divider_test {
                width: 100%;
                height: 4px;
                min-height: 2px;
                margin: 12px 0 !important;
            }
            .dispositions-col_test {
                flex: 1 1 auto;
                width: 100%;
                max-width: 100%;
                min-width: 0;
            }
            .dispositions-grid_test {
                display: grid;
                grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
                gap: 16px;
                min-width: 0;
            }
            .disposition-item_test {
                display: flex;
                align-items: flex-start;
                gap: 12px;
                min-width: 0;
                width: 100%;
                max-width: 100%;
            }
            .disposition-label_test {
                white-space: normal;
                overflow-wrap: anywhere;
                word-break: break-word;
                hyphens: auto;
                min-width: 0;
                flex: 1 1 auto;
            }
            .disposition-label_test .csta-sd-glossary-term_test {
                display: inline;
                max-width: 100%;
                white-space: normal;
                overflow-wrap: anywhere;
                word-break: break-word;
            }
            #csta-search-dynamic-root_test.container {
                padding: 0px;
            }
        }
        @media (max-width: 768px) {
            .dispositions-grid_test {
                grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
            }
            #csta-search-dynamic-root_test.container {
                padding: 0px;
            }
            .sidebar_test.open_test{
                overflow: visible;
            }
            .hide-on-small_test{
                display: none;
            }
            .show-hide-all-container_test{
                margin-bottom: 30px;
            }
            .container_test {
                padding: 12px;
            }
            .container_test.csta-new-search_test{
                padding: 0px 0 50px;
            }

            .search-page-title_test {
                font-size: 34px;
                margin-bottom: 5px !important;
            }
            .search-result-main_test {
                margin-bottom: 20px;
                padding-bottom: 20px;
                padding-top: 5px;
                position: static;
                top: auto;
            }
            .results-count_test {
                font-size: 26px;
            }
            
            /* Progression section mobile styles - show only active card with arrows */
            /* Show navigation arrows on mobile - make them smaller to give more space to card */
            .section-progressions_test .progression-nav-arrow_test {
                display: flex !important;
                flex: 0 0 30px;
                width: 30px;
                min-width: 30px;
                padding: 8px 4px;
            }
            
            .section-progressions_test .progression-cards-container_test {
                overflow-x: hidden;
                overflow-y: visible;
                display: flex;
                position: relative;
                align-items: stretch;
                gap: 0;
            }
            
            /* Convert grid to single column on mobile - show only current card column */
            .section-progressions_test .progression-cards-grid_test {
                display: grid;
                grid-template-columns: 1fr;
                grid-template-rows: auto;
                row-gap: 20px;
                column-gap: 0;
                flex: 1;
            }
            
            /* Foundational / non-foundation specialty: hide prev and next columns; show current only */
            .section-progressions_test .progression-cards-grid_test:not(.progression-cards-specialty-foundation_test) .progression-card-prev_test,
            .section-progressions_test .progression-cards-grid_test:not(.progression-cards-specialty-foundation_test) .progression-card-next_test,
            .section-progressions_test .progression-cards-grid_test:not(.progression-cards-specialty-foundation_test) .progression-card-cell-empty_test.progression-card-prev_test,
            .section-progressions_test .progression-cards-grid_test:not(.progression-cards-specialty-foundation_test) .progression-card-cell-empty_test.progression-card-next_test {
                display: none !important;
            }

            /* Specialty foundation: single-column swipe — one column visible, cards stacked vertically */
            .section-progressions_test .progression-cards-specialty-foundation_test {
                display: block !important;
                grid-template-columns: 1fr !important;
            }

            .section-progressions_test .progression-specialty-foundation-col_test {
                display: none !important;
                flex-direction: column;
                gap: 20px;
                width: 100%;
            }

            .section-progressions_test .progression-specialty-foundation-col_test.is-active-mobile-col_test {
                display: flex !important;
            }

            /* Specialty progressions: show arrows on mobile (overrides desktop hide) */
            .section-progressions_test.progression-specialty_test .progression-nav-arrow_test {
                display: flex !important;
                flex: 0 0 30px;
                width: 30px;
                min-width: 30px;
                padding: 8px 4px;
            }

            .section-progressions_test.progression-specialty-foundation-section_test .progression-nav-specialty-mobile_test {
                display: none !important;
            }
            
            /* Show only the current column cards - full width with arrows visible */
            .section-progressions_test .progression-card-current_test {
                width: 100%;
                max-width: 100%;
                box-sizing: border-box;
            }
            
            /* Hide empty cells in current column */
            .section-progressions_test .progression-card-cell-empty_test.progression-card-current_test {
                display: none !important;
            }

            .main-wrapper_test {
                flex-direction: column;
                gap: 0;
            }

            .sidebar_test {
                width: 100%;
                max-height: 0;
                overflow: hidden;
                transition: max-height 300ms ease-in-out;
                position: relative;
            }

            .sidebar_test.open_test {
                max-height: 1600px;
            }

            .filter-card_test {
                position: relative;
                top: 0;
                max-height: initial;
                overflow: visible;
                padding-right: 0;
            }

            .filter-card-scroll_test {
                overflow: visible;
                min-height: 0;
            }

            .filter-panel-heading_test.filter-heading_test{
                position: static;
                top: auto;
            }

            .filters-toggle-btn_test {
                display: flex;
                align-items: center;
                justify-content: center;
                gap: 8px;
            }

            .btn-cs_test {
                /*width: 100%;*/
                justify-content: center;
            }
            .header-actions_test > .btn-cs_test, .header-actions_test .dropdown-toggle_test{
                flex-grow: 1;
            }
            .dropdown-toggle_test .btn-cs_test {
                width: 100%;
            }

            .header-info_test {
                /*flex-direction: column;*/
                align-items: flex-start;
            }
            .results-sort-wrap_test {
                margin-left: 0;
                /*margin-top: 8px;*/
            }

            .results-count_test {
                /*width: 100%;*/
            }

            .header-actions_test {
                /*width: 100%;*/
            }

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

            .card-title_test {
                font-size: 14px;
            }


            .progression-label_test {
                padding: 4px 0px;
            }
            .filter-panel-heading_test {
                font-size: 26px;
            }
        }
        @media (max-width: 480px) {
            .header-actions_test{
                flex-flow: wrap;
            }
            .standard-left-panel_test{
                padding: 10px 3px;
            }
            .filter-panel-heading_test {
                font-size: 18px;
            }
            .interdisciplinary-grid_test {
                grid-template-columns: 1fr;
            }
            /*.card-actions_test{
                display: none;
            }*/
            .results-count_test {
                font-size: 18px;
            }
            .pillars-grid_test {
               grid-template-columns: 1fr; 
           }
           .search-page-title_test {
                font-size: 22px;
                margin-bottom: 10px !important;
            }

            .card-code-tags_test {
                gap: 8px;
            }

            .tag_test {
                font-size: 10px;
                padding: 3px 8px;
            }

            /*.section_test {
                padding: 12px;
            }*/

            .card-body_test {
                padding: 12px;
                gap: 16px;
            }

            .connections-grid_test {
                grid-template-columns: 1fr;
            }

            .card-header_test {
                padding: 12px;
                gap: 10px;
            }
            .pillars-dispositions-row_test {
                flex-direction: column;
            }
            .dispositions-col_test {
                flex: 1 1 auto;
                width: 100%;
                min-width: 0;
                max-width: 100%;
            }
            .dispositions-col_test .dispositions-grid_test {
                display: grid;
                grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
                gap: 16px;
                min-width: 0;
            }
            .disposition-item_test {
                display: flex;
                align-items: flex-start;
                gap: 12px;
                min-width: 0;
                width: 100%;
                max-width: 100%;
            }
            .disposition-label_test {
                white-space: normal;
                overflow-wrap: anywhere;
                word-break: break-word;
                hyphens: auto;
                min-width: 0;
                flex: 1 1 auto;
            }
            .disposition-label_test .csta-sd-glossary-term_test {
                display: inline;
                max-width: 100%;
                white-space: normal;
                overflow-wrap: anywhere;
                word-break: break-word;
            }
        }
        
        .mb-10_test {
            margin-bottom: 10px !important;
        }
        .grade-name_test{
            font-size: 14px;
            font-weight: 500;
        }
        .csta-search-result_test{
            color: var(--text-dark);
        }
        .csta-text-search_test{
            margin-bottom: 25px;
            border-bottom: 0;
        }
        .show-hide-section_test{
            border-bottom: none;
        }
        .section-header_test h3.section-title_test{
            margin-top: 0;
        }

        /* ===== LOADER (spinner and "Loading standards..." overlay) ===== */
        .csta-loader_test {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 60px 20px;
            min-height: 300px;
            transition: opacity 0.3s ease-in-out;
        }

        .csta-loader_test.hidden_test {
            display: none;
        }

        .csta-loading-more-message_test {
            text-align: center;
            color: var(--text-gray);
            font-size: 14px;
            font-weight: 600;
            padding: 10px 0 20px;
        }

        .csta-loading-more-message_test.hidden_test {
            display: none;
        }

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

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

        .loader-text_test {
            font-size: 16px;
            font-weight: 600;
            color: var(--text-dark);
            text-align: center;
        }

        /* ===== TOAST NOTIFICATION (success/feedback message) ===== */
        .csta-toast_test {
            position: fixed;
            bottom: 30px;
            right: 30px;
            background: var(--bg-white);
            border: 2px solid var(--vivid-cyan);
            border-radius: 12px;
            padding: 16px 20px;
            box-shadow: var(--shadow-hover);
            display: none;
            align-items: center;
            gap: 12px;
            z-index: 10000;
            min-width: 300px;
            max-width: 400px;
            animation: toastSlideIn 0.3s ease-out;
            transition: var(--transition);
        }

        .csta-toast_test.show_test {
            display: flex;
        }

        @keyframes toastSlideIn {
            from {
                transform: translateX(100%);
                opacity: 0;
            }
            to {
                transform: translateX(0);
                opacity: 1;
            }
        }

        .toast-content_test {
            display: flex;
            align-items: center;
            gap: 12px;
            width: 100%;
        }

        .toast-icon_test {
            font-size: 20px;
            color: var(--vivid-cyan);
            flex-shrink: 0;
        }

        .toast-message_test {
            font-size: 14px;
            font-weight: 600;
            color: var(--text-dark);
        }

        @media (max-width: 768px) {
            .csta-toast_test {
                bottom: 20px;
                right: 20px;
                left: 20px;
                min-width: auto;
                max-width: none;
            }
        }
        .section_test.section-pillars_test > h4{
            font-size: 16px;
            font-weight: 700;
        }
        .progression-nav-arrow_test:hover, .progression-nav-arrow_test:focus {
            background: none;
            color: var(--text-gray);
        }
        .progressions-text_test {
            display: flex;
            gap: 20px;
            align-items: center;
            margin-bottom: 20px;
            font-style: italic;
        }
        
        .progressions-text_test img {
            width: 77px;
            height: auto;
            flex-shrink: 0;
        }
        .progression-link_test {
            color: #0e5df8;
            font-weight: 900;
        }
        .pinned-modal_test .modal-title_test{
            margin-bottom: 0;
        }
        .progression-card-top_test{
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .standard-right-panel_test{
            width: 100%;
        }
        .mt-20_test{
            margin-top: 20px !important;
        }

/* ===== Mobile / tablet: stack filters above results (fixes overlap / “stuck” layout) =====
 * Matches admin-ajax sticky fallback (991px). Flex min-height:auto can block max-height:0
 * on the filter drawer; theme + sticky bars can overlap cards. Scoped to plugin root.
 */
@media (max-width: 991px) {
    #csta-search-dynamic-root_test .main-wrapper_test {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    /* Hero row: full-width title + Filters (hide decorative ribbon image).
     * Do not use .main-wrapper_test:first-of-type — the first div under the root is .page-header_test, so that never matches. */
    #csta-search-dynamic-root_test > .main-wrapper_test:not(.csta-search-result_test) > aside.sidebar_test,
    #csta-search-dynamic-root_test > .main-wrapper_test:not(.csta-search-result_test) .filterlogo_test {
        display: none !important;
    }

    #csta-search-dynamic-root_test > .main-wrapper_test:not(.csta-search-result_test) > .main-content_test {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Filters + results: single column; allow sidebar to shrink when drawer closed */
    #csta-search-dynamic-root_test .csta-search-result_test.main-wrapper_test > aside.sidebar_test {
        flex: 0 0 auto !important;
        width: 100% !important;
        max-width: 100% !important;
        min-height: 0 !important;
    }

    #csta-search-dynamic-root_test .csta-search-result_test.main-wrapper_test > .main-content_test {
        flex: 1 1 auto !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    #csta-search-dynamic-root_test #filterSidebar_dynamic_test.sidebar_test:not(.open_test) {
        max-height: 0 !important;
        min-height: 0 !important;
        overflow: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    body:not(.admin-bar) #csta-search-dynamic-root_test .filter-card_test,
    body.admin-bar #csta-search-dynamic-root_test .filter-card_test {
        position: relative !important;
        top: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }

    #csta-search-dynamic-root_test .filter-panel-heading_test.filter-heading_test {
        position: static !important;
        top: auto !important;
    }

    #csta-search-dynamic-root_test .search-result-main_test {
        position: static !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        z-index: auto !important;
        box-shadow: none !important;
        isolation: auto !important;
    }

    #csta-search-dynamic-root_test .search-result-main_test.is-fixed-fallback_test {
        position: static !important;
    }

    #csta-search-dynamic-root_test .search-result-main_test .hide-shadow_test {
        display: none !important;
    }

    #csta-search-dynamic-root_test .header-info_test.search-result-main_test {
        flex-wrap: wrap !important;
        row-gap: 12px;
    }

    /* When the full results bar is static (mobile/tablet), keep action buttons pinned while scrolling. */
    /* Action row: 2×2 grid; SETTINGS on row 3 left column only (half width). */
    #csta-search-dynamic-root_test .header-info_test .header-actions_test {
        flex-basis: 100%;
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        min-width: 0;
    }

    #csta-search-dynamic-root_test .header-actions_test {
        position: sticky;
        top: 0;
        z-index: 1000;
        background: var(--bg-white);
        padding-top: 8px;
        padding-bottom: 8px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px 12px;
        align-items: stretch;
        /*border-bottom: 1px solid var(--border-color);*/
    }

    #csta-search-dynamic-root_test .header-actions_test > .btn-cs_test,
    #csta-search-dynamic-root_test .header-actions_test .dropdown-toggle_test {
        flex-grow: 0;
        width: 100%;
        min-width: 0;
    }

    #csta-search-dynamic-root_test .header-actions_test .dropdown-toggle_test .btn-cs_test {
        width: 100%;
        justify-content: center;
    }

    #csta-search-dynamic-root_test .header-actions_test .csta-settings-wrap_test {
        display: flex;
        width: 100%;
        min-width: 0;
    }

    #csta-search-dynamic-root_test .header-actions_test .csta-settings-trigger_test {
        flex: 1;
        width: 100%;
        justify-content: center;
    }

    body.admin-bar #csta-search-dynamic-root_test .header-actions_test {
        top: 24px;
    }

    /* Filters button was only enabled ≤768px; column layout starts at 991px */
    #csta-search-dynamic-root_test .filters-toggle-btn_test {
        display: flex !important;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }

    /* Hero search title: match staging mobile (e.g_test. search-new-test) — avoid 22px from ≤480px global rule */
    #csta-search-dynamic-root_test > .main-wrapper_test:not(.csta-search-result_test) .search-page-title_test {
        font-size: 22px;
        font-weight: 900;
        line-height: 1.2;
        /*text-align: center;*/
    }
}

/* ===== Display settings panel (SETTINGS button, anchored under Download) ===== */
#csta-search-dynamic-root_test .csta-settings-wrap_test {
    position: relative;
    display: inline-flex;
    align-items: center;
}

/* When Settings is open, keep results column (and dropdown) above the filter sidebar (matches csta_new_search). */
#csta-search-dynamic-root_test.csta-display-settings-open_test .csta-search-result_test > .sidebar_test {
    z-index: 1 !important;
}

#csta-search-dynamic-root_test.csta-display-settings-open_test .csta-search-result_test > .main-content_test {
    z-index: 200 !important;
    isolation: isolate;
}

#csta-search-dynamic-root_test.csta-display-settings-open_test .csta-settings-wrap_test {
    position: relative;
    z-index: 201;
}

#csta-search-dynamic-root_test.csta-display-settings-open_test .filter-card_test,
#csta-search-dynamic-root_test.csta-display-settings-open_test .filter-panel-heading_test.filter-heading_test {
    z-index: auto !important;
}

/* Match DOWNLOAD: btn-primary-cs cyan + black label/icon */
#csta-search-dynamic-root_test .csta-settings-trigger_test {
    letter-spacing: 0.02em;
    color: var(--text-dark) !important;
}

#csta-search-dynamic-root_test .csta-settings-trigger_test .fa-cog {
    color: var(--text-dark);
}

#csta-search-dynamic-root_test .csta-display-settings-panel_test {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    width: min(580px, calc(100vw - 24px));
    max-height: min(85vh, 720px);
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1100;
    background: #fff;
    border: 2px solid #111;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    padding: 18px 20px 22px;
    text-align: left;
}

#csta-search-dynamic-root_test .csta-display-settings-panel_test[hidden] {
    display: none !important;
}

/* Settings panel above backdrop and Download/Sort dropdowns when open. */
#csta-search-dynamic-root_test.csta-display-settings-open_test .csta-display-settings-panel_test.is-open_test {
    z-index: 1100;
}

#csta-search-dynamic-root_test .csta-settings-wrap_test .csta-display-settings-backdrop_test {
    position: fixed;
    inset: 0;
    z-index: 1;
    background: transparent;
    margin: 0;
    padding: 0;
    border: 0;
}

#csta-search-dynamic-root_test .csta-display-settings-inert_test,
.csta-modal-background-inert_test {
    pointer-events: none !important;
}

#csta-search-dynamic-root_test #cstaDisplaySettingsPanel_dynamic_test {
    pointer-events: auto;
}

.csta-display-settings-backdrop_test[hidden] {
    display: none !important;
}

#csta-search-dynamic-root_test .csta-display-settings-panel_test.is-open_test {
    display: block !important;
}

#csta-search-dynamic-root_test .csta-display-settings-header-row_test {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
    padding-right: 0;
}

#csta-search-dynamic-root_test .csta-display-settings-close_test {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 0 0 0 8px;
    background: #000;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    color: #fff;
    padding: 0px 0 3px 3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 0;
    top: 0;
}

#csta-search-dynamic-root_test .csta-display-settings-close_test:hover,
#csta-search-dynamic-root_test .csta-display-settings-close_test:focus {
    background: #333;
    color: #fff;
    outline: none;
}

#csta-search-dynamic-root_test .csta-display-settings-inner_test {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0;
    padding-right: 0;
}

#csta-search-dynamic-root_test .csta-display-settings-col-left_test {
    flex: 1 1 0;
    min-width: 0;
    padding-right: 16px;
}

#csta-search-dynamic-root_test .csta-display-settings-separator_test {
    width: 1px;
    flex-shrink: 0;
    background: #d0d0d0;
    align-self: stretch;
    min-height: 120px;
}

#csta-search-dynamic-root_test .csta-display-settings-col-right_test {
    flex: 1 1 0;
    min-width: 0;
    padding-left: 16px;
}

#csta-search-dynamic-root_test .csta-display-settings-heading_test {
    font-size: 24px;
    font-weight: 800;
    text-transform: uppercase;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #111;
}

#csta-search-dynamic-root_test .csta-display-settings-heading_test .fa-cog {
    font-size: 24px;
    color: #111;
}

#csta-search-dynamic-root_test .csta-ds-block_test {
    margin-bottom: 0px;
}
#csta-search-dynamic-root_test .close-toggle-ds-block_test{
    border-bottom: 1px solid #d0d0d0;
    padding-bottom: 18px;
    margin-bottom: 18px;
}
#csta-search-dynamic-root_test .csta-ds-label-row_test {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 20px;
    font-size: 20px;
    color: var(--text-dark);
}

#csta-search-dynamic-root_test .csta-ds-label-row_test.csta-ds-openclose-heading_test {
    font-size: 20px;
    margin-bottom: 13px;
}

#csta-search-dynamic-root_test .csta-ds-label-row_test.csta-ds-openclose-heading_test .csta-ds-label_test {
    font-size: 20px;
}

#csta-search-dynamic-root_test .csta-display-settings-panel_test .toggle-label_test {
    font-size: 16px;
    line-height: 1.2;
}

/* Compact "Close All Cards | Open All Cards" (smaller than full-width pill) */
#csta-search-dynamic-root_test .csta-ds-openclose-wrap_test {
    display: flex;
    justify-content: flex-start;
}

#csta-search-dynamic-root_test .csta-ds-openclose-pill_test {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    border: 2px solid var(--border-dark) !important;
    border-radius: 16px !important;
    background: var(--bg-white) !important;
    padding: 4px 8px;
    max-width: 100%;
    min-height: 32px;
    box-sizing: border-box;
    cursor: pointer;
    font: inherit;
    color: var(--text-dark) !important;
    line-height: 1.4;
    letter-spacing: 0;
    text-transform: capitalize;
    box-shadow: none !important;
}

#csta-search-dynamic-root_test .csta-ds-openclose-pill_test:hover {
    color: var(--text-dark) !important;
    background: var(--bg-white) !important;
}

#csta-search-dynamic-root_test .csta-ds-openclose-close-text_test,
#csta-search-dynamic-root_test .csta-ds-openclose-open-text_test {
    font-size: 14px;
    font-weight: 500;
    padding: 2px 4px;
    white-space: nowrap;
    pointer-events: none;
}

#csta-search-dynamic-root_test .csta-ds-openclose-close-text_test.csta-ds-openclose-emphasis_test,
#csta-search-dynamic-root_test .csta-ds-openclose-open-text_test.csta-ds-openclose-emphasis_test {
    font-weight: 900;
    color: #111;
}

#csta-search-dynamic-root_test .csta-ds-openclose-pill_test:hover .csta-ds-openclose-close-text_test,
#csta-search-dynamic-root_test .csta-ds-openclose-pill_test:hover .csta-ds-openclose-open-text_test {
    color: #111;
}

#csta-search-dynamic-root_test .csta-ds-openclose-pill_test:hover .csta-ds-openclose-emphasis_test {
    color: #000;
}

#csta-search-dynamic-root_test .csta-ds-openclose-sep_test {
    color: var(--border-dark);
    font-size: 14px;
    font-weight: 400;
    user-select: none;
    padding: 0;
    margin: 0;
}

/* First-open hint: black tooltip style (popover below Open/Close Cards pill; in-flow so it does not cover Card Details) */
#csta-search-dynamic-root_test .close-toggle-ds-block_test {
    position: relative;
}

#csta-search-dynamic-root_test .csta-settings-openclose-hint_test {
    position: relative;
    z-index: 20;
    max-width: 100%;
    margin-top: 10px;
    margin-bottom: 4px;
    padding: 10px 12px;
    background: #000;
    color: #fff;
    font-size: 13px;
    line-height: 1.45;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
    overflow: hidden;
    transition: opacity 0.2s ease, max-height 0.35s ease, margin 0.2s ease, padding 0.2s ease, visibility 0.2s;
    pointer-events: none;
}

#csta-search-dynamic-root_test .csta-settings-openclose-hint_test.is-visible_test {
    opacity: 1;
    visibility: visible;
    max-height: 280px;
    margin-top: 10px;
    margin-bottom: 8px;
    padding: 10px 12px;
    overflow: visible;
    pointer-events: auto;
    cursor: pointer;
}

#csta-search-dynamic-root_test .csta-settings-openclose-hint_test::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 24px;
    margin-bottom: 0;
    border: 8px solid transparent;
    border-bottom-color: #000;
    opacity: 0;
    transition: opacity 0.2s ease;
}

#csta-search-dynamic-root_test .csta-settings-openclose-hint_test.is-visible_test::before {
    opacity: 1;
    pointer-events: none;
}

#csta-search-dynamic-root_test .csta-settings-openclose-hint-text_test {
    margin: 0;
    pointer-events: none;
}

/* Same Show/Hide row layout + switches as sidebar filters */
#csta-search-dynamic-root_test .csta-display-settings-panel_test .csta-ds-toggle-list_test .toggle-item_test {
    margin-bottom: 20px;
}

#csta-search-dynamic-root_test .csta-display-settings-panel_test .csta-ds-toggle-list_test .toggle-item_test:last-child {
    margin-bottom: 0;
}

/* Glossary: ON = solid blue track, white knob + black outline when on */
#csta-search-dynamic-root_test .csta-display-settings-panel_test .csta-ds-glossary-item_test .switch_test.active_test {
    background: #1e6bd6;
    border-color: #000;
    outline: none;
}

#csta-search-dynamic-root_test .csta-display-settings-panel_test .csta-ds-glossary-item_test .switch_test.active_test::after {
    background: #fff;
}

#csta-search-dynamic-root_test .csta-display-settings-panel_test .csta-ds-glossary-item_test .switch_test:not(.active_test)::after {
    background: #000;
}

#csta-search-dynamic-root_test .csta-display-settings-panel_test .switch_test[role="switch"]:focus {
    outline: none;
}

#csta-search-dynamic-root_test .csta-display-settings-panel_test .switch_test[role="switch"]:focus-visible {
    outline: 2px solid #111 !important;
    outline-offset: 2px;
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #111;
}

@media (max-width: 620px) {
    /* SETTINGS panel: full-width fixed modal on mobile (matches csta_new_search) */
    #csta-search-dynamic-root_test .csta-display-settings-panel_test {
        position: fixed !important;
        top: 72px !important;
        left: 12px !important;
        right: 12px !important;
        width: calc(100vw - 24px) !important;
        max-width: calc(100vw - 24px) !important;
        overflow-x: hidden;
        transform: none !important;
        max-height: calc(100vh - 140px) !important;
        z-index: 10050 !important;
    }

    #csta-search-dynamic-root_test.csta-display-settings-open_test .csta-display-settings-panel_test.is-open_test {
        display: block !important;
    }

    #csta-search-dynamic-root_test .csta-display-settings-inner_test {
        flex-wrap: wrap;
    }

    #csta-search-dynamic-root_test .csta-display-settings-col-left_test,
    #csta-search-dynamic-root_test .csta-display-settings-col-right_test {
        flex: 0 0 100%;
        padding-left: 0;
        padding-right: 0;
    }

    #csta-search-dynamic-root_test .csta-display-settings-header-row_test {
        margin-bottom: 20px;
    }
    #csta-search-dynamic-root_test .csta-display-settings-separator_test {
        width: 100%;
        height: 1px;
        min-height: 0;
        margin: 20px 0 16px;
    }
    body.admin-bar #csta-search-dynamic-root_test .csta-display-settings-panel_test {
        top: 96px !important;
    }

    #csta-search-dynamic-root_test.csta-display-settings-open_test .header-actions_test {
        z-index: 201 !important;
    }
}
#csta-search-dynamic-root_test .csta-ds-toggle-list_test .toggle-help_test{
    margin-left: 8px;
}
#csta-search-dynamic-root_test .interdisciplinary-item_test.hidden-subject_test {
    display: none !important;
}
@media (max-width: 1024px) {
    #csta-search-dynamic-root_test .csta-settings-trigger_test {
        letter-spacing: 0em;
    }
    .btn-cs_test {
        padding: 10px 12px;
    }

    /* Dispositions: force 2-up row + mid-word wrap (scoped so base flex/nowrap cannot win) */
    #csta-search-dynamic-root_test .section-pillars_test .dispositions-col_test,
    #progressionModal_dynamic_test .section-pillars_test .dispositions-col_test {
        flex: 1 1 auto;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    #csta-search-dynamic-root_test .section-pillars_test .dispositions-grid_test,
    #progressionModal_dynamic_test .section-pillars_test .dispositions-grid_test {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
        width: 100%;
        min-width: 0;
    }

    #csta-search-dynamic-root_test .section-pillars_test .disposition-item_test,
    #progressionModal_dynamic_test .section-pillars_test .disposition-item_test {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        min-width: 0;
        width: 100%;
        max-width: 100%;
    }

    #csta-search-dynamic-root_test .section-pillars_test .disposition-label_test,
    #progressionModal_dynamic_test .section-pillars_test .disposition-label_test {
        flex: 1 1 auto;
        min-width: 0;
        max-width: 100%;
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: break-word;
        hyphens: auto;
    }

    #csta-search-dynamic-root_test .section-pillars_test .disposition-label_test .csta-sd-glossary-term_test,
    #progressionModal_dynamic_test .section-pillars_test .disposition-label_test .csta-sd-glossary-term_test {
        display: inline;
        max-width: 100%;
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: break-word;
    }
}