﻿.business-sector-card {
    margin-bottom: 0;
}

.market-sidebar-insights {
    --insight-pink: #c43593;
    --insight-pink-dark: #C43593;
    --insight-saffron: #fdb415;
    --insight-ink: #2A1B24;
    --insight-muted: #6F6670;
    --insight-line: #EADCE6;
    display: grid;
    width: 100%;
    min-width: 0;
    gap: 24px;
    margin-top: 24px;
    color: var(--insight-ink);
}

.market-sidebar-insights *,
.market-sidebar-insights *::before,
.market-sidebar-insights *::after {
    box-sizing: border-box;
}

.market-chart {
    width: 100%;
    min-width: 0;
    padding: 24px 22px;
    border: 1px solid var(--insight-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(73, 39, 62, .08);
}

.market-chart__header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
    margin-bottom: 24px;
}

.market-chart__header h3 {
    margin: 0;
    color: var(--insight-ink);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
}

.market-chart__header p {
    margin: 8px 0 0;
    color: var(--insight-muted);
    font-size: 12px;
    line-height: 1.5;
}

.market-chart__unit,
.market-chart__link {
    color: var(--insight-pink-dark);
    font-size: 11px;
    font-weight: 700;
}

.market-chart__unit {
    padding: 6px 8px;
    border-radius: 6px;
    background: #FCF6FA;
    white-space: nowrap;
}

.market-chart__link {
    padding: 5px 0;
    border-bottom: 2px solid var(--insight-saffron);
    text-decoration: none;
    white-space: nowrap;
}

.market-chart__link:hover,
.market-chart__link:focus {
    color: var(--insight-pink);
    text-decoration: none;
}

.market-chart__link:focus-visible,
.market-bars__label a:focus-visible {
    outline: 3px solid rgba(196, 53, 147, .28);
    outline-offset: 3px;
}

.market-chart--leaders .market-chart__header {
    grid-template-columns: minmax(0, 1fr);
}

.market-chart--leaders .market-chart__link {
    justify-self: start;
}

.market-bars {
    display: grid;
    width: 100%;
    min-width: 0;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none !important;
}

.market-bars__item {
    display: block;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    list-style: none !important;
}

.market-bars__label {
    display: flex;
    width: 100%;
    min-width: 0;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
    color: #2A1B24;
    font-size: 12px;
    line-height: 1.35;
}

.market-bars__label > span {
    min-width: 0;
}

.market-bars__label strong {
    flex: 0 0 auto;
    color: var(--insight-ink);
    font-size: 12px;
    font-weight: 700;
    text-align: right;
}

.market-bars__label a {
    color: var(--insight-pink-dark);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.market-bars__label a:hover,
.market-bars__label a:focus {
    color: var(--insight-pink);
    text-decoration: underline;
}

.market-bars__label small {
    display: block;
    margin-top: 2px;
    color: var(--insight-muted);
    font-size: 10px;
}

.market-bars__track {
    width: 100%;
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: #f0e8ed;
}

.market-bars__fill {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: var(--insight-pink);
}

.market-bars--views {
    gap: 25px;
}

.market-bars--views .market-bars__track {
    height: 12px;
}

.market-bars--views .market-bars__item:nth-child(2) .market-bars__fill {
    background: #C43593;
}

.market-bars--views .market-bars__item:nth-child(3) .market-bars__fill {
    background: var(--insight-saffron);
}

.market-bars--leaders {
    gap: 18px;
}

.market-bars__item--leader {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
}

.market-bars__rank {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border: 1px solid #EADCE6;
    border-radius: 50%;
    background: #FCF6FA;
    color: var(--insight-pink-dark);
    font-size: 11px;
    font-weight: 700;
}

.market-bars__content {
    min-width: 0;
}

.market-bars--leaders .market-bars__label {
    align-items: flex-start;
}

.market-bars--leaders .market-bars__label strong {
    max-width: 72px;
    padding-top: 2px;
}

.market-bars--leaders .market-bars__track {
    height: 8px;
}

.market-bars--leaders .market-bars__fill {
    background: var(--insight-saffron);
}

@media (max-width: 991px) {
    .market-sidebar-insights {
        margin-bottom: 34px;
    }
}

@media (max-width: 420px) {
    .market-chart {
        padding: 22px 18px;
    }

    .market-chart__header {
        grid-template-columns: minmax(0, 1fr);
    }

    .market-chart__unit,
    .market-chart__link {
        justify-self: start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .market-sidebar-insights *,
    .market-sidebar-insights *::before,
    .market-sidebar-insights *::after {
        transition: none !important;
    }
}
