/* Landing is a tall body-scroll page: let the document scroll (the global fixed-height
   body traps the scroll so the page froze on load). Scoped to landing only — the
   dashboard pages keep their fixed-height internal-scroll wrapper. */
html { overflow-y: auto; }
body.horizontal { height: auto !important; overflow: visible; }

/* Fixed full-viewport background image LAYER (works on mobile too — unlike
   background-attachment:fixed, which mobile browsers ignore and fall back to a
   solid colour). The wrapper is transparent so this layer shows behind everything,
   including the footer / site-stats, exactly like the kutilmalar page. */
body.horizontal::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
}
html[data-mode="light"] body.horizontal::before {
    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");
}
html[data-mode="dark"] body.horizontal::before {
    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");
}
/* body + wrapper transparent so the fixed ::before layer (z-index:-1) is visible —
   an opaque body background would paint over a negative-z-index ::before. */
html[data-mode="light"] body.horizontal,
html[data-mode="dark"] body.horizontal,
html[data-mode="light"] body.horizontal .wrapper,
html[data-mode="dark"] body.horizontal .wrapper { background: transparent !important; }
html[data-mode="light"] { background: #f3f4f6; }
html[data-mode="dark"] { background: #1a1d21; }

/* === dark-mode size unification (match light layout; colours unchanged) === */
html[data-mode="dark"] .card-full,
body.dark .card-full {
  line-height: 1.3;
}
html[data-mode="dark"] .card-full .card-header,
body.dark .card-full .card-header {
  line-height: 1.3;
  padding-top: .67rem;
  padding-right: .8375rem;
  padding-bottom: .5444rem;
  padding-left: .8375rem;
  border-top-left-radius: 0px !important;
  border-top-right-radius: 0px !important;
}
html[data-mode="dark"] .card-full .card-header h6,
body.dark .card-full .card-header h6 {
  font-size: .9213rem;
  line-height: 1.1976rem;
}
html[data-mode="dark"] .card-full .card-body,
body.dark .card-full .card-body {
  line-height: 1.3;
  padding-right: .67rem;
  padding-left: .67rem;
}
html[data-mode="dark"] .card-full .card-footer,
body.dark .card-full .card-footer {
  padding-top: .2513rem;
  padding-right: .8375rem;
  padding-bottom: .2931rem;
  padding-left: .8375rem;
  border-bottom-left-radius: 0px !important;
  border-bottom-right-radius: 0px !important;
}
html[data-mode="dark"] .column-title,
body.dark .column-title {
  font-size: .8375rem;
  line-height: 1.005rem;
  padding-bottom: .2931rem;
}
html[data-mode="dark"] .column3-subtitle,
body.dark .column3-subtitle {
  font-size: .7538rem;
  line-height: .9799rem;
  margin-top: .1256rem;
}
html[data-mode="dark"] .js-c1-b2-title,
body.dark .js-c1-b2-title {
  font-size: .9213rem;
  line-height: 1.1976rem;
}
html[data-mode="dark"] .js-c1-b3-title,
body.dark .js-c1-b3-title {
  font-size: .9213rem;
  line-height: 1.1976rem;
}
html[data-mode="dark"] .js-c1-b3-subtitle,
body.dark .js-c1-b3-subtitle {
  font-size: .7538rem;
  line-height: .9799rem;
  margin-top: .1256rem;
}
html[data-mode="dark"] .digest-vertical-box,
body.dark .digest-vertical-box {
  line-height: 1.3;
  border-top-width: .0625rem;
  border-right-width: .0625rem;
  border-bottom-width: .0625rem;
  border-left-width: .0625rem;
  border-top-left-radius: .5025rem;
  border-top-right-radius: .5025rem;
  border-bottom-left-radius: .5025rem;
  border-bottom-right-radius: .5025rem;
}
html[data-mode="dark"] .digest-header,
body.dark .digest-header {
  font-size: .8375rem;
  line-height: 1.0888rem;
  padding-top: .67rem;
  padding-right: .7538rem;
  padding-bottom: .67rem;
  padding-left: .7538rem;
  border-bottom-width: 0px;
}
html[data-mode="dark"] .digest-title-group,
body.dark .digest-title-group {
  font-size: .8375rem;
  line-height: 1.0888rem;
}
html[data-mode="dark"] .digest-list,
body.dark .digest-list {
  line-height: 1.3;
}
html[data-mode="dark"] .digest-v-item,
body.dark .digest-v-item {
  font-size: .7956rem;
  line-height: 1.1934rem;
}
html[data-mode="dark"] .digest-action-btn,
body.dark .digest-action-btn {
  font-size: .67rem;
  line-height: .871rem;
  border-top-left-radius: .2513rem;
  border-top-right-radius: .2513rem;
  border-bottom-left-radius: .2513rem;
  border-bottom-right-radius: .2513rem;
}
html[data-mode="dark"] .digest-actions,
body.dark .digest-actions {
  font-size: .8375rem;
  line-height: 1.0888rem;
}
html[data-mode="dark"] .sidebar-card-wrap,
body.dark .sidebar-card-wrap {
  line-height: 1.3;
  border-top-width: .0625rem;
  border-right-width: .0625rem;
  border-bottom-width: .0625rem;
  border-left-width: .0625rem;
  border-top-left-radius: .5025rem;
  border-top-right-radius: .5025rem;
  border-bottom-left-radius: .5025rem;
  border-bottom-right-radius: .5025rem;
}
html[data-mode="dark"] .sidebar-header,
body.dark .sidebar-header {
  line-height: 1.3;
}
html[data-mode="dark"] .sidebar-body,
body.dark .sidebar-body {
  line-height: 1.3;
}
html[data-mode="dark"] .sidebar-action-btn,
body.dark .sidebar-action-btn {
  line-height: 1.3;
}
html[data-mode="dark"] .sidebar-actions,
body.dark .sidebar-actions {
  line-height: 1.3;
}
html[data-mode="dark"] .product-name,
body.dark .product-name {
  font-size: .7119rem;
  line-height: .9255rem;
}
html[data-mode="dark"] .product-price,
body.dark .product-price {
  font-size: 1.0469rem;
  line-height: 1.3609rem;
}
html[data-mode="dark"] .product-change,
body.dark .product-change {
  font-size: .7119rem;
  line-height: .9255rem;
}
html[data-mode="dark"] .ticker-item,
body.dark .ticker-item {
  line-height: 1.3;
  padding-top: .5025rem;
  padding-right: .67rem;
  padding-bottom: .5025rem;
  padding-left: .67rem;
  border-top-width: .0625rem;
  border-bottom-width: .0625rem;
  border-left-width: .0625rem;
  border-top-left-radius: .4188rem;
  border-top-right-radius: .4188rem;
  border-bottom-left-radius: .4188rem;
  border-bottom-right-radius: .4188rem;
}
html[data-mode="dark"] .ticker-title,
body.dark .ticker-title {
  font-size: .9213rem;
  line-height: 1.1055rem;
}

/* match light's box border SIZE in dark (style+width); colour subtle/dark.
   base border:none set border-style:none, forcing computed width to 0 — so
   border-style:solid is required for the width to take effect. */
html[data-mode="dark"] .digest-vertical-box,
body.dark .digest-vertical-box,
html[data-mode="dark"] .sidebar-card-wrap,
body.dark .sidebar-card-wrap,
html[data-mode="dark"] .ticker-item,
body.dark .ticker-item {
  border-style: solid;
  border-width: .0625rem;
  border-color: rgba(255,255,255,0.10);
}
html[data-mode="dark"] .digest-icon,
body.dark .digest-icon { line-height: 1.1306rem; }

/* dark sidebar: drop bg + border-left so it's transparent like light */
html[data-mode="dark"] #rightSidebar,
body.dark #rightSidebar {
  background: transparent;
  border: none;
  border-left: none;
  line-height: 1.3;
}
/* box radius must clip the header in dark too (header had square corners poking out) */
html[data-mode="dark"] .card-full, body.dark .card-full,
html[data-mode="dark"] #infografikaCard, body.dark #infografikaCard,
html[data-mode="dark"] #weekly-digest-box, body.dark #weekly-digest-box,
html[data-mode="dark"] .digest-vertical-box, body.dark .digest-vertical-box,
html[data-mode="dark"] .sidebar-card-wrap, body.dark .sidebar-card-wrap { overflow: hidden; }
/* ticker (lenta): match light's padding/gap, no box border/radius on the track */
html[data-mode="dark"] .ticker-wrap, body.dark .ticker-wrap {
  line-height: 1.3;
  height: auto;          /* match light so the cards aren't clipped (radius shows) */
}
html[data-mode="dark"] .ticker-track, body.dark .ticker-track {
  line-height: 1.3;
  padding: .1675rem .0838rem;
  border: none;
  border-radius: 0;
  column-gap: .335rem;
  row-gap: .335rem;
  background: transparent;   /* gaps between cards transparent like light */
}
/* filter under the ticker (date dropdown + product chip): dark sizes -> light */
html[data-mode="dark"] #dateDropdownContainer, body.dark #dateDropdownContainer { line-height: 1.3; }
html[data-mode="dark"] #dateDropdownContainer select, body.dark #dateDropdownContainer select,
html[data-mode="dark"] .date-dropdown-select, body.dark .date-dropdown-select {
  font-size: .7956rem;
  height: 1.5913rem;
  padding: 0 1.7588rem 0 .7538rem;
  border-radius: .335rem;
  border: .0625rem solid rgba(255,255,255,0.14);
}
html[data-mode="dark"] .filter-chip, body.dark .filter-chip {
  font-size: .7538rem;
  line-height: .7538rem;
  height: 1.5913rem !important;
  padding-left: .67rem;
  padding-right: .67rem;
  border: .0625rem solid rgba(255,255,255,0.14);
  border-radius: .335rem;                 /* match the date picker radius */
  background-color: rgb(52, 58, 64);   /* match the date picker bg in dark */
}
html[data-mode="dark"] .filter-chip .filter-label, body.dark .filter-chip .filter-label {
  font-size: .7538rem;
  line-height: .7538rem;
}
/* align the date dropdown + filter chips on one line (both modes) */
#dateDropdownContainer, #appliedFiltersContainer { vertical-align: middle; }
#appliedFiltersContainer .filter-chip { vertical-align: middle; }

.filter-chip {
    display: inline-flex;
    align-items: center;
    font-size: .5695rem;
    font-weight: 500;
    height: 1.5913rem;
    padding: 0 .4188rem;
    border-radius: .8375rem;
    background-color: #2c2c2c;
    color: #f1f1f1;
}

body.light .filter-chip {
    background-color: var(--bg-color);
    color: var(--text-color);
    border: .0419rem solid rgba(0, 0, 0, 0.12);
}

.filter-chip .filter-label {
    margin-right: .1675rem;
}

.filter-chip .close {
    font-size: .603rem;
    color: #aaa;
    opacity: 0.8;
    padding: 0;
    margin: 0;
}

body.light .filter-chip .close {
    color: rgba(0, 0, 0, 0.55);
}

.filter-chip .close:hover {
    color: #fff;
    opacity: 1;
}

body.light .filter-chip .close:hover {
    color: rgba(0, 0, 0, 0.85);
}

.footerInfo {
    font-size: .6365rem;
    white-space: nowrap;
    /* Prevent line breaks */
    overflow: hidden;
    /* Hide overflowing text */
    text-overflow: ellipsis;
    /* Show "..." when text overflows */
    display: block;
    /* Ensure it works properly */
    max-width: 100%;
    /* Restri5ct width to container */
}

/* Light mode: make footers/subtitles darker (more readable) */
body.light .card-footer.text-muted,
body.light .card-footer.text-muted small,
body.light .footerInfo {
    color: rgba(0, 0, 0, 0.78) !important;
}

body.light .column3-subtitle,
body.light .js-c1-b3-subtitle,
body.light .text-muted.column3-subtitle {
    color: rgba(0, 0, 0, 0.70) !important;
}

.column3-s6pxubtitle {
    font-size: .7705rem;
}

html[data-mode="light"] .ticker-wrap,
body.light .ticker-wrap {
    background-color: transparent;
}

html[data-mode="light"] .ticker-track,
body.light .ticker-track {
    background-color: var(--strip-bg, #C8DAEF);
    border: .0419rem solid #e0e0e0;
    box-shadow: 0 .0838rem .2094rem rgba(0, 0, 0, 0.08);
}

html[data-mode="light"] .ticker-item,
body.light .ticker-item {
    border-right: .0419rem solid rgba(0, 0, 0, 0.08);
    color: #1f1f1f;
}

html[data-mode="light"] .product-name,
body.light .product-name {
    color: #4a4a4a;
}

html[data-mode="light"] .product-price,
body.light .product-price {
    color: #1f1f1f;
}

.ticker-wrap {
    overflow: hidden;
    width: 100%;
    height: 5.4438rem;
    position: relative;
    display: flex;
    align-items: center;
    background-color: transparent;
    cursor: grab;
}

.ticker-wrap:active {
    cursor: grabbing;
}

.ticker-track {
    display: flex;
    width: max-content;
    will-change: transform;
    user-select: none;
    background-color: #1f1f1f;
    /* unified strip background */
    border-radius: .2513rem;
    border: .0419rem solid #333;
    box-shadow: 0 .0838rem .2094rem rgba(0, 0, 0, 0.5);
}

.ticker-item {
    min-width: 7.1188rem;
    max-width: 7.1188rem;
    margin: 0;
    padding: .4188rem .5025rem;
    background-color: transparent;
    border-right: .0419rem solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #e0e0e0;
    transition: transform 0.2s, box-shadow 0.2s;
}

.ticker-item:last-child {
    border-right: none;
    /* avoid extra line at end */
}

.ticker-item:hover {
    transform: translateY(-.0838rem);
    box-shadow: 0 .1675rem .5025rem rgba(0, 0, 0, 0.6);
    /* softer shadow */
}

.ticker-item div {
    margin: .0838rem 0;
}

.product-name {
    font-weight: 500;
    font-size: .67rem;
    color: #bbbbbb;
    /* softer gray */
    text-align: center;
}

.product-price {
    font-weight: 700;
    font-size: .871rem;
    color: #f0f0f0;
    /* softer white */
    text-align: center;
}

.product-change {
    font-weight: 700;
    font-size: .7705rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .1675rem;
}

.product-change.positive {
    color: #4caf50;
    /* muted green */
}

.product-change.negative {
    color: #e57373;
    /* muted red */
}

.product-change.neutral {
    color: #999999;
    /* softer neutral gray */
}

.ticker-title {
    font-size: 1.005rem;
    font-weight: 700;
    text-align: center;
    margin: .0838rem 0 .2513rem 0;
}

.skeleton-base {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
    border-radius: .2513rem;
}

.skeleton-base::after {
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    width: 150%;
    height: 100%;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.16) 50%,
            rgba(255, 255, 255, 0) 100%);
    animation: skeleton-shimmer 1.2s infinite;
}

