/* Baby Name Trends Chart */
.bng-charts-wrap .bng-chart-search {
    position: relative;
    margin-bottom: 12px;
}
.bng-chart-input {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--bng-radius);
    border: 1.5px solid var(--bng-border);
    background: var(--bng-card);
    color: var(--bng-text);
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: border-color .15s;
}
.bng-chart-input:focus {
    border-color: var(--bng-blue);
}
.bng-chart-input::placeholder {
    color: var(--bng-muted);
}
.bng-chart-suggestions {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bng-card);
    border: 1.5px solid var(--bng-border);
    border-top: none;
    border-radius: 0 0 var(--bng-radius) var(--bng-radius);
    z-index: 10;
    max-height: 240px;
    overflow-y: auto;
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
}
.bng-chart-suggestion {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background .1s;
}
.bng-chart-suggestion:hover {
    background: var(--bng-blue-light);
}

.bng-chart-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    min-height: 0;
}
.bng-chart-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    background: var(--bng-card);
    border: 2px solid;
    color: var(--bng-text);
}
.bng-chart-tag-remove {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--bng-muted);
    font-size: 16px;
    line-height: 1;
    padding: 0 0 0 2px;
    font-family: inherit;
}
.bng-chart-tag-remove:hover {
    color: var(--bng-text);
}

.bng-chart-container {
    position: relative;
    background: var(--bng-card);
    border: 1.5px solid var(--bng-border);
    border-radius: var(--bng-radius);
    padding: 16px;
    min-height: 200px;
}
.bng-chart-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    color: var(--bng-muted);
    font-size: 14px;
    text-align: center;
}

.bng-chart-svg {
    width: 100%;
    height: auto;
    display: block;
}
.bng-chart-grid {
    stroke: var(--bng-border);
    stroke-width: 1;
}
.bng-chart-label {
    fill: var(--bng-muted);
    font-size: 11px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.bng-chart-line {
    opacity: .85;
    transition: opacity .15s;
}
.bng-chart-point {
    cursor: pointer;
    transition: r .15s;
}
.bng-chart-point:hover {
    r: 6;
}

.bng-chart-legend {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 12px;
}
.bng-chart-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--bng-text);
}
.bng-chart-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.bng-chart-tooltip {
    position: absolute;
    background: var(--bng-text);
    color: var(--bng-bg);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    pointer-events: none;
    opacity: 0;
    transition: opacity .15s;
    transform: translateX(-50%);
    white-space: nowrap;
    z-index: 20;
}

@media (max-width: 480px) {
    .bng-chart-legend {
        gap: 8px;
    }
    .bng-chart-legend-item {
        font-size: 11px;
    }
}
