/* ===== PAGE BACKGROUND ===== */
html,
body {
    height: 100%;
    min-height: 100%;
}

body.horizontal,
body.horizontal .wrapper {
    min-height: 100dvh;
}
@media (min-width: 992px) { body.horizontal, body.horizontal .wrapper { min-height: 67dvh; } }

body.horizontal {
    display: flex;
    flex-direction: column;
    margin: 0;
}

body.horizontal .wrapper.d-flex.flex-column.min-vh-100 {
    flex: 1 1 auto;
    height: 100vh !important;
    height: 100dvh !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
}
@media (min-width: 992px) { body.horizontal .wrapper.d-flex.flex-column.min-vh-100 { height: 67vh !important; height: 67dvh !important; min-height: 67vh !important; min-height: 67dvh !important; } }

body.horizontal .wrapper>footer {
    margin-top: auto;
    /* pushes footer to bottom when no scroll */
    flex: 0 0 auto;
    padding-top: .5025rem;
}

html[data-mode="light"] body.horizontal .wrapper {
    background-color: #f3f4f6 !important;
    background-image: linear-gradient(rgba(244, 246, 249, 0.9), rgba(244, 246, 249, 0.9)),
    url("../../assets/images/cbu-bg-pic-3.2ec7ebae08c6.jpg") !important;
    background-repeat: no-repeat !important;
    background-position: center top !important;
    background-size: cover !important;
    background-attachment: fixed !important;
}

html[data-mode="dark"] body.horizontal .wrapper {
    background-color: #1a1d21 !important;
    background-image: linear-gradient(rgba(26, 29, 33, 0.93), rgba(26, 29, 33, 0.93)),
    url("../../assets/images/cbu-bg-pic-3.2ec7ebae08c6.jpg") !important;
    background-repeat: no-repeat !important;
    background-position: center top !important;
    background-size: cover !important;
    background-attachment: fixed !important;
}

/* ===== LAYOUT ===== */
/* ===== LAYOUT ===== */
.exp-page {
    flex: 1 1 auto;
    display: flex;
    flex-direction: row;
    gap: .8375rem;
    padding: .5025rem clamp(.5025rem, 1.2vw, .8375rem) .8375rem;
    /* Synchronized with sidebar top */
    align-items: flex-start;
    position: relative;
    min-height: auto;
}
@media (min-width: 992px) { .exp-page { padding: .5025rem clamp(.5025rem, .804vw, .8375rem) .8375rem; } }

@media (max-width: 992px) {
    .exp-page {
        flex-direction: column;
        padding: .4188rem;
    }
    /* Phones/tablets: a normal page scroll. The desktop one-screen wrapper
       (100dvh tall, scrolling inside) fought the page scroll on phones: when
       the browser bar hid/showed, 100dvh changed and the footer slid over
       the boxes until the inner scroller caught up. */
    body.horizontal .wrapper.d-flex.flex-column.min-vh-100 {
        height: auto !important;
        min-height: 100vh !important;
        flex: 0 0 auto !important;   /* grow with the content, never squeezed by the body */
        overflow: visible !important;
    }
    @media (min-width: 992px) { body.horizontal .wrapper.d-flex.flex-column.min-vh-100 { min-height: 67vh !important; } }
}

