/* Root */
.tr-speedo {
    background: #0f1419;
    color: #e0e0e0;
    font-family: "Segoe UI", Roboto, sans-serif;
    padding: 12px;
    border-radius: 8px;
    box-sizing: border-box;
    width: 100%;
	position: relative;
}

.tr-speedo-fullscreen-btn {
    position: absolute;
    top: -25px;
    right: 25px; 
    cursor: pointer;
    opacity: 0.3;
    z-index: 2;
	display: none;
}

.tr-speedo-fullscreen-btn:hover {
    opacity: 1;
}

/* Speedometer fullscreen (control-level) */
.tr-speedo-fullscreen {
    position: static;
}

@media (max-width: 768px) {
    .tr-speedo-fullscreen-btn {
        display: block;
    }
}

@media (max-width: 480px) {
    .tr-speedo-fullscreen .tr-speedo {
        max-width: 100%;
        padding: 16px;
    }
}


.tr-speedo-fullscreen .tr-speedo {
    max-width: 440px;
    width: 100%;
    padding: 12px;
}



/* ===== Rij 1: titel ===== */
.tr-speedo-title {
    text-align: center;
    font-size: 13px;
    letter-spacing: 1px;
    opacity: 0.75;
    margin-bottom: 6px;
}

/* ===== Rij 2: main ===== */
.tr-speedo-main {
    display: grid;
    grid-template-columns: 28px 1fr 28px;
    align-items: center;
}

/* Side columns (acceleratie later) */
.tr-speedo-side {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
    font-size: 18px;
}

/* ===== Gauge ===== */
.tr-speedo-gauge {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
	overflow: hidden;
}


.tr-speedo-gauge canvas {
    width: 100%;
    max-width: 240px;
	pointer-events: none;
}

/* Digitale readout onder de naald */
.tr-speedo-readout {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: auto;
}


.tr-speedo-value {
    font-size: 28px;
    font-weight: 500;
    line-height: 1;
}

.tr-speedo-unit {
    font-size: 11px;
    opacity: 0.6;
    margin-top: 2px;
    cursor: pointer;                 /* 🔑 */
    user-select: none;
}

.tr-speedo-unit:hover {
    opacity: 0.9;
}

/* ===== Rij 3: status ===== */
.tr-speedo-status {
    margin-top: 8px;
    min-height: 22px;
    display: flex;
    justify-content: space-around;
    font-size: 11px;
    opacity: 0.7;
}
