/**
 * Spenco — News Module Supplemental Styles (Tailwind CSS Compatible)
 * Retains only scoped print layout and audio player controls.
 */

:root {
    --plyr-color-main: #0B2411;
    --plyr-audio-controls-background: transparent;
}

.txtrequired {
    color: #DC2626;
}

/* Print Layout (Scoped strictly to #print) */
#print {
    margin: 0 auto;
    text-align: left;
    max-width: 800px;
}

#print a,
#print a:active,
#print a:focus,
#print a:visited {
    color: #0B2411;
    text-decoration: none;
}

#print a:hover {
    text-decoration: underline;
}

#print h1,
#print h2,
#print p {
    margin: 0 0 6px 0;
    padding: 0;
}

/* Audio Player Controls */
.news-detail-player {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
    background-color: #F4F5F2;
    border-radius: 8px;
    padding: 8px 16px;
}

.news-detail-player > .player {
    flex-grow: 1;
    flex-shrink: 1;
    padding-right: 24px;
}

.news-detail-player > .source,
.news-detail-player > .tools {
    flex-grow: 0;
    flex-shrink: 0;
    padding-right: 20px;
}

.news-switch {
    display: flex;
    align-items: center;
}

.news-switch .news-switch-btn {
    margin-left: 5px;
    position: relative;
    width: 44px;
    height: 22px;
}

.news-switch .news-switch-btn .news-switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transition: 0.4s;
}

.news-switch .news-switch-btn .news-switch-slider:before {
    position: absolute;
    content: "";
    background-color: #d6dadf;
    transition: 0.4s;
    height: 14px;
    width: 36px;
    left: 4px;
    bottom: 4px;
    border-radius: 7px;
}

.news-switch .news-switch-btn .news-switch-slider:after {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 0;
    bottom: 0;
    background-color: #525E54;
    transition: 0.4s;
    border-radius: 50%;
}

.news-switch .news-switch-btn.checked .news-switch-slider:after {
    background-color: #0B2411;
    transform: translateX(22px);
}
