/* News Content Styles */
.news-content {
    max-width: 650px;
    margin: 0 auto;
    font-family: 'Lato', Verdana, Helvetica, sans-serif;
}

.news-year-filter {
    max-width: 650px;
    margin: 0 auto 12px auto;
    padding: 10px 14px 8px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background: #fbfcfd;
    color: #495057;
    font-family: 'Lato', Verdana, Helvetica, sans-serif;
}

.news-year-filter[hidden] {
    display: none;
}

.news-year-filter-labels {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
    color: #6c757d;
}

.news-year-filter-labels strong {
    color: #0056b3;
}

.news-year-range {
    --range-start: 0%;
    --range-end: 100%;
    position: relative;
    height: 28px;
    margin: 4px 2px 0;
}

.news-year-range::before,
.news-year-range::after {
    content: '';
    position: absolute;
    top: 13px;
    height: 4px;
    border-radius: 999px;
}

.news-year-range::before {
    left: 0;
    right: 0;
    background: #dee2e6;
}

.news-year-range::after {
    left: var(--range-start);
    right: calc(100% - var(--range-end));
    background: #0056b3;
}

.news-year-slider {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 3;
    width: 100%;
    height: 28px;
    margin: 0;
    pointer-events: none;
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
}

.news-year-slider.is-active {
    z-index: 4;
}

.news-year-slider::-webkit-slider-runnable-track {
    height: 4px;
    background: transparent;
}

.news-year-slider::-webkit-slider-thumb {
    width: 16px;
    height: 16px;
    margin-top: -6px;
    border: 2px solid #0056b3;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
    cursor: pointer;
    pointer-events: auto;
    appearance: none;
    -webkit-appearance: none;
}

.news-year-slider::-moz-range-track {
    height: 4px;
    background: transparent;
}

.news-year-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border: 2px solid #0056b3;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
    cursor: pointer;
    pointer-events: auto;
}

.news-year-slider:focus {
    outline: none;
}

.news-year-slider:focus::-webkit-slider-thumb {
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.18);
}

.news-year-slider:focus::-moz-range-thumb {
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.18);
}

.news-year-filter-summary {
    margin-top: 2px;
    text-align: center;
    font-size: 12px;
    color: #6c757d;
}

.news-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 auto;
    margin-top: -1px;
    position: relative;
    z-index: 0;
}

.news-row {
    transition: background-color 0.3s ease;
}

.news-row:hover {
    background-color: #f8f9fa;
}

.news-row:nth-child(even) {
    background-color: #fefefe;
}

.news-row:nth-child(even):hover {
    background-color: #f0f0f0;
}

.news-cell {
    padding: 6px 12px;
    font-size: 14px;
    line-height: 1.4;
    color: #495057;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: top;
}

.news-cell:last-child {
    border-bottom: none;
}

/* News table column widths */
.news-date-cell {
    width: 100px;
    color: #6c757d;
    border-bottom: 1px solid #f0f0f0;
    text-align: right;
}

.news-content-cell {
    color: #495057;
    border-bottom: 1px solid #f0f0f0;
}

/* Slight gray background for first 5 news entries */
.news-highlight-row {
    background-color: #f8f9fa !important;
}
