.detector-figure-wrap {
    width: 507px;
    max-width: 100%;
    margin: 30px auto 10px auto;
    position: relative;
    text-align: center;
}

.detector-stage {
    position: relative;
    width: 507px;
    height: 380px;
    margin: 0 auto;
}

.detector-image {
    display: block;
    width: 507px;
    height: 380px;
}

.detector-hotspot {
    position: absolute;
    display: block;
    box-sizing: border-box;
    border: 0;
    background: transparent;
    cursor: pointer;
    pointer-events: auto;
    transition: background 0.18s ease, box-shadow 0.18s ease;
}

/* no visible border, only a soft filled highlight */
.detector-hotspot:hover,
.detector-hotspot.active {
    box-shadow: none;
}

.detector-hotspot.theme-owl:hover,
.detector-hotspot.theme-owl.active {
    background: rgba(25,118,210,0.28);
}

.detector-hotspot.theme-target:hover,
.detector-hotspot.theme-target.active {
    background: rgba(142,56,255,0.30);
}

.detector-hotspot.theme-inner:hover,
.detector-hotspot.theme-inner.active {
    background: rgba(245,124,0,0.30);
}

.detector-info-box {
    display: none;
    width: 550px;
    min-height: 70px;
    margin: 0px auto 0 auto;
    padding: 12px 15px;
    box-sizing: border-box;
    background: rgba(255,255,255,0.98);
    border-left: 7px solid #444;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.18);
    text-align: left;
    line-height: 1.35;
}

.detector-info-box.visible {
    display: block;
}

.detector-info-title {
    display: block;
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 5px;
}

.detector-info-box.theme-owl {
    border-left-color: #1976d2;
}

.detector-info-box.theme-target {
    border-left-color: #8e38ff;
}

.detector-info-box.theme-inner {
    border-left-color: #f57c00;
}

/* 1) Purple source/target volume in the centre, kept as an ellipse */


.hotspot-target-line {
    left: 183px;
    top: 150px;
    width: 320px;
    height: 38px;
    border-radius: 12px;
    z-index: 29;
}

/* 2) OWL fibres: highlight only around the existing black dot/leader-line region */
.hotspot-owl {
    left: 204px;
    top: 110px;
    width: 180px;
    height: 28px;
    border-radius: 15px;
    z-index: 25;
}

/* 3) Inner detector vessel: highlight only around the existing black dot/leader-line region */
.hotspot-inner {
    left: 183px;
    top: 211px;
    width: 320px;
    height: 38px;
    border-radius: 15px;
    z-index: 20;
}

.detector-caption {
    margin-top: 8px;
    text-align: center;
}

.prototype-table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
}

.prototype-text-cell {
    vertical-align: middle;
    width: 55%;
    padding-right: 30px;
}

.prototype-figure-cell {
    vertical-align: middle;
    width: 45%;
    text-align: center;
}

.twocol-table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
}

.twocol-cell-left {
    vertical-align: middle;
    width: 50%;
    padding-right: 30px;
}

.twocol-cell-right {
    vertical-align: middle;
    width: 50%;
    text-align: center;
}

.scint-left {
    vertical-align: middle;
    width: 40%;
    text-align: center;
    padding-right: 30px;
}

.scint-right {
    vertical-align: middle;
    width: 60%;
}

.center-figure,
.center-figure img {
    display: block;
    margin: 0 auto;
}

.figure-caption {
    margin-top: 8px;
    text-align: center;
}

.small-center-image {
    display: block;
    width: 50%;
    height: auto;
    margin: 0 auto;
}

@media (max-width: 980px) {
    .detector-figure-wrap {
        width: 507px;
    }

    .detector-info-box {
        left: 20px;
        top: 395px !important;
        width: 467px;
    }
}

@media (max-width: 700px) {
    .prototype-table,
    .prototype-table tbody,
    .prototype-table tr,
    .prototype-table td,
    .twocol-table,
    .twocol-table tbody,
    .twocol-table tr,
    .twocol-table td {
        display: block;
        width: 100%;
    }

    .prototype-text-cell,
    .prototype-figure-cell,
    .twocol-cell-left,
    .twocol-cell-right,
    .scint-left,
    .scint-right {
        width: 100%;
        padding-right: 0;
        text-align: left;
    }

    .detector-figure-wrap,
    .detector-stage,
    .detector-image {
        width: 100%;
        max-width: 507px;
        height: auto;
    }

    .detector-stage {
        height: 380px;
    }

    .detector-info-box {
        width: calc(100% - 40px);
        max-width: 467px;
    }
}
    