/* Light mode skeletons */
html[data-mode="light"] .skeleton-base,
body.light .skeleton-base {
    background: rgba(0, 0, 0, 0.06);
}

html[data-mode="light"] .skeleton-base::after,
body.light .skeleton-base::after {
    background: linear-gradient(90deg,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 0.10) 50%,
            rgba(0, 0, 0, 0) 100%);
}

.skeleton-line {
    height: .5025rem;
    margin-bottom: .4188rem;
}

.skeleton-pill {
    height: 1.5913rem;
    border-radius: .335rem;
}

.skeleton-select {
    width: 7.9563rem;
}

.skeleton-chip {
    width: 4.6063rem;
    display: inline-block;
    margin-right: .335rem;
}

.skeleton-w-30 {
    width: 30%;
}

.skeleton-w-40 {
    width: 40%;
}

.skeleton-w-50 {
    width: 50%;
}

.skeleton-w-60 {
    width: 60%;
}

.skeleton-w-70 {
    width: 70%;
}

.skeleton-w-80 {
    width: 80%;
}

.skeleton-w-100 {
    width: 100%;
}

.ticker-item.skeleton-item {
    min-width: 7.1188rem;
    max-width: 7.1188rem;
    padding: .4188rem .5025rem;
}

.ticker-track.skeleton-mode {
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.ticker-track.skeleton-mode .ticker-item.skeleton-item {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
}

.ticker-item.skeleton-item .skeleton-line {
    margin: .2513rem auto;
}

.chart-loader {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(20, 20, 20, 0.82);
    border-radius: .2513rem;
    pointer-events: none;
}

.chart-loader.spinner-mode {
    background: transparent;
    color: #28a745;
}

.chart-loader.spinner-mode i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

html[data-mode="light"] .chart-loader,
body.light .chart-loader {
    background: rgba(255, 255, 255, 0.78);
}

html[data-mode="light"] .chart-loader.spinner-mode,
body.light .chart-loader.spinner-mode {
    background: transparent;
}

.chart-skeleton {
    width: 92%;
    height: 86%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: .4188rem;
}

.chart-skeleton.list .skeleton-line {
    height: .67rem;
    margin-bottom: .335rem;
}

@keyframes skeleton-shimmer {
    0% {
        left: -150%;
    }

    100% {
        left: 150%;
    }
}

/* Vertical Weekly News (Digest) Styles */
.digest-vertical-box {
    width: 100%;
    background: #121212;
    border: none;
    overflow: hidden;
    position: relative;
    /* Was fixed 90vh. Now flexible: the floor keeps 3 fully visible items
       (item = 110px) plus a sliver above/below + header, and it grows to
       help fill taller screens. */
    height: auto;
    flex: 1 1 0;
    min-height: 13.4rem;
    color: #f8fafc;
    border-radius: 0;
    display: flex;
    flex-direction: column;
}

.digest-header {
    padding: 1.005rem;
    background-color: #1f1f1f;
    color: #f0f0f0;
    font-weight: 600;
    font-size: 1.005rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5025rem;
    border-bottom: .0419rem solid #333;
}

.digest-title-group {
    display: flex;
    align-items: center;
    gap: .5025rem;
}

.digest-actions {
    display: flex;
    gap: .335rem;
}

.digest-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.1725rem;
    height: 1.1725rem;
    padding: 0;
    background-color: #1a1a1a;
    color: #e0e0e0;
    border: .0419rem solid #333;
    border-radius: .1675rem;
    cursor: pointer;
    font-size: .5025rem;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.digest-action-btn:hover {
    background-color: #262626;
    border-color: #444;
    color: #fff;
}

.digest-viewport {
    flex: 1;
    min-height: 10.05rem;
    padding: 0 1.005rem;
    overflow: hidden;
    position: relative;
    background-color: #121212;
    --digest-bg: #121212;
}

.digest-viewport::before,
.digest-viewport::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 30%;
    min-height: 2.5125rem;
    max-height: 4.1875rem;
    z-index: 2;
    pointer-events: none;
}

.digest-viewport::before {
    top: 0;
    background: linear-gradient(to bottom, var(--digest-bg) 0%, transparent 100%);
    backdrop-filter: blur(.0628rem);
}

.digest-viewport::after {
    bottom: 0;
    background: linear-gradient(to top, var(--digest-bg) 0%, transparent 100%);
    backdrop-filter: blur(.0628rem);
}

.digest-list {
    list-style: none;
    padding: 0;
    margin: 0;
    transition: transform 0.6s ease;
}

.digest-v-item {
    height: 4.6063rem;
    /* Increased for larger font */
    display: flex;
    align-items: center;
    gap: .6281rem;
    font-size: .8375rem;
    line-height: 1.5;
    font-weight: 600;
    color: #94a3b8;
    transition: all 0.4s ease;
    text-align: left;
    padding-left: .67rem;
    padding-right: .67rem;
    box-sizing: border-box;
    overflow: hidden;
}

.digest-icon {
    flex-shrink: 0;
    width: 1.005rem;
    height: 1.005rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .7538rem;
    transition: transform 0.4s;
}

.digest-v-item.up .digest-icon,
.digest-v-item.up .trend-highlight,
.digest-v-item.up b,
.digest-v-item.up strong {
    color: #f87171;
}

.digest-v-item.down .digest-icon,
.digest-v-item.down .trend-highlight,
.digest-v-item.down b,
.digest-v-item.down strong {
    color: #4ade80;
}

.digest-v-item.active {
    opacity: 1;
    background-color: rgba(31, 111, 235, 0.10);
    box-shadow: inset .1256rem 0 0 #1f6feb;
    border-radius: .1675rem;
}

