/* =========================================
   MAIN CONTAINER
========================================= */

.sb-acoustic-chart {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
}


/* =========================================
   SVG
========================================= */

.sb-acoustic-svg {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}


/* =========================================
   GRID
========================================= */

.sb-chart-grid line {
    stroke: currentColor;
    stroke-width: 1;
    opacity: 0.10;
}


/* =========================================
   AXIS LABELS
========================================= */

.sb-y-labels text,
.sb-x-labels text {
    fill: currentColor;
    font-size: 14px;
    font-weight: 400;
    opacity: 0.65;
}


/* Y axis */

.sb-y-labels text {
    text-anchor: end;
}


/* X axis */

.sb-x-labels text {
    text-anchor: middle;
}


/* =========================================
   AXIS TITLES
========================================= */

.sb-axis-title {
    fill: currentColor;
    font-size: 16px;
    font-weight: 400;
    text-anchor: middle;
	  opacity: 0.65;
}


/* =========================================
   TEST RESULT
========================================= */

.sb-test-curve {
    fill: none;
    stroke: #005c3f;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* =========================================
   TEST DATA POINTS
========================================= */

.sb-data-point {
    fill: #005c3f;
    stroke: #ffffff;
    stroke-width: 2;
}


/* =========================================
   REFERENCE CURVE
========================================= */

.sb-reference-curve {
    fill: none;
    stroke: #9a9a9a;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.85;
}


/* =========================================
   HOVER GUIDE
========================================= */

.sb-hover-guide {
    stroke: #005c3f;
    stroke-width: 1;
    opacity: 0.28;
    pointer-events: none;
}


/* =========================================
   HOVER POINT
========================================= */

.sb-hover-point {
    fill: #005c3f;
    stroke: #ffffff;
    stroke-width: 3;
    pointer-events: none;
}


/* =========================================
   INTERACTION
========================================= */

#sbHitArea {
    cursor: crosshair;
}


/* =========================================
   TOOLTIP
========================================= */

.sb-chart-tooltip {
    position: absolute;

    min-width: 105px;

    padding: 12px 14px;

    background: rgba(255, 255, 255, 0.97);

    border: 1px solid rgba(0, 0, 0, 0.10);

    border-radius: 8px;

    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.10);

    pointer-events: none;

    opacity: 0;

    transform:
        translate(-50%, -115%)
        translateY(8px);

    transition:
        opacity 150ms ease,
        transform 150ms ease;

    z-index: 20;

    white-space: nowrap;
}


.sb-chart-tooltip.is-visible {

    opacity: 1;

    transform:
        translate(-50%, -115%)
        translateY(0);
}


/* Tooltip Frequency */

.sb-tooltip-frequency {

    font-size: 12px;

    line-height: 1.2;

    margin-bottom: 4px;

    opacity: 0.55;
}


/* Tooltip dB */

.sb-tooltip-value {

    font-size: 18px;

    line-height: 1.1;

    font-weight: 600;

    color: #005c3f;
}


/* =========================================
   LEGEND
========================================= */

.sb-chart-legend {

    display: flex;

    justify-content: center;

    align-items: center;

    flex-wrap: wrap;

    gap: 28px;

    margin-top: 22px;

    font-size: 14px;

    line-height: 1.4;
}


.sb-legend-item {

    display: flex;

    align-items: center;

    gap: 8px;

    white-space: nowrap;

    opacity: 0.75;
}


.sb-legend-line {

    width: 26px;

    height: 2px;

    display: inline-block;

    flex-shrink: 0;
}


/* Test Result */

.sb-test-legend-line {

    background: #005c3f;
}


/* Reference */

.sb-reference-legend-line {

    background: #9a9a9a;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 1024px) {

    .sb-chart-legend {
        gap: 20px;
    }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 767px) {

    .sb-acoustic-chart {
        width: 100%;
    }


    .sb-acoustic-svg {
        width: 100%;
    }


    .sb-axis-title,
    .sb-y-labels text,
    .sb-x-labels text {
        font-size: 14px;
    }


    .sb-test-curve {
        stroke-width: 2.5;
    }


    .sb-reference-curve {
        stroke-width: 1.7;
    }


    .sb-data-point {
        stroke-width: 1.5;
    }


    .sb-hover-point {
        r: 5;
    }


    .sb-chart-tooltip {

        min-width: 88px;

        padding: 10px 12px;

        border-radius: 7px;

    }


    .sb-tooltip-frequency {
        font-size: 11px;
    }


    .sb-tooltip-value {
        font-size: 16px;
    }


    .sb-chart-legend {

        gap: 12px 20px;

        margin-top: 18px;

        font-size: 14px;

    }

}