.smi-running-text {
    display: block;
    position: sticky;
    top: var(--smi-sticky-top, 0px);
    z-index: 10;
    width: 100%;
    height: 35px;
    margin-top: var(--smi-header-gap, 0px);
    margin-right: 0;
    margin-bottom: 0;
    margin-left: 0;
    overflow: hidden;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    contain: layout paint;
}

.smi-running-text__track {
    display: flex;
    width: max-content;
    min-width: 100%;
    height: 100%;
    align-items: center;
    animation: smiRunningTicker var(--running-duration, 38s) linear infinite;
    will-change: transform;
}

.smi-running-text:focus-within .smi-running-text__track {
    animation-play-state: paused;
}

.smi-running-text.is-paused .smi-running-text__track {
    animation-play-state: paused;
}

@media (hover: hover) and (pointer: fine) {
    .smi-running-text:hover .smi-running-text__track {
        animation-play-state: paused;
    }
}

.smi-running-text__set {
    display: flex;
    width: max-content;
    min-width: 100vw;
    height: 100%;
    align-items: center;
    gap: 14px;
    padding-right: 48px;
    white-space: nowrap;
}

.smi-running-text__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 650;
}

.smi-running-text__item a {
    text-decoration: none;
}

.smi-running-text__item a:hover,
.smi-running-text__item a:focus-visible {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.smi-running-text__separator {
    color: #b48400;
}

.smi-running-text__vehicle {
    width: 29px;
    height: 18px;
    flex: 0 0 auto;
    overflow: visible;
    fill: #d4af37;
    stroke: #8a6810;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    shape-rendering: geometricPrecision;
    transform: scaleX(-1);
    transform-origin: center;
}

.smi-running-text__vehicle circle {
    fill: #fff;
    stroke: #8a6810;
}

.site-header .drop a.is-active {
    color: #7a5c08;
    background: #fff7dc;
}

@keyframes smiRunningTicker {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(-50%, 0, 0); }
}

@media (max-width: 760px) {
    .entity-tree ul { flex-direction: column; }
    .smi-running-text { height: 34px; }
    .smi-running-text__vehicle { width: 27px; height: 17px; }
}

@media (prefers-reduced-motion: reduce) {
    .smi-running-text__track {
        animation: none !important;
        transform: none !important;
        will-change: auto;
    }

    .smi-running-text__set[aria-hidden="true"] { display: none; }
}