html[data-mode="dark"] .digest-v-item.active {
    color: #ffffff !important;
    background-color: rgba(76, 175, 80, 0.12) !important;
    box-shadow: inset .1256rem 0 0 #4caf50 !important;
}
/* active: gray text -> white, but keep up/down numbers colored */
html[data-mode="dark"] .digest-v-item.active.up b,
html[data-mode="dark"] .digest-v-item.active.up strong,
html[data-mode="dark"] .digest-v-item.active.up .trend-highlight,
html[data-mode="dark"] .digest-v-item.active.up .digest-icon { color: #f87171 !important; }
html[data-mode="dark"] .digest-v-item.active.down b,
html[data-mode="dark"] .digest-v-item.active.down strong,
html[data-mode="dark"] .digest-v-item.active.down .trend-highlight,
html[data-mode="dark"] .digest-v-item.active.down .digest-icon { color: #4ade80 !important; }

html[data-mode="dark"] .digest-v-item {
    color: #94a3b8;
}

html[data-mode="dark"] .digest-v-item:hover {
    background: rgba(76, 175, 80, 0.07) !important;
    color: #e2e8f0 !important;
    cursor: pointer !important;
}

html[data-mode="dark"] .digest-v-item.up .digest-icon,
html[data-mode="dark"] .digest-v-item.up .trend-highlight,
html[data-mode="dark"] .digest-v-item.up b,
html[data-mode="dark"] .digest-v-item.up strong { color: #f87171; }

html[data-mode="dark"] .digest-v-item.down .digest-icon,
html[data-mode="dark"] .digest-v-item.down .trend-highlight,
html[data-mode="dark"] .digest-v-item.down b,
html[data-mode="dark"] .digest-v-item.down strong { color: #4ade80; }

.digest-v-item.active .digest-icon {
    transform: scale(1.2);
}

/* ===== Digest Light Mode ===== */
html[data-mode="light"] .digest-vertical-box,
body.light .digest-vertical-box {
    background: #ffffff;
    color: #1f1f1f;
    border-right: .0419rem solid rgba(0,0,0,0.08);
}

html[data-mode="light"] .digest-header,
body.light .digest-header {
    background-color: var(--strip-bg, #C8DAEF);
    color: #1f1f1f;
    border-bottom: .0419rem solid rgba(0,0,0,0.10);
}

html[data-mode="light"] .digest-viewport,
body.light .digest-viewport {
    background-color: #ffffff;
    --digest-bg: #ffffff;
}

html[data-mode="light"] .digest-viewport::before,
body.light .digest-viewport::before {
    background: linear-gradient(to bottom, #ffffff 0%, transparent 100%);
    backdrop-filter: none;
}

html[data-mode="light"] .digest-viewport::after,
body.light .digest-viewport::after {
    background: linear-gradient(to top, #ffffff 0%, transparent 100%);
    backdrop-filter: none;
}

html[data-mode="light"] .digest-v-item,
body.light .digest-v-item {
    color: #475569;
}

html[data-mode="light"] .digest-v-item.up .digest-icon,
html[data-mode="light"] .digest-v-item.up .trend-highlight,
html[data-mode="light"] .digest-v-item.up b,
html[data-mode="light"] .digest-v-item.up strong,
body.light .digest-v-item.up .digest-icon,
body.light .digest-v-item.up .trend-highlight,
body.light .digest-v-item.up b,
body.light .digest-v-item.up strong {
    color: #dc2626;
}

html[data-mode="light"] .digest-v-item.down .digest-icon,
html[data-mode="light"] .digest-v-item.down .trend-highlight,
html[data-mode="light"] .digest-v-item.down b,
html[data-mode="light"] .digest-v-item.down strong,
body.light .digest-v-item.down .digest-icon,
body.light .digest-v-item.down .trend-highlight,
body.light .digest-v-item.down b,
body.light .digest-v-item.down strong {
    color: #16a34a;
}

html[data-mode="light"] .digest-v-item.active,
body.light .digest-v-item.active {
    background-color: rgba(26, 43, 75, 0.08);
    box-shadow: inset .1256rem 0 0 #1A2B4B;
}

html[data-mode="light"] .digest-action-btn,
body.light .digest-action-btn {
    background-color: var(--bg-color, #ffffff);
    color: #1f1f1f;
    border-color: rgba(0,0,0,0.15);
}

html[data-mode="light"] .digest-action-btn:hover,
body.light .digest-action-btn:hover {
    background-color: var(--btn-hover-bg, #ffe27d);
    border-color: rgba(0,0,0,0.25);
}

html[data-mode="light"] #rightSidebar,
body.light #rightSidebar {
    background-color: #ffffff;
    border-left: .0419rem solid #e0e0e0;
}

html[data-mode="light"] .right-sidebar-product,
html[data-mode="light"] .right-bar-extra-info,
html[data-mode="light"] .right-bar-performance-table,
html[data-mode="light"] .right-bar-region-summary,
html[data-mode="light"] .right-bar-region-table,
body.light .right-sidebar-product,
body.light .right-bar-extra-info,
body.light .right-bar-performance-table,
body.light .right-bar-region-summary,
body.light .right-bar-region-table {
    background-color: #ffffff;
    color: #1f1f1f;
}

html[data-mode="light"] .right-sidebar-product-row,
body.light .right-sidebar-product-row {
    border-bottom: .0419rem solid #e6e6e6;
}

html[data-mode="light"] .right-sidebar-product-highlight,
body.light .right-sidebar-product-highlight {
    background: #f3f4f6;
    color: #1f1f1f;
}

.right-sidebar-product {
    width: 100%;
    height: 9.2125rem;
    /* header + 5 rows */
    overflow: hidden;
    position: relative;
    font-family: Arial, sans-serif;
    color: #e0e0e0;
}

.right-sidebar-product-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    align-items: center;
    text-align: center;
    padding: .2094rem .335rem;
    /* reduced */
    font-size: .5863rem;
    border-bottom: .0419rem solid #333;
    transition: background 0.3s;
    width: 100%;
    box-sizing: border-box;
}

.right-sidebar-product-row span:first-child {
    text-align: left;
    /* product name left aligned */
    font-size: 1.005rem;
}

.right-sidebar-product-highlight {
    background: #2a2a2a;
    font-weight: bold;
    color: #ffffff;
}

.right-sidebar-product-list {
    transition: transform 0.5s ease-in-out;
}

/* Arrow indicators */
.arrow-up {
    color: #4caf50;
    font-weight: bold;
}

.arrow-down {
    color: #f44336;
    font-weight: bold;
}

/* Extra info below product list */
.extra-info {
    margin-top: .2094rem;
    /* reduced */
    padding: .2094rem;
    /* reduced */
    border-top: .0419rem solid #333;
    font-size: .5444rem;
    background: #1f1f1f;
    color: #bbbbbb;
}

.right-bar-extra-info {
    margin-top: .2094rem;
    /* reduced */
    padding: .2094rem;
    /* reduced */
    border-top: .0419rem solid #333;
    font-size: .5444rem;
    background: #1f1f1f;
    color: #bbbbbb;
}

.right-bar-performance-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: .2094rem;
    /* reduced */
    font-size: .5444rem;
    table-layout: fixed;
}

.right-bar-performance-table th,
.right-bar-performance-table td {
    border: .0419rem solid #333;
    padding: .2094rem;
    /* reduced */
    text-align: center;
    word-wrap: break-word;
}

.right-bar-performance-table th {
    background: #2a2a2a;
    color: #e0e0e0;
    font-weight: 600;
}

body.light .right-bar-performance-table th {
    background: var(--strip-bg, #C8DAEF);
    color: #1f1f1f;
}

body.light .right-bar-performance-table th,
body.light .right-bar-performance-table td {
    border-color: #e0e0e0;
    color: #1f1f1f;
}

.right-bar-performance-positive {
    color: #4caf50;
    font-weight: bold;
}

.right-bar-performance-negative {
    color: #f44336;
    font-weight: bold;
}

.right-bar-performance-neutral {
    color: #999999;
    font-weight: bold;
}

.right-bar-region-summary {
    margin-top: .2094rem;
    /* reduced */
    padding: .2094rem;
    /* reduced */
    background: #1f1f1f;
    border: .0419rem solid #333;
    border-radius: .1675rem;
    font-size: .5444rem;
    color: #e0e0e0;
    overflow-x: auto;
    /* keep table inside card */
}

.right-bar-region-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: .2094rem;
    /* reduced */
    font-size: .5025rem;
    /* slightly smaller to fit */
    table-layout: fixed;
}

.right-bar-region-table th,
.right-bar-region-table td {
    border: .0419rem solid #333;
    padding: .2094rem;
    /* reduced */
    text-align: center;
    color: #e0e0e0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.right-bar-region-table th {
    background: #2a2a2a;
    font-weight: 600;
}

body.light .right-bar-region-summary {
    background: #ffffff;
    color: #1f1f1f;
    border-color: #e0e0e0;
}

body.light .right-bar-region-table th {
    background: var(--strip-bg, #C8DAEF);
    color: #1f1f1f;
}

body.light .right-bar-region-table th,
body.light .right-bar-region-table td {
    border-color: #e0e0e0;
    color: #1f1f1f;
}

body.light .right-bar-region-legend {
    color: rgba(0, 0, 0, 0.6);
}

/* Tint highlights for metrics */
.region-increase {
    background-color: rgba(76, 175, 80, 0.2);
}

.region-decrease {
    background-color: rgba(244, 67, 54, 0.2);
}

.region-expensive {
    background-color: rgba(255, 215, 0, 0.2);
}

.region-cheap {
    background-color: rgba(3, 169, 244, 0.2);
}

/* Heatmap classes */
.heatmap-positive {
    background-color: rgba(76, 175, 80, 0.3);
}

.heatmap-negative {
    background-color: rgba(244, 67, 54, 0.3);
}

.heatmap-neutral {
    background-color: rgba(153, 153, 153, 0.2);
}

/* Optional legend styling */
.right-bar-region-legend {
    margin: .2094rem 0;
    /* reduced */
    font-size: .5025rem;
    color: #bbbbbb;
}

.right-bar-region-legend span {
    padding: .0838rem .2094rem;
    /* reduced */
    border-radius: .1256rem;
    margin-right: .2094rem;
    /* reduced */
    display: inline-block;
}

/* Tooltip for truncated region names */
.right-bar-region-table td[title] {
    cursor: help;
}

.right-bar-insights {
    margin-top: .2094rem;
    /* reduced from 15px */
    padding: .2094rem;
    /* reduced from 10px */
    border-top: .0419rem solid #333;
    font-size: .5444rem;
    background: #1f1f1f;
    color: #bbbbbb;
}

.right-bar-insights-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: .2094rem;
    /* reduced from 10px */
    font-size: .5444rem;
    table-layout: fixed;
}

.right-bar-insights-table th,
.right-bar-insights-table td {
    border: .0419rem solid #333;
    padding: .2094rem;
    /* reduced from 6px 8px */
    text-align: center;
    word-wrap: break-word;
}

.right-bar-insights-table th {
    background: #2a2a2a;
    color: #e0e0e0;
    font-weight: 600;
}

body.light .right-bar-insights-table th {
    background: var(--strip-bg, #C8DAEF);
    color: #1f1f1f;
}

body.light .right-bar-insights-table th,
body.light .right-bar-insights-table td {
    border-color: #e0e0e0;
    color: #1f1f1f;
}

body.light .right-bar-extra-info,
body.light .extra-info,
body.light .right-bar-insights {
    border-top-color: #e0e0e0;
    color: rgba(0, 0, 0, 0.7);
}

/* Tint styles for values */
.insight-positive {
    background-color: rgba(76, 175, 80, 0.15);
    /* green tint */
    color: #4caf50;
    font-weight: bold;
}

.insight-negative {
    background-color: rgba(244, 67, 54, 0.15);
    /* red tint */
    color: #f44336;
    font-weight: bold;
}

.insight-expensive {
    background-color: rgba(255, 193, 7, 0.15);
    /* amber tint */
    color: #ffc107;
    font-weight: bold;
}

.insight-cheapest {
    background-color: rgba(33, 150, 243, 0.15);
    /* blue tint */
    color: #2196f3;
    font-weight: bold;
}

.table-picker {
    position: relative;
    height: 8.375rem;
    /* 5 rows × 40px each */
    overflow: hidden;
}

.table-picker-list {
    transition: transform 0.6s ease;
}

.table-picker-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    height: 1.675rem;
    line-height: 1.675rem;
    text-align: center;
    color: #666;
}

.table-picker-row.active {
    background-color: rgba(76, 175, 80, 0.2);
    /* highlight background */
    color: #4caf50;
    font-weight: bold;
}

/* ============================
   RIGHT SIDEBAR – MATCH CARD GRID HEIGHT
Card grid: 2 rows × 49.4vh = 98.8vh
   + small extra for headers/margins
   ============================ */

#rightSidebar {
    background-color: transparent;
    color: #e0e0e0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    border-left: none;

    box-sizing: border-box;

    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;

    position: relative;
    top: auto;
    align-self: stretch !important;
    display: flex;
    flex-direction: column;
    z-index: 100;

    overflow: hidden;
}

/* Sidebar header */
#rightSidebar .sidebar-header {
    background-color: #1f1f1f;
    border-bottom: .0419rem solid #333;
    color: #f0f0f0;
    padding: 1.005rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;

    position: sticky;
    top: 0;
    z-index: 10;
}

#rightSidebar .sidebar-actions {
    display: flex;
    gap: .2513rem;
}

#rightSidebar .sidebar-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.1725rem;
    height: 1.1725rem;
    padding: 0;
    background-color: #1a1a1a;
    color: #e0e0e0;
    border: .0419rem solid #333;
    border-radius: .1675rem;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

#rightSidebar .sidebar-action-btn:hover {
    background-color: #2a2a2a;
    border-color: #444;
}

#rightSidebar .sidebar-action-btn:focus {
    outline: none;
    box-shadow: 0 0 0 .0838rem rgba(76, 175, 80, 0.25);
}

/* Sidebar body */
#rightSidebar .sidebar-body {
    padding: .2094rem;
    background-color: #121212;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden !important;
}

/* Sidebar footer */
#rightSidebar .sidebar-footer {
    background-color: #1f1f1f;
    border-top: .0419rem solid #333;
    padding: .2094rem .335rem;
    font-size: .5695rem;
    color: #bbbbbb;
    text-align: center;
}

