.metal-alloy-chart {
    --metal-alloy-ink: #111111;
    --metal-alloy-muted: #667085;
    --metal-alloy-grid: #e6eaee;
    --metal-alloy-accent: #0fb9e5;
    --metal-alloy-hip: #00bdf3;
    margin: 2.25rem 0 2.75rem;
    padding: 1.25rem;
    border: 1px solid #e8ecef;
    background: #ffffff;
    color: var(--metal-alloy-ink);
    font-family: inherit;
}

.metal-alloy-chart__heading {
    margin: 0 0 0.3rem;
    color: var(--metal-alloy-ink);
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.metal-alloy-chart__description {
    margin: 0 0 1rem;
    color: var(--metal-alloy-muted);
    font-family: inherit;
    font-size: 0.78rem;
    line-height: 1.5;
}

.metal-alloy-chart__plot {
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-color: #c7d0d6 transparent;
}

.metal-alloy-chart__svg {
    display: block;
    min-width: 760px;
    width: 100%;
    height: auto;
    overflow: visible;
}

.metal-alloy-chart--overview .metal-alloy-chart__svg {
    min-width: 720px;
}

.metal-alloy-chart--range .metal-alloy-chart__svg {
    min-width: 1180px;
}

.metal-alloy-chart__svg text {
    font-family: inherit;
    fill: var(--metal-alloy-ink);
}

.metal-alloy-chart__axis-label {
    font-size: 13px;
    font-weight: 600;
}

.metal-alloy-chart__tick {
    fill: var(--metal-alloy-muted) !important;
    font-size: 11px;
}

.metal-alloy-chart__source-label {
    font-size: 12px;
}

.metal-alloy-chart__point {
    cursor: pointer;
    outline: none;
}

.metal-alloy-chart__point:focus-visible .metal-alloy-chart__point-shape,
.metal-alloy-chart__point:hover .metal-alloy-chart__point-shape {
    stroke-width: 2.5px;
}

.metal-alloy-chart__tooltip {
    min-height: 1.25rem;
    margin-top: 0.75rem;
    color: var(--metal-alloy-ink);
    font-family: inherit;
    font-size: 0.78rem;
    line-height: 1.45;
}

.metal-alloy-chart__tooltip:empty {
    display: none;
}

.metal-alloy-chart__legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 1rem;
    margin-top: 1rem;
    color: var(--metal-alloy-muted);
    font-family: inherit;
    font-size: 0.72rem;
    line-height: 1.35;
}

.metal-alloy-chart__legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.metal-alloy-chart__legend-marker {
    display: inline-block;
    flex: 0 0 auto;
    width: 0.68rem;
    height: 0.68rem;
    border: 1.5px solid var(--metal-alloy-ink);
    background: #ffffff;
}

.metal-alloy-chart__legend-marker--circle {
    border-radius: 50%;
}

.metal-alloy-chart__legend-marker--square {
    border-radius: 0.08rem;
}

.metal-alloy-chart__legend-marker--triangle {
    width: 0;
    height: 0;
    border-top: 0.42rem solid transparent;
    border-right: 0.38rem solid transparent;
    border-bottom: 0.42rem solid var(--metal-alloy-ink);
    border-left: 0.38rem solid transparent;
    background: transparent;
}

.metal-alloy-chart__legend-marker--diamond {
    width: 0.58rem;
    height: 0.58rem;
    transform: rotate(45deg);
    border-radius: 0.05rem;
}

.metal-alloy-chart__legend-marker--filled {
    background: var(--metal-alloy-ink);
}

.metal-alloy-chart__legend-marker--heat-treated {
    border-color: var(--metal-alloy-accent);
    background: var(--metal-alloy-accent);
}

.metal-alloy-chart__legend-marker--ring {
    border: 2px solid var(--metal-alloy-accent);
    border-radius: 50%;
    background: #ffffff;
}

.metal-alloy-chart__legend-marker--hip {
    border: 2px solid var(--metal-alloy-ink);
    background: var(--metal-alloy-hip);
}

.metal-alloy-chart__legend-line {
    display: inline-block;
    width: 1.1rem;
    border-top: 1.5px dashed var(--metal-alloy-accent);
}

@media (max-width: 640px) {
    .metal-alloy-chart {
        margin-right: -0.25rem;
        margin-left: -0.25rem;
        padding: 1rem 0.8rem;
    }

    .metal-alloy-chart__heading {
        font-size: 1rem;
    }

    .metal-alloy-chart__description {
        font-size: 0.74rem;
    }

    .metal-alloy-chart__legend {
        gap: 0.5rem 0.75rem;
        font-size: 0.69rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .metal-alloy-chart__point {
        transition: none;
    }
}