/* ===== SIDEBAR (CARD STYLE) ===== */
.exp-sidebar-wrapper {
    position: sticky;
    top: .5025rem;
    /* Precision alignment with box cards */
    align-self: flex-start;
    z-index: 100;
    display: flex;
    width: 14.2375rem;
    min-width: 14.2375rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.exp-sidebar {
    width: 100%;
    min-width: 0;
    border: .0419rem solid rgba(127, 127, 127, 0.15);
    border-radius: .5863rem;
    padding: 1.675rem .8375rem 1.005rem .8375rem;
    display: flex;
    flex-direction: column;
    gap: 1.005rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: calc(100dvh - 5.025rem);
    overflow-y: auto;
    box-shadow: 0 .1675rem .6281rem rgba(0, 0, 0, 0.05);
    position: relative;
}
@media (min-width: 992px) { .exp-sidebar { max-height: calc(67dvh - 5.025rem); } }

/* Light mode: clean white cards */
[data-mode="light"] .exp-sidebar {
    background: #ffffff;
    border-color: #e5e7eb;
    box-shadow: 0 .0419rem .0838rem rgba(0,0,0,.04), 0 .1675rem .5025rem rgba(0,0,0,.06);
}

[data-mode="dark"] .exp-sidebar {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(.335rem);
}

.exp-sidebar.collapsed {
    transform: scale(0.95);
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
}

.exp-sidebar-wrapper.collapsed {
    width: 2.5125rem;
    min-width: 2.5125rem;
    margin-right: -.4188rem;
}

.exp-content {
    flex: 1;
    min-width: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 992px) {
    /* Mobile: the filters become one card above the charts — the two
       toggles side by side, every other control full width. */
    .exp-sidebar-wrapper {
        position: static;
        width: 100%;
        min-width: 0;
    }
    .sidebar-toggle-btn { display: none; }

    .exp-sidebar {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .5025rem .5025rem;
        padding: .5863rem;
        margin-bottom: .5025rem;
        max-height: none;
        overflow: visible;
        position: relative;
        top: 0;
        border-radius: var(--exp-radius, clamp(.5863rem, 1vw, .8375rem));
    }
    @media (min-width: 992px) { .exp-sidebar { border-radius: var(--exp-radius, clamp(.5863rem, .67vw, .8375rem)); } }
    /* keep the card collapsible state harmless on mobile */
    .exp-sidebar.collapsed {
        transform: none !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        overflow: visible !important;
    }
    .exp-sidebar-wrapper.collapsed {
        width: 100% !important;
        min-width: 0 !important;
        margin-right: 0;
    }

    .exp-sidebar .sidebar-section {
        grid-column: 1 / -1;
        gap: .2513rem;
        min-width: 0;
    }
    /* Kutilma/Sezilgan and Aholi/Tadbirkor share the first row */
    .exp-sidebar .sidebar-section:nth-child(1),
    .exp-sidebar .sidebar-section:nth-child(2) { grid-column: auto; }
    /* Hudud and Respondent faoliyat turi share a row */
    .exp-sidebar .sidebar-section:nth-child(3),
    .exp-sidebar .sidebar-section-sector { grid-column: auto; }
    /* the sector picker (a direct child of the card) spans the row */
    .exp-sidebar > .csel { grid-column: 1 / -1; width: 100%; }

    .exp-sidebar .sidebar-section-title {
        display: block;
        font-size: .5025rem;
        margin-bottom: 0;
    }
    .exp-sidebar .radio-toggle label {
        padding-left: .2513rem;
        padding-right: .2513rem;
        font-size: .5444rem;
        white-space: nowrap;
    }

    .exp-content {
        width: 100%;
        min-width: 0;
    }
}
/* narrow phones: longer ru/en toggle labels need the whole row */
@media (max-width: 385.92px) {
    .exp-sidebar .sidebar-section:nth-child(1),
    .exp-sidebar .sidebar-section:nth-child(2) { grid-column: 1 / -1; }
}

.sidebar-toggle-btn {
    position: absolute;
    top: .5025rem;
    right: .5025rem;
    z-index: 1001;
    background: #1A2B4B;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 1.4238rem;
    height: 1.4238rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 .0838rem .335rem rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-toggle-btn.collapsed {
    right: .5444rem;
    /* Center inside the 60px collapsed wrapper */
    top: .4188rem;
}

.sidebar-toggle-btn:hover {
    background: #243863;
}

.sidebar-toggle-btn:active {
    background: #0D1A2F;
    transform: translateY(.0419rem);
}

@media (max-width: 992px) {
    .sidebar-toggle-btn {
        display: none;
    }
}

.sidebar-section {
    display: flex;
    flex-direction: column;
    gap: .335rem;
}

/* Eski style label-lar */
.sidebar-section-title {
    font-size: .5863rem;
    font-weight: 600;
    color: var(--text-color, #555);
    opacity: 0.8;
    margin-bottom: .0838rem;
}

[data-mode="dark"] .sidebar-section-title {
    color: #b0b0b0;
}

.exp-sidebar select {
    padding: .2513rem .5025rem;
    border-radius: .335rem;
    border: .0419rem solid rgba(127, 127, 127, 0.3);
    background: var(--bg-color, #fff);
    color: var(--text-color, #333);
    font-size: .5863rem;
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s;
    appearance: none;
    background-repeat: no-repeat;
    background-position: right .335rem center;
    background-size: .5025rem;
    padding-right: 1.2563rem;
}

[data-mode="light"] .exp-sidebar select {
    background-color: #ffffff;
    border-color: #e5e7eb;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}

[data-mode="dark"] .exp-sidebar select {
    background-color: rgba(255, 255, 255, 0.08);
    /* Transparent style */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    color: #e0e0e0;
}

.exp-sidebar select option {
    background: #fff;
    color: #333;
}

[data-mode="dark"] .exp-sidebar select option {
    background: #2b2f36;
    color: #fff;
}

.exp-sidebar .radio-toggle {
    width: 100%;
    max-width: none;
}

.exp-sidebar .radio-toggle label {
    flex: 1;
    text-align: center;
}

.exp-sidebar .date-select-group {
    display: flex;
    gap: .5025rem;
    width: 100%;
}
/* custom selects fill their row: year and month take equal halves, lined
   up with the two-column selectors above (same 12px gap as the grid) */
.exp-sidebar .sidebar-section > .csel,
.exp-sidebar > .csel { display: block; width: 100%; }
.exp-sidebar .date-select-group > .csel { flex: 1 1 0; min-width: 0; width: auto; }
.exp-sidebar .csel-button { width: 100%; }



/* Radio toggle group */
.radio-toggle {
    display: inline-flex;
    border-radius: .335rem;
    overflow: hidden;
    border: .0419rem solid rgba(127, 127, 127, 0.25);
}

.radio-toggle input[type="radio"] {
    display: none;
}

.radio-toggle label {
    padding: .2513rem .5863rem;
    font-size: clamp(.5444rem, calc(.3886rem + .45vw), .67rem);
    font-weight: 700;
    cursor: pointer;
    color: var(--text-color, #555);
    background: transparent;
    transition: all 0.18s;
    user-select: none;
    border-right: .0419rem solid rgba(127, 127, 127, 0.15);
}
@media (min-width: 992px) { .radio-toggle label { font-size: clamp(.5444rem, calc(.3886rem + .3015vw), .67rem); } }

.radio-toggle label:last-of-type {
    border-right: none;
}

.radio-toggle label:hover {
    background: rgba(26, 43, 75, 0.08);
}

.radio-toggle input[type="radio"]:checked+label {
    background: #1A2B4B;
    color: #fff;
}


/* ===== BOX GRID ===== */
.box-grid {
    display: grid;
    grid-template-columns: 1fr;
    /* mobile-first: single column */
    /*
 * On mobile: 10 boxes × 650px + 9 × 12px gap = 6608px
 * Desktop overrides to 3-column in @media (min-width: 993px)
 */
    flex: 1 1 auto;
    min-height: 0;
    min-height: 276.71rem;
    grid-template-rows: repeat(10, 27.2188rem);
    gap: .5025rem;
}

.box-card {
    border-radius: .5025rem;
    border: .0419rem solid rgba(127, 127, 127, 0.18);
    padding: .5863rem;
    display: flex;
    flex-direction: column;
    min-height: 27.2188rem;
    overflow: hidden;
}

[data-mode="light"] .box-card {
    background: #ffffff;
    border-color: #e5e7eb;
    box-shadow: 0 .0419rem .0838rem rgba(0,0,0,.04), 0 .1675rem .5025rem rgba(0,0,0,.06);
}

[data-mode="dark"] .box-card {
    background: rgba(255, 255, 255, 0.04);
}

.box-card .box-title {
    font-size: clamp(.5863rem, calc(.3685rem + .55vw), .7538rem);
    font-weight: 700;
    margin-bottom: .335rem;
    opacity: 0.85;
}
@media (min-width: 992px) { .box-card .box-title { font-size: clamp(.5863rem, calc(.3685rem + .3685vw), .7538rem); } }

.box-card .box-chart {
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
}

/* Box footer - active filters */
.box-footer {
    margin-top: .2513rem;
    padding-top: .2094rem;
    border-top: .0419rem solid rgba(127, 127, 127, 0.15);
    font-size: .5025rem;
    opacity: 1;
    line-height: 1.5;
    min-height: .7538rem;
}

.box-footer .bf-tag {
    display: inline-block;
    background: none;
    border-radius: 0;
    padding: 0;
    margin: .0419rem 0;
    white-space: nowrap;
    font-weight: 600;
    color: var(--B6, #2D4F8A);
}
/* "a × b × c", like the mobile app's box footer */
.box-footer .bf-tag + .bf-tag::before {
    content: "\00d7";
    display: inline-block;
    margin: 0 .2931rem;
    font-weight: 400;
    opacity: .55;
}
html[data-mode="dark"] .box-footer .bf-tag { color: #4caf50; }

/* Box 3.1 pagination */
.box31-pager {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .1675rem;
    padding: .1675rem .0838rem 0;
    flex-shrink: 0;
}

.box31-pager button {
    min-width: 1.1725rem;
    height: 1.0888rem;
    padding: 0 .2513rem;
    border: .0419rem solid rgba(127, 127, 127, 0.3);
    border-radius: .2094rem;
    background: transparent;
    color: var(--text-color, #333);
    font-size: .5444rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.box31-pager button:hover {
    background: rgba(26, 43, 75, 0.12);
}

.box31-pager button.active {
    background: #1A2B4B;
    color: #fff;
    border-color: #1A2B4B;
}

[data-mode="light"] .box31-pager button.active {
    background: #0D1A2F;
    color: #fff;
}

.box31-pager button:disabled {
    opacity: 0.35;
    cursor: default;
}

.box-title button {
    background: rgba(127, 127, 127, 0.1);
    border: .0419rem solid rgba(127, 127, 127, 0.2);
    color: var(--text-color, #333);
    border-radius: .335rem;
    width: 1.34rem;
    height: 1.34rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: .67rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.box-title button:hover {
    background: rgba(26, 43, 75, 0.15);
    border-color: #1A2B4B;
    color: #1A2B4B;
    transform: translateY(-.0419rem);
}

[data-mode="dark"] .box-title button {
    background: rgba(255, 255, 255, 0.05);
    color: #ccc;
}

[data-mode="dark"] .box-title button:hover {
    background: rgba(26, 43, 75, 0.25);
}

/* Loading spinner */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: .4188rem;
    opacity: 0.6;
    font-size: .5863rem;
}

.loading-spinner .spinner-circle {
    width: 1.2563rem;
    height: 1.2563rem;
    border: .1256rem solid rgba(127, 127, 127, 0.2);
    border-top-color: #1A2B4B;
    border-radius: 50%;
    animation: spinRotate 0.7s linear infinite;
}

@keyframes spinRotate {
    to {
        transform: rotate(360deg);
    }
}

/* Tablets: two columns */
@media (min-width: 768px) and (max-width: 992px) {
    .box-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: repeat(5, 27.2188rem);
        min-height: 0;
    }
}

/* Desktop: 3×4 grid, the last four boxes placed explicitly */
@media (min-width: 993px) {
    .box-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-template-rows: repeat(4, minmax(27.2188rem, 1fr));
        min-height: 110.3825rem;
    }
    #box33 { grid-column: 1; grid-row: 3; }
    #box34 { grid-column: 2; grid-row: 3; }
    #box35 { grid-column: 3; grid-row: 3; }
    #box36 { grid-column: 1; grid-row: 4; }
}


/* ===== BOX 2.1 SLIDER ===== */
#slider21 {
    -webkit-appearance: none;
    appearance: none;
    height: .2513rem;
    border-radius: .1256rem;
    background: #1A2B4B;
    outline: none;
}

#slider21::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: .67rem;
    height: .67rem;
    border-radius: 50%;
    background: #1A2B4B;
    cursor: pointer;
    border: .0838rem solid #fff;
    box-shadow: 0 .0419rem .1675rem rgba(0, 0, 0, 0.3);
}

#slider21::-moz-range-thumb {
    width: .67rem;
    height: .67rem;
    border-radius: 50%;
    background: #1A2B4B;
    cursor: pointer;
    border: .0838rem solid #fff;
    box-shadow: 0 .0419rem .1675rem rgba(0, 0, 0, 0.3);
}

#btn21Play {
    width: 1.4238rem;
    height: 1.4238rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: .335rem;
    border: .0419rem solid rgba(127, 127, 127, 0.25);
    background: rgba(0, 86, 69, 0.07);
    color: #1A2B4B;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

#btn21Play:hover {
    background: rgba(0, 86, 69, 0.15);
    border-color: rgba(0, 86, 69, 0.4);
    box-shadow: 0 .0419rem .1675rem rgba(0, 86, 69, 0.12);
}

#btn21Play svg {
    width: .67rem;
    height: .67rem;
    fill: currentColor;
}

[data-mode="dark"] #btn21Play {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

[data-mode="dark"] #btn21Play:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 .0419rem .1675rem rgba(255, 255, 255, 0.08);
}

/* Fullscreen state for box21 */
#box21:fullscreen {
    background: var(--bg-color, #1a1d21);
    display: flex;
    flex-direction: column;
    padding: .8375rem;
}

#box21:fullscreen .box-chart {
    flex: 1 1 0;
    min-height: 0;
}

#box31:fullscreen {
    background: var(--bg-color, #1a1d21);
    display: flex;
    flex-direction: column;
    padding: .8375rem;
}

/* ===== FULLSCREEN: scale up chart text via CSS (no JS chart.update needed) ===== */
.box-card:fullscreen {
    background: var(--bg-color, #1a1d21);
    display: flex;
    flex-direction: column;
    padding: .8375rem;
}

.box-card:fullscreen .box-chart {
    flex: 1 1 0;
    min-height: 0;
}

/* Axis labels */
.box-card:fullscreen .highcharts-xaxis-labels text,
.box-card:fullscreen .highcharts-yaxis-labels text,
.box-card:fullscreen .highcharts-axis-labels text {
    font-size: .9213rem !important;
}

/* Legend */
.box-card:fullscreen .highcharts-legend-item text,
.box-card:fullscreen .highcharts-legend-item span {
    font-size: .9213rem !important;
}

/* Data labels inside chart (bar values, heatmap values etc.) */
.box-card:fullscreen .highcharts-data-label text,
.box-card:fullscreen .highcharts-data-label span {
    font-size: .7538rem !important;
}

/* Box 3.5: Pie chart labels should be much larger in fullscreen */
#box35:fullscreen .highcharts-data-label text,
#box35:fullscreen .highcharts-data-label span {
    font-size: 2.01rem !important;
}

/* Tooltip — fully opaque, above data labels */
.highcharts-tooltip-box {
    fill-opacity: 1;
}


/* Tooltip */
.box-card:fullscreen .highcharts-tooltip text,
.box-card:fullscreen .highcharts-tooltip span {
    font-size: .8375rem !important;
}

/* Box footer (filter tags) */
.box-card:fullscreen .box-footer {
    font-size: .67rem !important;
    line-height: 2;
}

/* Box 4.1: thicker index line and markers in fullscreen */
#box36:fullscreen .highcharts-series:last-child .highcharts-graph {
    stroke-width: .335rem !important;
}

#box36:fullscreen .highcharts-series:last-child .highcharts-point {
    r: 6;
}

/* point radius */

/* Box 3.1: keep existing heatmap overrides */
#box31:fullscreen .box-chart {
    flex: 1 1 0;
    min-height: 0;
}