.infografika-toggle {
    position: fixed;
    right: 5.1088rem;   /* sit to the LEFT of the chat button (right:26 + ~84 width + gap) */
    bottom: 1.0888rem;
    z-index: 1200;
    display: inline-flex;
    align-items: center;
    gap: .335rem;
    padding: .335rem .5863rem;
    border-radius: .335rem;
    background-color: #1b1b1b;
    color: #e0e0e0;
    border: .0419rem solid #5a5a5a;
    font-weight: 600;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

/* Desktop: the infographics panel is always part of the layout, so the
   show/hide button is only offered on phones and tablets (<= 1024px),
   where the panel slides in. Matches isMobile() in right_sidebar.js. */
@media (min-width: 1025px) {
    .infografika-toggle { display: none; }
}
/* Bottom-right corner, or to the left of the chat button (vertically centred
   on it) on pages that show the chatbot. */
@media (max-width: 1024px) {
    .infografika-toggle { right: .67rem; bottom: .67rem; }
    body:has(#cbWidget) .infografika-toggle { right: 5.1088rem; bottom: 2.06rem; }
}
@media (max-width: 991.98px) {
    body:has(#cbWidget) .infografika-toggle { right: 3.685rem; bottom: 1.1rem; }
}

.infografika-toggle:hover {
    border-color: #2f80ff;
}

.infografika-toggle:focus {
    outline: none;
    box-shadow: 0 0 0 .0838rem rgba(47, 128, 255, 0.35);
}

.infografika-toggle.is-active {
    background-color: #1f6feb;
    color: #ffffff;
    border-color: #1f6feb;
}

/* Toggle button */
.sidebar-toggle {
    position: fixed;
    bottom: .8375rem;
    right: .8375rem;
    z-index: 1100;
    background-color: #1f1f1f;
    color: #e0e0e0;
    border: .0419rem solid #333;
    border-radius: .2513rem;
    padding: .2094rem .335rem;
    transition: background-color 0.2s, transform 0.2s;
}

.sidebar-toggle:hover {
    background-color: #333;
    transform: translateY(-.0838rem);
}

/* ============================
   OPTIONAL: SCROLL ONLY TABLES
   ============================ */
#rightSidebar .sidebar-body {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.right-bar-region-table-wrapper,
.right-bar-performance-table-wrapper {
    overflow: hidden;
}

#rightSidebar,
#rightSidebar .sidebar-body,
#rightSidebar .right-bar-region-table-wrapper,
#rightSidebar #regionSummary {
    overflow-y: hidden;
}

.right-bar-region-table-wrapper {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: .2094rem;
}

#right-sidebar-product {
    flex: 1 1 auto;
    min-height: 9.2125rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

#right-sidebar-product .table-picker {
    flex: 1 1 auto;
    min-height: 8.375rem;
}

/* Light mode overrides for sidebar (dark styles above use !important) */
html[data-mode="light"] #rightSidebar,
body.light #rightSidebar {
    background-color: var(--bg-color);
    color: var(--text-color);
    border-left: .0419rem solid rgba(0, 0, 0, 0.12);
    border-right: .0419rem solid rgba(0, 0, 0, 0.12);
    border-top: .0419rem solid rgba(0, 0, 0, 0.12);
    border-bottom: .0419rem solid rgba(0, 0, 0, 0.12);
}

html[data-mode="light"] #rightSidebar .sidebar-header,
body.light #rightSidebar .sidebar-header {
    background-color: var(--strip-bg, #C8DAEF);
    color: var(--text-color);
    border-color: rgba(0, 0, 0, 0.12);
}

html[data-mode="light"] #rightSidebar .sidebar-footer,
body.light #rightSidebar .sidebar-footer {
    background-color: var(--bg-color);
    color: var(--text-color);
    border-color: rgba(0, 0, 0, 0.12);
}

html[data-mode="light"] #rightSidebar .sidebar-header,
body.light #rightSidebar .sidebar-header {
    border-bottom-color: rgba(0, 0, 0, 0.12);
}

html[data-mode="light"] #rightSidebar .sidebar-footer,
body.light #rightSidebar .sidebar-footer {
    border-top-color: rgba(0, 0, 0, 0.12);
}

html[data-mode="light"] #rightSidebar .sidebar-body,
body.light #rightSidebar .sidebar-body {
    background-color: var(--bg-color);
    color: var(--text-color);
}

html[data-mode="light"] #rightSidebar .sidebar-action-btn,
body.light #rightSidebar .sidebar-action-btn {
    background-color: var(--bg-color);
    color: var(--text-color);
    border-color: rgba(0, 0, 0, 0.12);
}

html[data-mode="light"] #rightSidebar .sidebar-action-btn:hover,
body.light #rightSidebar .sidebar-action-btn:hover {
    background-color: var(--btn-hover-bg, #ffe27d) !important;
    border-color: rgba(0, 0, 0, 0.25) !important;
}

html[data-mode="light"] #rightSidebar .sidebar-action-btn:active,
body.light #rightSidebar .sidebar-action-btn:active {
    background-color: var(--btn-hover-bg, #ffe27d) !important;
    border-color: rgba(0, 0, 0, 0.25) !important;
}

html[data-mode="light"] .extra-info,
html[data-mode="light"] .right-bar-extra-info,
html[data-mode="light"] .right-bar-region-summary,
html[data-mode="light"] .right-bar-insights,
body.light .extra-info,
body.light .right-bar-extra-info,
body.light .right-bar-region-summary,
body.light .right-bar-insights {
    background: var(--bg-color);
    color: rgba(0, 0, 0, 0.70);
    border-top-color: rgba(0, 0, 0, 0.12);
    border-color: rgba(0, 0, 0, 0.12);
}

html[data-mode="light"] .infografika-toggle,
body.light .infografika-toggle {
    background-color: var(--bg-color);
    color: var(--text-color);
    border-color: rgba(0, 0, 0, 0.20);
}

/* Light mode: active state uses the button hover/active color */
html[data-mode="light"] .infografika-toggle.is-active,
body.light .infografika-toggle.is-active {
    background-color: var(--btn-hover-bg, #ffe27d) !important;
    border-color: rgba(0, 0, 0, 0.25) !important;
    color: #000 !important;
}

/* Hover effects (light mode) */
html[data-mode="light"] .infografika-toggle:hover,
body.light .infografika-toggle:hover {
    border-color: #2f80ff !important;
    background-color: var(--btn-hover-bg, #ffe27d) !important;
}

html[data-mode="light"] .infografika-toggle:active,
body.light .infografika-toggle:active {
    background-color: var(--btn-hover-bg, #ffe27d) !important;
}

html[data-mode="light"] .infografika-toggle.is-active:hover,
body.light .infografika-toggle.is-active:hover {
    background-color: var(--btn-hover-bg, #ffe27d) !important;
    border-color: rgba(0, 0, 0, 0.35) !important;
    filter: none;
}

/* ── Mobile panel: correct positioning + light mode polish ── */
@media (max-width: 991.98px) {
    /* uniform mobile box height (match kutilmalar 650px) */
    .card-full { height: 27.2188rem !important; }
    /* sidebar-level overflow fix so sidebar scrolls as a whole */
    #rightSidebar .sidebar-body,
    #rightSidebar .right-bar-region-table-wrapper,
    #rightSidebar #regionSummary {
        overflow: visible !important;
        height: auto !important;
        max-height: none !important;
        flex: 0 0 auto !important;
    }

    /* Light mode: clean white panel with blue header accent */
    html[data-mode="light"] #rightSidebar,
    body.light #rightSidebar {
        background-color: #f7f9fc;
        color: #1a1a1a;
        border: none;
        box-shadow: -.0838rem 0 .8375rem rgba(0,0,0,0.15);
    }
    html[data-mode="light"] #rightSidebar .sidebar-header,
    body.light #rightSidebar .sidebar-header {
        background-color: #1A2B4B;
        color: #ffffff;
    }
    html[data-mode="light"] #rightSidebar .sidebar-header p,
    body.light #rightSidebar .sidebar-header p {
        color: #ffffff;
    }
    html[data-mode="light"] #rightSidebar .sidebar-action-btn,
    body.light #rightSidebar .sidebar-action-btn {
        background: transparent;
        color: #ffffff;
        border-color: rgba(255,255,255,0.3);
    }
    html[data-mode="light"] #rightSidebar .sidebar-body,
    body.light #rightSidebar .sidebar-body {
        background-color: #f7f9fc;
        color: #1a1a1a;
    }
    html[data-mode="light"] .right-sidebar-product,
    html[data-mode="light"] .right-bar-extra-info,
    html[data-mode="light"] .right-bar-insights,
    html[data-mode="light"] .right-bar-region-summary,
    body.light .right-sidebar-product,
    body.light .right-bar-extra-info,
    body.light .right-bar-insights,
    body.light .right-bar-region-summary {
        background-color: #f7f9fc;
        color: #1a1a1a;
    }
    /* Light mode toggle button */
    html[data-mode="light"] .infografika-toggle,
    body.light .infografika-toggle {
        background-color: #1A2B4B;
        color: #ffffff;
        border-color: #1A2B4B;
    }
    html[data-mode="light"] .infografika-toggle.is-active,
    body.light .infografika-toggle.is-active {
        background-color: #1A2B4B !important;
        color: #ffffff !important;
        border-color: #1A2B4B !important;
    }
}

html,
body {
    height: 100%;
    /* ensure full viewport height */
    overflow: auto;
}

.row.h-100 {
    height: 100%;
}

.card-full {
    height: 80vh;
    /* each card fills half the screen height */
}
@media (min-width: 992px) { .card-full { height: 53.6vh; } }

.row {
    margin-left: -.1675rem;
    /* reduce default gutter */
    margin-right: -.1675rem;
}

.row>[class*="col-"] {
    padding-left: .134rem;
    padding-right: .134rem;
}

/* Card structure for proper chart display */
.card-full {
    display: flex;
    flex-direction: column;
}

.card-full .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: .335rem;
    min-height: 0;
    /* Important for flex children */
}

.chart-container {
    flex: 1;
    width: 100%;
    min-height: 13.6094rem;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden !important;
    /* we'll scroll the sub-div */
}

#cpi_composition_chart.chart-container {
    min-height: 15.2844rem;
}


.list-rows-container {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: .0838rem;
    /* space for scrollbar */
}

/* List View Charts Styling */
.product-header,
.region-header,
.district-header {
    display: flex;
    font-weight: 600;
    font-size: .8375rem;
    padding: .5025rem .335rem;
    margin-bottom: 0;
    border-bottom: .0419rem solid #333;
    background: var(--strip-bg, var(--bg-color));
    color: var(--text-color);
    position: sticky;
    top: 0;
    z-index: 10;
}

body.light .product-header,
body.light .region-header,
body.light .district-header {
    border-bottom-color: rgba(0, 0, 0, 0.125);
}

.product-row,
.region-row,
.district-row {
    display: flex;
    align-items: center;
    padding: .4188rem .335rem;
    margin-bottom: 0;
    border-bottom: .0419rem solid #333;
    /* border on list items */
    transition: background 0.2s ease;
    cursor: pointer;
    font-size: .8375rem;
}

body.light .product-row,
body.light .region-row,
body.light .district-row {
    border-bottom-color: rgba(0, 0, 0, 0.125);
}

.product-row:hover,
.region-row:hover,
.district-row:hover {
    background: rgba(255, 255, 255, 0.05);
}

html[data-mode="light"] .product-row:hover,
html[data-mode="light"] .region-row:hover,
html[data-mode="light"] .district-row:hover {
    background: rgba(26, 43, 75, 0.06);
    color: #1A2B4B;
}

.product-row.active-row,
.region-row.active-row,
.district-row.active-row {
    background: rgba(76, 175, 80, 0.12);
    border-left: .1256rem solid #4caf50;
    padding-left: .2094rem;
}

html[data-mode="light"] .product-row.active-row,
html[data-mode="light"] .region-row.active-row,
html[data-mode="light"] .district-row.active-row {
    background: rgba(26, 43, 75, 0.10);
    border-left: .1256rem solid #1A2B4B;
}

