@charset "utf-8";

.qa-roll-latest {
    position: relative;
    width: 100%;
    padding: 0 10px;
    color: inherit;
}

.qa-roll-title {
    display: block;
    margin: 0;
    line-height: 45px;
    font-size: 1.2em;
    font-weight: normal;
}

.qa-roll-title a {
    color: var(--text-secondary);
}

.qa-roll-viewport {
    height: 120px;
    overflow: hidden;
}

.qa-roll-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.qa-roll-list.is-rolling {
    animation: qaRollUp 22s linear infinite;
}

.qa-roll-latest:hover .qa-roll-list.is-rolling,
.qa-roll-latest:focus-within .qa-roll-list.is-rolling {
    animation-play-state: paused;
}

.qa-roll-list li {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 0;
    border-bottom: 1px solid var(--border-color);
    line-height: 1.35;
}

.qa-roll-list li:last-child {
    border-bottom: 0;
}

.qa-roll-subject {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 1em;
}

.qa-roll-subject:hover {
    color: var(--text-primary);
}

.qa-roll-new {
    flex-shrink: 0;
    display: inline-block;
    min-width: 16px;
    height: 16px;
    border-radius: 2px;
    background: #b9ffda;
    color: #23db79;
    font-size: 0.833em;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    vertical-align: middle;
}

.qa-roll-empty {
    justify-content: center;
    color: var(--text-secondary);
    text-align: center;
}

.qa-roll-more {
    position: absolute;
    top: 8px;
    right: 10px;
    display: block;
    width: 40px;
    line-height: 25px;
    font-size: 1.8em;
    color: var(--link-color);
    text-align: center;
}

.qa-roll-more:hover {
    color: var(--link-hover);
}

@keyframes qaRollUp {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .qa-roll-list.is-rolling {
        animation: none;
    }
}