/* Box 3.4: scale up the headers and legend in fullscreen */
.box-card:fullscreen .s34-overlay>div:first-child span {
    font-size: 1.0888rem !important;
}

.box-card:fullscreen .s34-overlay>div:last-child {
    font-size: .8375rem !important;
    bottom: 1.0469rem !important;
    gap: 1.0469rem !important;
}

.box-card:fullscreen .s34-overlay>div:last-child div div {
    width: .7538rem !important;
    height: .7538rem !important;
}

/* ===== METHODOLOGY BUTTON ===== */
.methodology-btn {
    display: inline-flex;
    align-items: center;
    gap: .2513rem;
    padding: .2931rem .5863rem;
    border-radius: .335rem;
    border: .0419rem solid rgba(26, 43, 75, 0.5);
    background: transparent;
    color: #1A2B4B;
    font-size: clamp(.5025rem, calc(.3484rem + .42vw), .5863rem);
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.18s, border-color 0.18s;
    white-space: nowrap;
    width: 100%;
    justify-content: center;
}
@media (min-width: 992px) { .methodology-btn { font-size: clamp(.5025rem, calc(.3484rem + .2814vw), .5863rem); } }

.methodology-btn:hover {
    background: rgba(26, 43, 75, 0.1);
    border-color: #1A2B4B;
    color: #1A2B4B;
    text-decoration: none;
}