.positive {
    color: #4caf50;
    font-weight: 600;
}

.negative {
    color: #f44336;
    font-weight: 600;
}


/* Refined List View Container (Borders removed from box) */
.list-view-container {
    border: none;
    background: transparent;
    padding: 0;
    box-shadow: none;
}

.product-header,
.region-header,
.district-header {
    border-radius: .2513rem .2513rem 0 0;
    margin-bottom: .1675rem;
    border-bottom: .0419rem solid #333;
}

body.light .product-header,
body.light .region-header,
body.light .district-header {
    border-bottom-color: rgba(0, 0, 0, 0.125);
}

html[data-mode="light"] .product-header,
html[data-mode="light"] .region-header,
html[data-mode="light"] .district-header {
    background: #C8DAEF;
    color: #1A2B4B;
    border-bottom-color: rgba(26, 43, 75, 0.20);
}

.column-title {
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .0419rem;
    border-bottom: .0838rem solid #4caf50;
    padding-bottom: .335rem;
    display: inline-block;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.005rem;
}

body.light .column-title {
    color: #000;
}

.card-header h6 {
    font-size: 1.005rem;
}

.column3-subtitle {
    font-style: italic;
}

#rightSidebar .sidebar-header p {
    font-size: 1.005rem;
}

.right-bar-extra-info h6,
.right-bar-insights h6,
.right-bar-region-summary h6,
.table-picker-list h6 {
    font-size: 1.005rem;
}

.right-bar-extra-info>p:first-child,
.right-bar-insights>p:first-child,
.right-bar-region-summary>p:first-child {
    font-size: 1.005rem;
    font-weight: 600;
    margin-bottom: .335rem;
}

/* ===== Kutilmalar-style card overrides ===== */
.card-full {
    border-radius: .5025rem !important;
    border: .0419rem solid rgba(127, 127, 127, 0.18) !important;
    box-shadow: none !important;
}

.card-full .card-header {
    border-radius: .5025rem .5025rem 0 0 !important;
    background: transparent !important;
    border-bottom: .0419rem solid rgba(127, 127, 127, 0.18) !important;
}

/* Fullscreen button — like Kutilmalar */
.card-full .card-header .btn-outline-secondary {
    background: transparent;
    border: .0419rem solid rgba(127, 127, 127, 0.3);
    border-radius: .2513rem;
    color: var(--text-color, #333);
    padding: .1256rem .2931rem;
    font-size: .6281rem;
    line-height: 1;
    box-shadow: none;
}

.card-full .card-header .btn-group {
    box-shadow: none;
    border: none;
}

/* Card footer — like .box-footer */
.card-full .card-footer {
    background: transparent;
    border-top: .0419rem solid rgba(127, 127, 127, 0.15) !important;
    border-radius: 0 0 .5025rem .5025rem !important;
    padding: .2094rem .5863rem .335rem;
    font-size: .6281rem;
    opacity: 1;
    line-height: 1.5;
    min-height: .7538rem;
}

/* Footer filter tags — same design as the mobile app (and .bf-tag in Kutilmalar):
   no pill, primary-colour text, a faint "×" between values */
.footer-tag {
    font-size: .6281rem;
    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 */
.footer-tag + .footer-tag::before {
    content: "\00d7";
    display: inline-block;
    margin: 0 .2931rem;
    font-weight: 400;
    opacity: .55;
}
html[data-mode="dark"] .footer-tag { color: #4caf50; }

/* CPI composition chart: fill box height */
#cpi_composition_chart.chart-container {
    min-height: 0;
    height: 100%;
    flex: 1 1 0;
}

/* Fullscreen exit button */
#globalFsExitBtn {
    display: none;
    position: fixed;
    top: .5863rem;
    right: .5863rem;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    border: .0419rem solid rgba(255, 255, 255, 0.35);
    border-radius: .2513rem;
    padding: .2094rem .5025rem;
    font-size: .5863rem;
    cursor: pointer;
    line-height: 1.4;
}

#globalFsExitBtn:hover {
    background: rgba(0, 0, 0, 0.75);
}

/* Bigger Highcharts labels on dashboard (axes, legend, data labels, tooltip) */
.chart-container .highcharts-axis-labels text,
.chart-container .highcharts-xaxis-labels text,
.chart-container .highcharts-yaxis-labels text,
.chart-container .highcharts-data-label text,
.chart-container .highcharts-data-label span,
.chart-container .highcharts-legend-item text,
.chart-container .highcharts-axis-title text {
    font-size: .67rem !important;
}

.chart-container .highcharts-tooltip text,
.chart-container .highcharts-tooltip span {
    font-size: .67rem !important;
}

/* Bigger tooltip in fullscreen for row 3 linegraphs (match expectations_page) */
#linegraph_region_chart:fullscreen .highcharts-tooltip,
#linegraph_region_chart:fullscreen .highcharts-tooltip span,
#linegraph_region_chart:fullscreen .highcharts-tooltip text,
#linegraph_district_chart:fullscreen .highcharts-tooltip,
#linegraph_district_chart:fullscreen .highcharts-tooltip span,
#linegraph_district_chart:fullscreen .highcharts-tooltip text {
    font-size: .8375rem !important;
    line-height: 1.6;
}

/* ── Single Blue palette ── */
html[data-mode="light"] {
  --p:      #1A2B4B;   /* navy primary  */
  --p-d:    #0D1A2F;   /* navy dark     */
  --p-l:    #EAF0FA;   /* navy-50 tint  */
  --p-m:    #C8DAEF;   /* navy-100 highlight */
  --card:   #ffffff;
  --border: #e5e7eb;   /* gray-200 — very subtle */
  --sh:     0 .0419rem .0838rem rgba(0,0,0,.04), 0 .1675rem .5025rem rgba(0,0,0,.06);
  --sh-h:   0 .0838rem .2513rem rgba(0,0,0,.06), 0 .5025rem 1.1725rem rgba(0,0,0,.10);
  --txt:    #111827;   /* gray-900 */
  --txt2:   #6b7280;   /* gray-500 */
  --txt3:   #9ca3af;   /* gray-400 */
  --r:      .5025rem;
  --r-sm:   .335rem;
  --green:  #057a55;
  --red:    #e02424;
}

