/* Enhanced Number Line for Lesson 7 */

.nl-container {
    position: relative;
    width: 100%;
    height: 120px; /* Space for jumps above */
    margin: 20px 0;
}

.nl-base {
    position: absolute;
    top: 80px;
    left: 20px;
    right: 30px;
    height: 3px;
    background-color: #2c2c2c;
}

.nl-arrow {
    position: absolute;
    top: 73px;
    right: 15px;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 15px solid #2c2c2c;
}

.nl-ticks {
    position: absolute;
    top: 70px;
    left: 20px;
    right: 30px;
    height: 40px;
}

.nl-tick {
    position: absolute;
    width: 3px;
    height: 20px;
    background-color: #2c2c2c;
    transform: translateX(-50%);
}

.nl-tick-label {
    position: absolute;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.2rem;
    font-weight: bold;
    color: #2c2c2c;
}

/* SVG overlay for jumps */
.nl-svg {
    position: absolute;
    top: 0;
    left: 20px;
    right: 30px;
    height: 80px;
    width: calc(100% - 50px);
    overflow: visible;
}

.jump-path {
    fill: none;
    stroke: #ff3b30;
    stroke-width: 3px;
    stroke-dasharray: 6, 4; /* Dotted */
    stroke-linecap: round;
}

.jump-path.solid {
    stroke-dasharray: none;
}

.jump-arrowhead {
    fill: #ff3b30;
}

.jump-text {
    fill: #ff3b30;
    font-size: 1.2rem;
    font-weight: bold;
    font-family: inherit;
    text-anchor: middle;
}

@media (max-width: 600px) {
    .nl-tick-label {
        font-size: 0.9rem;
    }
    .jump-text {
        font-size: 1rem;
    }
}
