#jr-widget-tab {
    background: var(--jr-gradient-brand);
    color: var(--jr-text-on-dark);
    padding: 0 .75em;
}

#jr-widget-tab a {
    color: var(--jr-text-on-dark);
    text-decoration: none;
}

.jr-tab-content.ui-tabs-panel {
    padding: 1em .75em;
}

.news-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: .5em;
    padding-bottom: .5em;
    border-bottom: 1px solid #2351A03D;
}

.news-thumb {
    flex: 0 0 100px;
    margin-right: 15px;
}

.news-thumb img {
    width: 100px;
    height: auto;
    display: block;
}

.news-content {
    flex: 1;
}

h4.news-title {
    color: #212121;
    margin-bottom: .2em;
}

h4.news-title a {
    color: #212121;
    text-decoration: none;
    font-size: .875em;
    font-weight: 700;
    line-height: 1.5em;
}

h4.news-title a:hover {
    color: #212121;
}

.news-meta {
    font-size: 0.8em;
    color: #212121;
}

.news-meta .jr-author-meta {
    padding-left: 5px;
    font-size: 1em;
    font-weight: 700;
    line-height: 1.5em;
}

.news-meta p {
    margin-right: 5px;
}

/* overwriting widget */
.jr-tabs-container {
    margin-top: .2em;
}

.jr-related-section-wrapper .ui-widget.ui-widget-content {
    border: none;
}

.jr-related-section-wrapper .ui-corner-all,
.jr-related-section-wrapper .ui-corner-bottom,
.jr-related-section-wrapper .ui-corner-right,
.jr-related-section-wrapper .ui-corner-br {
    border-bottom-right-radius: 0;
}

.jr-related-section-wrapper .ui-corner-all,
.jr-related-section-wrapper .ui-corner-bottom,
.jr-related-section-wrapper .ui-corner-left,
.jr-related-section-wrapper .ui-corner-bl {
    border-bottom-left-radius: 0;
}

.jr-related-section-wrapper .ui-corner-all,
.jr-related-section-wrapper .ui-corner-top,
.jr-related-section-wrapper .ui-corner-right,
.jr-related-section-wrapper .ui-corner-tr {
    border-top-right-radius: 0;
}

.jr-related-section-wrapper .ui-corner-all,
.jr-related-section-wrapper .ui-corner-top,
.jr-related-section-wrapper .ui-corner-left,
.jr-related-section-wrapper .ui-corner-tl {
    border-top-left-radius: 0;
}

.jr-related-section-wrapper .ui-tabs .ui-tabs-nav li.ui-tabs-active {
    /* margin-bottom: -1px; */
    /* padding-bottom: 1px; */
    background-color: var(--jr-color-secondary);
    height: auto;
}

.jr-related-section-wrapper .ui-tabs .ui-tabs-nav li {
    margin: 0;
    border: none;
    background: transparent;
    color: var(--jr-text-on-dark);
}

.jr-related-section-wrapper .ui-tabs .ui-tabs-nav {
    padding: 0;
    border: none;
}

.jr-related-section-wrapper .ui-tabs .ui-tabs-nav .ui-tabs-anchor {
    font-size: .75em;
    font-weight: 600;
    line-height: 1em;
}

/* New styles for author initial fallback */
.news-thumb {
    position: relative;
    flex: 0 0 80px;
    margin-right: 15px;
    height: 80px;
    overflow: hidden;
}

.news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.author-initial-thumb {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--jr-color-gray);
    color: var(--jr-text-on-dark);
    font-size: 40px;
    font-weight: bold;
    text-transform: uppercase;
}

.news-content .jr-category {
    font-weight: 600;
    font-size: .625em;
    line-height: .875;
}

.jr-comment-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-start;
    font-size: .75em;
    font-weight: 600;
    line-height: 1em;
}

.jr-comment-meta > span,
.jr-comment-meta > figure {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.jr-comment-meta figure svg {
    margin-right: 0.25rem;
}

/* fix jquery.tabs FOUC 
FOUC; flash of unstyled content*/
/* Critical CSS for tabs */
#jr-tabs-container {
    opacity: 0;
    transition: opacity 0.1s ease;
}

#jr-tabs-container.ui-tabs-initialized {
    opacity: 1;
}