/* ── Page bg ── */
/* bg image is handled by the fixed body.horizontal::before layer at the top of this file */
html[data-mode="light"] body.horizontal .wrapper {
  background: transparent !important;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   CARDS  — screenshot-matched style
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
html[data-mode="light"] .card-full {
  background:    var(--card);
  border:        .0419rem solid var(--border) !important;
  border-radius: var(--r) !important;
  box-shadow:    var(--sh) !important;
  overflow:      hidden;
  transition:    box-shadow .2s ease, transform .18s ease;
}
html[data-mode="light"] .card-full:hover {
  box-shadow: var(--sh-h) !important;
  transform: translateY(-.0838rem);
}

/* card header */
html[data-mode="light"] .card-full .card-header {
  background:      #fff !important;
  border-bottom:   .0419rem solid var(--border) !important;
  border-radius:   0 !important;
  padding:         .67rem .8375rem .5444rem;
  display:         flex;
  align-items:     flex-start !important;
  justify-content: space-between;
}

/* title */
html[data-mode="light"] .card-header h6,
html[data-mode="light"] .card-full .card-header h6 {
  font-size:   .9213rem;
  font-weight: 700;
  color:       var(--txt);
  margin:      0;
  line-height: 1.3;
}

/* subtitle */
html[data-mode="light"] .card-full .card-header .text-muted,
html[data-mode="light"] .card-full .card-header .column3-subtitle,
html[data-mode="light"] .column3-subtitle {
  font-size:   .7538rem;
  color:       var(--txt2) !important;
  font-style:  normal;
  font-weight: 400;
  margin-top:  .1256rem;
}

/* body */
html[data-mode="light"] .card-full .card-body { padding: .335rem .67rem; }

/* footer */
html[data-mode="light"] .card-full .card-footer {
  background:    #f9fafb;
  border-top:    .0419rem solid var(--border) !important;
  border-radius: 0 !important;
  padding:       .2513rem .8375rem .2931rem;
  font-size:     .6281rem;
  color:         var(--txt2) !important;
  font-weight:   400;
  opacity:       1;
}

/* fullscreen btn */
html[data-mode="light"] .card-full .card-header .btn-outline-secondary,
html[data-mode="light"] .card-full .card-header .btn-group .btn {
  background:    transparent;
  border:        .0419rem solid var(--border);
  border-radius: var(--r-sm);
  color:         var(--txt2);
  /* size, padding and icon size come from css/box-fullscreen.css (.nm-fs-btn),
     the same in both modes */
  box-shadow:    none;
  transition:    all .15s;
  flex-shrink:   0;
}
html[data-mode="light"] .card-full .card-header .btn-outline-secondary:hover,
html[data-mode="light"] .card-full .card-header .btn-group .btn:hover {
  background:   var(--p-l) !important;
  border-color: var(--p) !important;
  color:        var(--p) !important;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   DATE PICKER & FILTERS
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
html[data-mode="light"] #dateDropdownContainer select,
html[data-mode="light"] .date-dropdown-select {
  border:        .0419rem solid var(--border);
  border-radius: .335rem;
  background:    #fff;
  color:         var(--txt);
  font-weight:   600;
  font-size:     .7956rem;
  height:        1.5913rem;
  padding:       0 1.7588rem 0 .7538rem;
  box-shadow:    var(--sh);
}
html[data-mode="light"] .filter-chip {
  background:    #fff;
  border:        .0419rem solid var(--border);
  border-radius: .335rem;   /* match the date picker radius */
  color:         var(--txt);
  font-size:     .7538rem;
  font-weight:   500;
  height:        1.5913rem !important;
  padding:       0 .67rem;
  box-shadow:    var(--sh);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   TICKER — individual cards like screenshot
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
html[data-mode="light"] .ticker-wrap { background: transparent; height: auto; }
html[data-mode="light"] .ticker-track {
  background:    transparent;
  border:        none;
  border-radius: 0;
  box-shadow:    none;
  gap:           .335rem;
  padding:       .1675rem .0838rem;
}
html[data-mode="light"] .ticker-item {
  background:    #ffffff;
  border:        .0419rem solid var(--border);
  border-right:  .0419rem solid var(--border);
  border-radius: .4188rem;
  box-shadow:    0 .0838rem .335rem rgba(26,43,75,0.10), 0 .0419rem .1256rem rgba(0,0,0,0.06);
  color:         var(--txt);
  padding:       .5025rem .67rem;
  transition:    box-shadow .2s ease, transform .15s ease;
}
html[data-mode="light"] .ticker-item:hover {
  background:    rgba(26,43,75,0.05) !important;
  box-shadow:    0 .2513rem .8375rem rgba(26,43,75,0.15), 0 .0838rem .2513rem rgba(0,0,0,0.08) !important;
  transform:     translateY(-.0838rem) !important;
}

/* product name — small gray label, visual≈11px */
html[data-mode="light"] .product-name {
  color:       var(--txt2);
  font-size:   .7119rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .03em;
}
/* price — bold dark, visual≈16px */
html[data-mode="light"] .product-price {
  color:       var(--txt);
  font-weight: 800;
  font-size:   1.0469rem;
}
/* change values */
html[data-mode="light"] .product-change.positive { color: var(--green); font-size: .7119rem; font-weight: 600; }
html[data-mode="light"] .product-change.negative { color: var(--red); font-size: .7119rem; font-weight: 600; }
html[data-mode="light"] .product-change.neutral  { color: var(--txt3); font-size: .7119rem; }

/* ticker title above the strip */
html[data-mode="light"] .ticker-title {
  color:       var(--txt);
  font-size:   .9213rem;
  font-weight: 700;
  margin-bottom: .2513rem;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   RIGHT SIDEBAR
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
html[data-mode="light"] #rightSidebar {
  background:  #fff;
  border-left: .0419rem solid var(--border);
}

/* digest — light mode */
html[data-mode="light"] .digest-vertical-box {
  background:    transparent;
  border:        none;
  border-radius: 0;
  margin:        0;
  box-shadow:    none;
}
html[data-mode="light"] .digest-header {
  background:    #1A2B4B;
  color:         #ffffff;
  border-bottom: none;
  font-size:     .8375rem;
  font-weight:   700;
  padding:       .67rem .7538rem;
}
html[data-mode="light"] .digest-title-group { color: #ffffff; }
html[data-mode="light"] .digest-action-btn {
  background: rgba(255,255,255,0.15);
  border:     .0419rem solid rgba(255,255,255,0.30);
  color:      rgba(255,255,255,0.85);
  font-size:  .67rem;
  border-radius: .2513rem;
}
html[data-mode="light"] .digest-action-btn:hover { background: rgba(255,255,255,0.25) !important; color: #fff !important; }
html[data-mode="light"] .digest-viewport { background: #ffffff; --digest-bg:#ffffff; }
html[data-mode="light"] .digest-viewport::before { background: linear-gradient(to bottom, #ffffff 0%, transparent 100%); }
html[data-mode="light"] .digest-viewport::after  { background: linear-gradient(to top,   #ffffff 0%, transparent 100%); }
html[data-mode="light"] .digest-v-item {
  color:       #475569;
  font-size:   .7956rem;
  font-weight: 600;
  height:      4.02rem;
  padding:     0 .67rem;
  transition:  all .4s ease;
}
html[data-mode="light"] .digest-v-item:hover {
  background:  rgba(26,43,75,0.06) !important;
  color:       #1A2B4B !important;
  cursor:      pointer !important;
}
html[data-mode="light"] .digest-v-item.active {
  background:  rgba(26,43,75,0.08) !important;
  box-shadow:  inset .1256rem 0 0 #1A2B4B !important;
  font-weight: 600 !important;
}
html[data-mode="light"] .digest-v-item.up   b,
html[data-mode="light"] .digest-v-item.up   strong,
html[data-mode="light"] .digest-v-item.up   .digest-icon { color: var(--red); }
html[data-mode="light"] .digest-v-item.down b,
html[data-mode="light"] .digest-v-item.down strong,
html[data-mode="light"] .digest-v-item.down .digest-icon { color: var(--green); }

/* ── Tables / sidebar ── */
html[data-mode="light"] .right-bar-performance-table th {
  background: #C8DAEF; color: #1A2B4B;
  font-weight: 600; border-color: rgba(26,43,75,0.20); font-size: .7538rem;
}
html[data-mode="light"] .right-bar-performance-table td {
  border-color: var(--border); font-size: .7538rem; color: var(--txt);
}
html[data-mode="light"] .right-bar-extra-info,
html[data-mode="light"] .right-bar-region-summary {
  background: #fff; color: var(--txt); border-top: .0419rem solid var(--border);
}
html[data-mode="light"] .right-bar-extra-info h6,
html[data-mode="light"] .right-bar-region-summary h6,
html[data-mode="light"] .right-bar-insights h6 { color: var(--txt); font-weight: 700; font-size: .7956rem; }
html[data-mode="light"] .right-bar-extra-info>p:first-child,
html[data-mode="light"] .right-bar-region-summary>p:first-child { font-size: .7956rem; }
/* sizes shared by both modes (only colours differ), so nothing moves on a
   theme switch */
.right-bar-extra-info>p:first-child,
.right-bar-region-summary>p:first-child { font-size: .7956rem; }
.right-bar-performance-table th,
.right-bar-performance-table td { font-size: .7538rem; }
.card-header h6,
.card-full .card-header h6 { font-weight: 700; margin: 0; line-height: 1.3; }
.card-full .card-header { align-items: flex-start !important; }

/* Lightweight row charts (renderMiniBar / renderMiniSparkline in utils.js) */
.mini-bar-cell { display: flex; align-items: center; }
.mini-bar { position: relative; width: 100%; height: 100%; margin: 0 .4188rem; }
.mini-bar-zero { position: absolute; top: 18%; bottom: 18%; width: .0419rem; background: rgba(127,127,127,.55); }
.mini-bar-fill { position: absolute; top: 50%; height: .5863rem; transform: translateY(-50%); }
.mini-bar-fill.up { background: red; }
.mini-bar-fill.down { background: green; }
.mini-bar-label { position: absolute; top: 50%; transform: translateY(-50%); padding: 0 .1675rem;
  font-size: .4606rem; font-weight: 700; line-height: 1; white-space: nowrap; color: #000;
  text-shadow: 0 0 .0838rem #fff, 0 0 .0838rem #fff; }
.mini-bar-label.before { text-align: right; }
.mini-bar-label.inside, html[data-mode="dark"] .mini-bar-label.inside { color: #fff; text-shadow: 0 0 .0838rem rgba(0,0,0,.6); }
html[data-mode="dark"] .mini-bar-label { color: #fff; text-shadow: 0 0 .0838rem #000, 0 0 .0838rem #000; }
.mini-spark { display: block; width: 100%; height: 1.2563rem; overflow: visible; }
.mini-spark-line { fill: none; stroke: green; stroke-width: 1; vector-effect: non-scaling-stroke; }
.mini-spark-area { fill: green; fill-opacity: .25; stroke: none; }

/* Column-header rows of the table boxes (product / region / district lists
   and the infographic tables): a soft tinted band with navy text and an accent
   underline instead of the flat light-blue strip; green accent in dark mode. */
html[data-mode] .product-header,
html[data-mode] .region-header,
html[data-mode] .district-header,
html[data-mode] .right-bar-performance-table th,
html[data-mode] .right-bar-insights-table th,
html[data-mode] .right-bar-region-table th {
  background: linear-gradient(180deg, #F6F9FE 0%, #EDF2FA 100%);
  color: #1A2B4B;
  font-weight: 700 !important;
  letter-spacing: .01em;
  border-bottom: .0838rem solid #3D6CB8;
}
html[data-mode] .product-header,
html[data-mode] .region-header,
html[data-mode] .district-header { border-radius: .4188rem .4188rem 0 0; }
html[data-mode] .product-header small, html[data-mode] .region-header small, html[data-mode] .district-header small,
html[data-mode] .product-header .text-muted, html[data-mode] .region-header .text-muted, html[data-mode] .district-header .text-muted { color: #64748B; }
html[data-mode="dark"] .product-header,
html[data-mode="dark"] .region-header,
html[data-mode="dark"] .district-header,
html[data-mode="dark"] .right-bar-performance-table th,
html[data-mode="dark"] .right-bar-insights-table th,
html[data-mode="dark"] .right-bar-region-table th {
  background: linear-gradient(180deg, rgba(255,255,255,.07) 0%, rgba(255,255,255,.04) 100%) !important;
  color: #e2e8f0;
  border-bottom-color: #4caf50;
}
html[data-mode="dark"] .product-header small, html[data-mode="dark"] .region-header small, html[data-mode="dark"] .district-header small,
html[data-mode="dark"] .product-header .text-muted, html[data-mode="dark"] .region-header .text-muted, html[data-mode="dark"] .district-header .text-muted { color: #94a3b8; }
html[data-mode="light"] .right-sidebar-product         { background: #fff; color: var(--txt); }
html[data-mode="light"] .right-sidebar-product-row     { border-bottom: .0419rem solid var(--border); font-size: .7538rem; }
html[data-mode="light"] .right-sidebar-product-row span:first-child { font-size: .7538rem; }
html[data-mode="light"] .right-sidebar-product-highlight { background: var(--p-l); color: var(--p); font-weight: 700; }

html[data-mode="light"] .right-bar-performance-positive { color: var(--green); font-weight: 700; }
html[data-mode="light"] .right-bar-performance-negative { color: var(--red); font-weight: 700; }
html[data-mode="light"] .right-bar-performance-neutral  { color: var(--txt3); font-weight: 600; }
html[data-mode="light"] .arrow-up   { color: var(--red); }
html[data-mode="light"] .arrow-down { color: var(--green); }


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   RIGHT SIDEBAR — card-like layout
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
html[data-mode="light"] #rightSidebar {
  background:  transparent;
  border-left: none;
  border:      none;
  /* keep light's padding/gap (size reference), but bottom:0 so the infografika reaches
     the bottom and aligns with the left charts (light adapts to dark for the bottom only) */
  padding:     .335rem .335rem 0 .1675rem;
  gap:         .335rem;
}
/* dark adopts the SAME padding/gap as light (dark -> light for sizes) */
html[data-mode="dark"] #rightSidebar,
body.dark #rightSidebar {
  padding: .335rem .335rem 0 .1675rem;
  gap:     .335rem;
}

/* digest card */
html[data-mode="light"] #weekly-digest-box {
  background:    #ffffff;
  border:        .0419rem solid var(--border);
  border-radius: .5025rem;
  box-shadow:    0 .0419rem .0838rem rgba(0,0,0,.04), 0 .1675rem .5025rem rgba(0,0,0,.06);
  overflow:      hidden !important;
  flex-shrink:   0 !important;
}

/* infografika card */
html[data-mode="light"] #infografikaCard {
  background:    #ffffff;
  border:        .0419rem solid var(--border);
  border-radius: .5025rem;
  box-shadow:    0 .0419rem .0838rem rgba(0,0,0,.04), 0 .1675rem .5025rem rgba(0,0,0,.06);
  overflow:      hidden !important;
}
/* mobile: remove overflow clip so sidebar can scroll all content */
@media (max-width: 991.98px) {
  html[data-mode="light"] #infografikaCard {
    overflow: visible !important;
    height: auto !important;
    flex: 0 0 auto !important;
    border-radius: 0;
    border: none;
    box-shadow: none;
  }
}

/* sidebar-header inside cards — already navy from chart cards rule below */
html[data-mode="light"] #infografikaCard .sidebar-body {
  background: #ffffff;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   ALL CHART CARDS — navy header (digest style)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
html[data-mode="light"] #mapChartCard .card-header,
html[data-mode="light"] #productChartCard .card-header,
html[data-mode="light"] #regionChartCard .card-header,
html[data-mode="light"] #districtChartCard .card-header,
html[data-mode="light"] #linegraphRegionCard .card-header,
html[data-mode="light"] #linegraphDistrictCard .card-header,
html[data-mode="light"] #rightSidebar .sidebar-header {
  background:    #1A2B4B !important;
  border-bottom: .0419rem solid rgba(255,255,255,0.12) !important;
}
html[data-mode="light"] #mapChartCard .card-header h6,
html[data-mode="light"] #productChartCard .card-header h6,
html[data-mode="light"] #regionChartCard .card-header h6,
html[data-mode="light"] #districtChartCard .card-header h6,
html[data-mode="light"] #linegraphRegionCard .card-header h6,
html[data-mode="light"] #linegraphDistrictCard .card-header h6,
html[data-mode="light"] #rightSidebar .sidebar-header p,
html[data-mode="light"] #rightSidebar .sidebar-header span {
  color: #ffffff;
}
html[data-mode="light"] #mapChartCard .card-header .text-muted,
html[data-mode="light"] #productChartCard .card-header .text-muted,
html[data-mode="light"] #regionChartCard .card-header .text-muted,
html[data-mode="light"] #districtChartCard .card-header .text-muted,
html[data-mode="light"] #linegraphRegionCard .card-header .text-muted,
html[data-mode="light"] #linegraphDistrictCard .card-header .text-muted,
html[data-mode="light"] #mapChartCard .card-header .column3-subtitle,
html[data-mode="light"] #productChartCard .card-header .column3-subtitle,
html[data-mode="light"] #regionChartCard .card-header .column3-subtitle,
html[data-mode="light"] #districtChartCard .card-header .column3-subtitle,
html[data-mode="light"] #linegraphRegionCard .card-header .column3-subtitle,
html[data-mode="light"] #linegraphDistrictCard .card-header .column3-subtitle {
  color: rgba(255,255,255,0.60) !important;
}
html[data-mode="light"] #mapChartCard .card-header .btn-outline-secondary,
html[data-mode="light"] #productChartCard .card-header .btn-outline-secondary,
html[data-mode="light"] #regionChartCard .card-header .btn-outline-secondary,
html[data-mode="light"] #districtChartCard .card-header .btn-outline-secondary,
html[data-mode="light"] #linegraphRegionCard .card-header .btn-outline-secondary,
html[data-mode="light"] #linegraphDistrictCard .card-header .btn-outline-secondary,
html[data-mode="light"] #regionProductHeatmapCard .card-header .btn-outline-secondary,
html[data-mode="light"] #rightSidebar .sidebar-action-btn {
  background:   rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.30);
  color:        rgba(255,255,255,0.80);
}
html[data-mode="light"] #mapChartCard .card-header .btn-outline-secondary:hover,
html[data-mode="light"] #productChartCard .card-header .btn-outline-secondary:hover,
html[data-mode="light"] #regionChartCard .card-header .btn-outline-secondary:hover,
html[data-mode="light"] #districtChartCard .card-header .btn-outline-secondary:hover,
html[data-mode="light"] #linegraphRegionCard .card-header .btn-outline-secondary:hover,
html[data-mode="light"] #linegraphDistrictCard .card-header .btn-outline-secondary:hover,
html[data-mode="light"] #regionProductHeatmapCard .card-header .btn-outline-secondary:hover,
html[data-mode="light"] #rightSidebar .sidebar-action-btn:hover {
  background:   rgba(255,255,255,0.22) !important;
  border-color: rgba(255,255,255,0.65) !important;
  color:        #fff !important;
}

/* ── Spacing & column titles ── (spacing is the same in both modes, so the
   content does not jump when the theme is switched) */
#mainContentWrapper { padding: .4188rem .5863rem; }
#mainContentWrapper .mb-2 { margin-bottom: .4188rem !important; }
html[data-mode="light"] .column-title {
  color:          var(--txt);
  font-weight:    700;
  font-size:      .8375rem;
  border-bottom:  .0838rem solid var(--p);
  padding-bottom: .2931rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* ── Landing: filter bar (left) + weekly CPI counters (right) ── */
/* The filter row reads as one band: the date select and the filter chips take
   the CPI cards' height and start at their width, so nothing in the row looks
   like a smaller class of control. They still grow past that when the value
   needs it — region names run long. The two sizes live in one place so the
   cards and the controls cannot drift apart.
   The light-mode rules above set height and font-size with !important on
   `html[data-mode="light"] .filter-chip`, so these have to out-specify them. */
.landing-filterbar {
    gap: .4188rem;
    --filter-h: 2.8894rem;      /* a CPI card's natural height: 44 icon + 2x11 padding + border */
    --filter-min-w: 9.6731rem; /* the narrowest CPI card */
    --filter-radius: .5863rem; /* .cpi-card's corner */
}
.landing-filterbar .cpi-card { min-height: var(--filter-h); }

.landing-filterbar #dateDropdownContainer select,
.landing-filterbar .filter-chip,
html[data-mode="light"] .landing-filterbar #dateDropdownContainer select,
html[data-mode="light"] .landing-filterbar .filter-chip,
html[data-mode="dark"] .landing-filterbar #dateDropdownContainer select,
html[data-mode="dark"] .landing-filterbar .filter-chip,
body.light .landing-filterbar .filter-chip,
body.dark .landing-filterbar .filter-chip {
    height: var(--filter-h) !important;
    min-width: var(--filter-min-w) !important;
    width: auto !important;
    font-size: .8794rem;
    border-radius: var(--filter-radius);
}
/* the chips carry the selected value, so they read at the size of the cards'
   big figure; the date select keeps the smaller size or its label runs away */
.landing-filterbar .filter-chip,
html[data-mode="light"] .landing-filterbar .filter-chip,
html[data-mode="dark"] .landing-filterbar .filter-chip,
body.light .landing-filterbar .filter-chip,
body.dark .landing-filterbar .filter-chip {
    font-size: 1.5075rem;   /* matches .cpi-card-value */
}
.landing-filterbar .filter-chip { justify-content: space-between; }
.landing-filterbar .filter-chip .filter-label { margin-right: .5025rem; }
.landing-filterbar .filter-chip .close { font-size: 1.0888rem; }

/* ── Landing filter controls (product / region / district) ────────────────
   Custom dropdowns rather than <select>, because the panel carries a search
   box and a sticky first entry ("Respublika", "Tanlanmagan") that a native
   select cannot style. They reuse the filter row's own size variables, so they
   sit in the same band as the date and the counter cards. */
.lfb { display: flex; flex-wrap: wrap; gap: .4188rem; align-items: center; }
.lfb-legacy-hidden { display: none !important; }

.lfb-control { position: relative; }

.lfb-button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: .5863rem;
    height: var(--filter-h, 2.8894rem);
    min-width: var(--filter-min-w, 9.6731rem);
    padding: 0 .7538rem;
    border-radius: var(--filter-radius, .5863rem);
    background: #fff;
    border: .0419rem solid #e5e7eb;
    color: #0f172a;
    cursor: pointer;
    text-align: left;
}
.lfb-button:hover { border-color: #cbd5e1; }
.lfb-control.is-open .lfb-button { border-color: #1A2B4B; }

.lfb-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.lfb-label { font-size: .6281rem; font-weight: 600; color: #64748b; }
.lfb-value {
    font-size: 1.005rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* "Respublika" and "Tanlanmagan" are real choices, not placeholders, so they
   are set in the ordinary text colour rather than greyed out. */
.lfb-caret { flex: 0 0 auto; font-size: .67rem; color: #94a3b8; transition: transform 150ms; }
.lfb-control.is-open .lfb-caret { transform: rotate(180deg); }

.lfb-panel {
    display: none;
    position: absolute;
    z-index: 1200;
    top: calc(100% + .2513rem);
    left: 0;
    min-width: 100%;
    max-width: 17.5875rem;
    padding: .335rem;
    border-radius: .5863rem;
    background: #fff;
    border: .0419rem solid #e5e7eb;
    box-shadow: 0 .7538rem 1.675rem rgba(15, 23, 42, 0.16);
}
.lfb-control.is-open .lfb-panel { display: block; }

.lfb-search { padding: .1675rem .1675rem .335rem .1675rem; }
.lfb-search-input {
    width: 100%;
    height: 1.8425rem;
    padding: 0 .5863rem;
    font-size: .7956rem;
    border-radius: .4188rem;
    border: .0419rem solid #e5e7eb;
    background: #f8fafc;
    color: #0f172a;
    outline: none;
}
.lfb-search-input:focus { border-color: #1A2B4B; background: #fff; }

.lfb-list { max-height: 14.2375rem; overflow-y: auto; }
.lfb-option {
    display: block;
    width: 100%;
    padding: .4606rem .5863rem;
    border: 0;
    border-radius: .4188rem;
    background: transparent;
    color: #0f172a;
    font-size: .7956rem;
    text-align: left;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.lfb-option:hover { background: #eef2f7; }
.lfb-option.is-selected { background: #1A2B4B; color: #fff; font-weight: 600; }
.lfb-option.is-sticky {
    font-weight: 600;
    margin-bottom: .1675rem;
    border-bottom: .0419rem solid #eef2f7;
    border-radius: .4188rem .4188rem 0 0;
}
.lfb-empty { padding: .5863rem; font-size: .7538rem; color: #94a3b8; text-align: center; }

/* Dark mode: the panel is a raised surface, so it sits a step lighter than the
   page rather than blending into it. */
html[data-mode="dark"] .lfb-button, body.dark .lfb-button {
    background: transparent;                   /* same as .cpi-card */
    border-color: rgba(255, 255, 255, 0.24);
    color: #e2e8f0;
}
html[data-mode="dark"] .lfb-button:hover, body.dark .lfb-button:hover {
    border-color: rgba(255, 255, 255, 0.42);
}
html[data-mode="dark"] .lfb-label, body.dark .lfb-label { color: #94a3b8; }
html[data-mode="dark"] .lfb-panel, body.dark .lfb-panel {
    background: #1f1f1f; border-color: #2c2c2c;
    box-shadow: 0 .7538rem 1.675rem rgba(0, 0, 0, 0.55);
}
html[data-mode="dark"] .lfb-search-input, body.dark .lfb-search-input {
    background: #141414; border-color: #2c2c2c; color: #e2e8f0;
}
html[data-mode="dark"] .lfb-search-input:focus, body.dark .lfb-search-input:focus {
    border-color: #4b5563; background: #1a1a1a;
}
html[data-mode="dark"] .lfb-option, body.dark .lfb-option { color: #e2e8f0; }
html[data-mode="dark"] .lfb-option:hover, body.dark .lfb-option:hover { background: #2a2a2a; }
html[data-mode="dark"] .lfb-option.is-selected, body.dark .lfb-option.is-selected {
    background: #4caf50; color: #0b1a0d;   /* matches .active-row in dark mode */
}
html[data-mode="dark"] .lfb-control.is-open .lfb-button,
body.dark .lfb-control.is-open .lfb-button { border-color: #4caf50; }
html[data-mode="dark"] .lfb-search-input:focus, body.dark .lfb-search-input:focus {
    border-color: #4caf50;
}
html[data-mode="dark"] .lfb-option.is-sticky, body.dark .lfb-option.is-sticky {
    border-bottom-color: #2c2c2c;
}

#dateDropdownContainer, #appliedFiltersContainer { vertical-align: middle; }
/* wraps onto a second line when the row runs out of width (phones); on wider
   screens there is room and the three stay on one line at full size */
.cpi-cards { display: flex; gap: .5025rem; flex-wrap: wrap; justify-content: center; }
.cpi-card {
    display: flex; align-items: center; gap: .5444rem;
    min-width: 6.6162rem; padding: .4606rem .8375rem; border-radius: var(--filter-radius, .5863rem);
    background: #fff; border: .0419rem solid #e5e7eb;
}
.cpi-card-icon {
    width: 1.8425rem; height: 1.8425rem; border-radius: .5025rem; flex: 0 0 auto;
    display: inline-flex; align-items: center; justify-content: center; font-size: .7538rem;
}
/* figure on the left, the counted noun and its direction stacked beside it */
.cpi-card-body { display: flex; align-items: center; gap: .3769rem; }
.cpi-card-value { font-size: 1.5075rem; font-weight: 700; line-height: 1.05; }
.cpi-card-text { display: flex; flex-direction: column; line-height: 1.25; }
.cpi-card-unit { font-size: .6281rem; font-weight: 600; color: #64748b; white-space: nowrap; }
.cpi-card-label { font-size: .6281rem; color: #64748b; white-space: nowrap; }
.cpi-up   .cpi-card-icon { background: rgba(179,38,30,.14);  color: #e5484d; }
.cpi-up   .cpi-card-value { color: #e5484d; }
.cpi-down .cpi-card-icon { background: rgba(15,107,92,.14);  color: #0f9d76; }
.cpi-down .cpi-card-value { color: #0f9d76; }
.cpi-flat .cpi-card-icon { background: rgba(148,163,184,.16); color: #64748b; }
.cpi-flat .cpi-card-value { color: #475569; }
html[data-mode="dark"] .cpi-card, body.dark .cpi-card {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.24);   /* #2c2c2c all but vanished on the dark page */
}
html[data-mode="dark"] .cpi-card-label, body.dark .cpi-card-label { color:#94a3b8; }
html[data-mode="dark"] .cpi-card-unit, body.dark .cpi-card-unit { color:#94a3b8; }
html[data-mode="dark"] .cpi-flat .cpi-card-value, body.dark .cpi-flat .cpi-card-value { color:#cbd5e1; }
/* Phones: the three counters share one row in equal thirds. Each keeps the
   desktop arrangement (icon, figure, two-line caption) at a smaller scale. */
@media (max-width: 767.98px) {
    .cpi-cards {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: .2513rem;
        flex: 1 1 100%;
        width: 100%;
    }
    .cpi-card,
    .landing-filterbar .cpi-card {
        min-width: 0;
        min-height: 0;
        justify-content: center;
        gap: clamp(.1675rem, 1vw, .335rem);
        padding: .335rem .1675rem;
    }
    /* Sizes follow the viewport so the tile is filled on every phone width. */
    .cpi-card-body { gap: clamp(.1256rem, .8vw, .2513rem); min-width: 0; }
    .cpi-card-icon {
        width: clamp(1.1725rem, 5.6vw, 1.5913rem); height: clamp(1.1725rem, 5.6vw, 1.5913rem);
        border-radius: .3769rem; font-size: clamp(.5025rem, 2.4vw, .67rem);
    }
    .cpi-card-value { font-size: clamp(1.005rem, 5.4vw, 1.4238rem); }
    .cpi-card-text { min-width: 0; line-height: 1.2; }
    .cpi-card-unit,
    .cpi-card-label { font-size: clamp(.5025rem, 2.65vw, .67rem); }
}

/* ── Landing: region×product heatmap (full-width box, left column row 2) ── */
/* The box is a normal .card .card-full, so header colour/typography and the
   footer tag come from the shared card styling (theme-aware automatically). */
#regionProductHeatmap { width: 100%; height: 100%; }
/* match the other cards' header bar (light mode uses the navy bar) */
html[data-mode="light"] #regionProductHeatmapCard .card-header,
body.light #regionProductHeatmapCard .card-header {
    background: #1A2B4B !important;
    border-bottom: .0419rem solid rgba(255, 255, 255, 0.12) !important;
}
html[data-mode="light"] #regionProductHeatmapCard .card-header h6,
body.light #regionProductHeatmapCard .card-header h6 { color: #ffffff; }
.heatmap-legend { display: inline-flex; align-items: center; gap: .335rem; }
.heatmap-legend .hl-lbl { white-space: nowrap; }
.heatmap-legend .hl-swatches { display: inline-flex; }
.heatmap-legend .hl-swatches i { width: .9213rem; height: .5863rem; display: inline-block; }
.heatmap-legend .hl-swatches i:first-child { border-radius: .1256rem 0 0 .1256rem; }
.heatmap-legend .hl-swatches i:last-child { border-radius: 0 .1256rem .1256rem 0; }

/* Desktop only. Below this width the panel is the slide-in overlay owned by
   right_sidebar.js, which scrolls as a whole — constraining its heights from
   here would cut the bottom of its content off. */
@media (min-width: 1025px) {
    /* The sidebar spans from the left column's first-row boxes down to the end
       of the left column: JS sets the top margin and an explicit height (from
       measured positions). `align-self: flex-start` because stretching let the
       sidebar's own content inflate the row and push its bottom past the left
       column. Inside, the digest and the infografika lenta share the height
       4:6 (Bootstrap's .flex-fill uses !important, so these must too). */
    #rightSidebar {
        overflow: hidden !important;
        position: static !important;
        align-self: flex-start !important;
    }
    #rightSidebarInner {
        display: flex;
        flex-direction: column;
        flex: 1 1 auto;
        min-height: 0;
    }
    #weekly-digest-box { flex: 4 1 0 !important; min-height: 10.8875rem; height: auto !important; margin-bottom: .4188rem; }
    #infografikaCard { flex: 6 1 0 !important; min-height: 10.8875rem !important; overflow: hidden !important; }
}

/* ── Fullscreen: any chart card ──────────────────────────────────────────
   The whole card goes fullscreen so its header (title + the button that got
   you here, which also takes you back) and footer stay on screen. Text scales
   up with it; a page-wide `.chart-container … !important` rule sets chart text,
   so these have to be at least as specific to win. */
.card:fullscreen {
    width: 100vw;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
@media (min-width: 992px) { .card:fullscreen { width: 67vw; height: 67vh; max-height: 67vh; } }
.card:fullscreen .card-body { flex: 1 1 auto; min-height: 0; overflow: auto; }
.card:fullscreen .chart-container { width: 100%; height: 100%; }
/* `html[data-mode="…"] .card-full .card-header h6` already sets 22px, so the
   fullscreen title has to out-specify it rather than merely follow it. */
html[data-mode] .card:fullscreen .card-header h6,
body .card:fullscreen .card-header h6 { font-size: 1.2563rem !important; }
.card:fullscreen .card-header .column3-subtitle,
.card:fullscreen .card-header .text-muted { font-size: .7956rem !important; }
.card:fullscreen .card-footer,
.card:fullscreen .footer-tag { font-size: .7956rem !important; }
.card:fullscreen .chart-container .highcharts-xaxis-labels text,
.card:fullscreen .chart-container .highcharts-yaxis-labels text,
.card:fullscreen .chart-container .highcharts-axis-labels text,
.card:fullscreen .chart-container .highcharts-axis-title text,
.card:fullscreen .chart-container .highcharts-legend-item text,
.card:fullscreen .chart-container .highcharts-data-label text,
.card:fullscreen .chart-container .highcharts-data-label span {
    font-size: 1.005rem !important;
}
.card:fullscreen .chart-container .highcharts-tooltip,
.card:fullscreen .chart-container .highcharts-tooltip text,
.card:fullscreen .chart-container .highcharts-tooltip span,
.card:fullscreen .chart-container .highcharts-tooltip div {
    font-size: .8375rem !important;
    line-height: 1.6;
}

/* Fullscreen for the heatmap card. The whole card goes fullscreen, not just the
   chart, so the footer's date chip and legend stay on screen; the chart's own
   font sizes are raised from JS, which Highcharts needs for SVG text. */
#regionProductHeatmapCard:fullscreen {
    width: 100vw;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
    display: flex;
    flex-direction: column;
}
@media (min-width: 992px) { #regionProductHeatmapCard:fullscreen { width: 67vw; height: 67vh; max-height: 67vh; } }
#regionProductHeatmapCard:fullscreen .card-body { flex: 1 1 auto; min-height: 0; overflow: hidden; }
#regionProductHeatmapCard:fullscreen #regionProductHeatmap { width: 100%; height: 100%; min-width: 0; }
#regionProductHeatmapCard:fullscreen .card-header h6 { font-size: 1.2563rem !important; }
#regionProductHeatmapCard:fullscreen .card-footer,
#regionProductHeatmapCard:fullscreen .footer-tag { font-size: .7956rem !important; }
#regionProductHeatmapCard:fullscreen .heatmap-legend { font-size: .7956rem !important; }
#regionProductHeatmapCard:fullscreen .heatmap-legend .hl-lbl { display: inline !important; }
#regionProductHeatmapCard:fullscreen .heatmap-legend .hl-swatches i { width: 1.2563rem !important; height: .7119rem !important; }
#regionProductHeatmapCard:fullscreen .highcharts-xaxis-labels text,
#regionProductHeatmapCard:fullscreen .highcharts-yaxis-labels text,
#regionProductHeatmapCard:fullscreen .highcharts-axis-labels text {
    font-size: 1.005rem !important;
}
#regionProductHeatmapCard:fullscreen .highcharts-tooltip,
#regionProductHeatmapCard:fullscreen .highcharts-tooltip span,
#regionProductHeatmapCard:fullscreen .highcharts-tooltip div {
    font-size: .8375rem !important;
    line-height: 1.6;
}

/* The digest title reads at the same size as the left cards' headers */
html[data-mode="dark"] .digest-header, body.dark .digest-header,
html[data-mode="light"] .digest-header, body.light .digest-header,
.digest-header,
html[data-mode="dark"] .digest-title-group, body.dark .digest-title-group,
html[data-mode="light"] .digest-title-group, body.light .digest-title-group,
.digest-title-group {
    font-size: .9213rem;
    line-height: 1.1976rem;
}

/* Phone / tablet: the page keeps its existing layout (cards stack full width
   at the shared .card-full height). The heatmap is the only addition — its
   cells would collapse to a few pixels each at this width, so it keeps a
   product-count-based min width (set by JS) and scrolls inside its own body. */
/* Phones: the four controls sit two by two, and the columns are laid out as a
   grid so both are exactly half the row. Left to wrap on their own they took
   their content's width and came out uneven, with a different gap at each edge.
   The 231px floor has to go here or a narrow screen cannot fit two of them. */
@media (max-width: 991.98px) {
    #landingFilterControls.lfb {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: .4188rem;
        width: 100%;
    }
    .lfb-control { min-width: 0; }
    .lfb-button {
        min-width: 0;
        width: 100%;
    }
}

@media (max-width: 991.98px) {
    #regionProductHeatmapCard .card-body {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        /* hand horizontal swipes to the scroller rather than to the chart */
        touch-action: pan-x pan-y;
    }
    .heatmap-legend .hl-lbl { display: none; }
}

/* Tablets sit just above the phone breakpoint (991.98px), so they used to get
   the desktop treatment: 80vh boxes and the panel pinned open beside the
   content — both wrong on an iPad. This range gives them the phone's shorter
   boxes and the same slide-in panel, mirroring the rules mobile-nav.css
   applies below the breakpoint. The top navigation is deliberately left alone
   (it has room at these widths). */
@media (min-width: 992px) and (max-width: 1024px) {
    .card-full { height: 27.2188rem !important; }
    #regionProductHeatmapCard .card-body {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x pan-y;
    }

    #rightSidebar {
        position: fixed !important;
        top: var(--topnav-height, 4.1875rem);
        left: 0 !important;
        right: 0 !important;
        bottom: 0;
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
        z-index: 1058;
        transform: translateX(100%);
        transition: transform 300ms ease-in-out;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        padding: .4188rem .4188rem 5.025rem .4188rem !important;
        touch-action: pan-y !important;
    }
    html[data-mode="dark"] #rightSidebar {
        background: #1f1f1f;
        border-left: .0419rem solid rgba(255, 255, 255, 0.08);
    }
    html[data-mode="light"] #rightSidebar {
        background: var(--page-bg, #f0f0f0);
        border-left: .0419rem solid rgba(0, 0, 0, 0.08);
        box-shadow: -.1675rem 0 1.005rem rgba(0, 0, 0, 0.12);
    }
    #rightSidebar.mobile-info-open { transform: translateX(0); }

    #mainContentWrapper {
        flex: 0 0 100%;
        max-width: 100%;
        transition: transform 300ms ease-in-out;
    }
    body.mobile-info-active #mainContentWrapper { transform: translateX(-100%); }

    .mobile-info-overlay { display: block; }
}


/* ── moved from inline style attributes ── */
.row.landing-filter-row { padding: .4188rem .4188rem 0 .4188rem; }
.fas.icon-flip-y { transform: scaleY(-1); }
.d-flex.landing-layout { width: 100%; }
.landing-main { flex: 0 0 66%; max-width: 66%; padding: .4188rem; }
.d-flex.landing-sidebar { flex: 0 0 34%; max-width: 34%; padding: 0; }
#right-sidebar-product.sidebar-product { flex: 1; min-height: 8.375rem; }


/* ── page end: the same gap above the site footer on every page ── */
#mainContentWrapper { padding-bottom: 0; }
#mainContentWrapper .main-content { margin-bottom: 0; }