/* ── Dark mode: restore green accent ── */
[data-mode="dark"] .sidebar-toggle-btn                { background: #4caf50; }
[data-mode="dark"] .sidebar-toggle-btn:hover          { background: #43a047; }
[data-mode="dark"] .sidebar-toggle-btn:active         { background: #388e3c; }
[data-mode="dark"] .radio-toggle label { color: #e0e0e0; }
[data-mode="dark"] .radio-toggle input[type="radio"]:checked+label { background: #4caf50; }
[data-mode="dark"] .radio-toggle label:hover          { background: rgba(76,175,80,0.08); }
[data-mode="dark"] .box31-pager button.active         { background: #4caf50; border-color: #4caf50; }
[data-mode="dark"] .box31-pager button.active:hover   { background: #43a047; }
[data-mode="dark"] .box31-pager button:hover          { background: rgba(76,175,80,0.12); }
[data-mode="dark"] .box-title button:hover            { background: rgba(76,175,80,0.15); border-color: #4caf50; color: #4caf50; }
[data-mode="dark"] .loading-spinner .spinner-circle   { border-top-color: #4caf50; }
[data-mode="dark"] #slider21                          { background: #4caf50; }
[data-mode="dark"] .methodology-btn                   { border-color: rgba(76,175,80,0.5); color: #4caf50; }
[data-mode="dark"] .methodology-btn:hover             { background: rgba(76,175,80,0.1); border-color: #4caf50; color: #4caf50; }

@media (max-width: 992px) {
    .methodology-btn {
        width: auto;
    }
}

/* The body is a flex column here, so take the site footer out of the flex
   flow and place it just below the full-screen wrapper. */
body.horizontal { position: relative; }
body.horizontal > .site-footer { position: absolute; left: 0; right: 0; top: 100%; }
@media (max-width: 991.98px) {
    body.horizontal > .site-footer { position: static; }
}


/* ── moved from inline style attributes ── */
.exp-date-select { flex:1; }
.box-title.has-actions { display:flex; align-items:center; justify-content:space-between; }
.exp-slider-row { display:flex; align-items:center; gap:.335rem; margin-top:.1675rem; }
.exp-slider { flex:1; }
.exp-slider-label { font-size:.5863rem; font-weight:600; min-width:2.5125rem; text-align:center; }
.exp-title-actions { display:flex; align-items:center; gap:.2513rem; }
.box-title .exp-back-btn { background:transparent; border:.0419rem solid rgba(127,127,127,0.3); border-radius:.2513rem; cursor:pointer; padding:.1256rem .4188rem; color:var(--text-color,#333); font-size:.5444rem; line-height:1; }
.exp-title-tools { display:inline-flex; gap:.2513rem; align-items:center; }
