/* ==========================================================
   ReHWolution - Global color palette
   ========================================================== */

.jnews-dark-mode {
    --j-txt-color: #FFFFFF;
    --j-meta-txt-color: #BBBBBB;
}


/* ==========================================================
   ReHWolution - Header navigation
   ========================================================== */

/* Search button hover and keyboard focus */
.jeg_header .jeg_search_toggle:hover,
.jeg_header .jeg_search_toggle:focus-visible {
    box-shadow: inset 0 -3px 0 #666666 !important;
}

/* Main menu responsive spacing */
@media (min-width: 1025px) and (max-width: 1199px) {
    .jeg_main_menu > li > a {
        padding-left: 8px;
        padding-right: 8px;
    }
}


/* ==========================================================
   ReHWolution - Footer typography and accessibility
   ========================================================== */

/* Footer navigation */
.jeg_footer .jeg_menu_footer a {
    font-weight: 600;
}

/* Footer keyboard focus */
.rhw-footer-main a:focus-visible {
    outline: 2px solid #E0E0E0 !important;
    outline-offset: 3px !important;
}

/* Footer logo dimensions */
.rhw-footer-logo img {
    width: 350px;
    max-width: 100%;
    height: auto;
}


/* ==========================================================
   ReHWolution - Homepage Hero
   ========================================================== */

/* Review rating stars */
.jeg_heroblock.rhw-home-hero .jeg_post_meta .jeg_review_stars,
.jeg_heroblock.rhw-home-hero .jeg_post_meta .jeg_review_stars .fa {
    color: #CC1111 !important;
}

/* Review publication date */
.jeg_heroblock.rhw-home-hero .jeg_post_meta .jeg_meta_date,
.jeg_heroblock.rhw-home-hero .jeg_post_meta .jeg_meta_date a,
.jeg_heroblock.rhw-home-hero .jeg_post_meta .jeg_meta_date .fa {
    color: #DDDDDD !important;
}

/* Publication date clock icon visibility */
.jeg_heroblock .jeg_post_meta .fa-clock-o {
    display: none !important;
}

/* Reviews button typography */
.rhw-home-reviews-button .vc_btn3 {
    font-weight: 600;
}


/* ==========================================================
   ReHWolution - Homepage News
   ========================================================== */

/* News thumbnail aspect ratio */
.rhw-home-news .jeg_thumb .thumbnail-container {
    padding-bottom: 56.25%;
}

/* News vertical spacing */
.rhw-home-news article.jeg_post {
    margin-bottom: 20px;
}

/* News title typography */
.rhw-home-news .jeg_post .jeg_post_title {
    font-weight: 700;
}

/* Category filter typography and color */
.rhw-home-news a.subclass-filter {
    font-weight: 600;
    color: #FFFFFF;
}

/* Category overflow menu */
.rhw-home-news .okayNav__nav--invisible {
    background-color: #CC1111 !important;
}

.rhw-home-news .okayNav__nav--invisible a.subclass-filter {
    text-transform: uppercase;
}

.rhw-home-news .okayNav__nav--invisible li,
.rhw-home-news .okayNav__nav--invisible li a {
    border-color: #AA0E0E;
}

/* Load More button typography */
.rhw-home-news .jeg_block_loadmore a {
    font-weight: 600;
}

/* Metadata visibility */
.rhw-home-news .jeg_meta_comment,
.rhw-home-news .jeg_meta_views,
.rhw-home-news .jeg_meta_author .by,
.rhw-home-news .jeg_meta_date .fa-clock-o {
    display: none;
}

/* Author typography */
.rhw-home-news .jeg_meta_author a {
    font-weight: 600;
    font-size: 12px;
}

/* Publication date typography and color */
.rhw-home-news .jeg_meta_date a {
    font-weight: 500;
    font-size: 12px;
    color: #666666;
}

/* Dark mode author color */
.jnews-dark-mode .rhw-home-news .jeg_meta_author a {
    color: #FF5555 !important;
}

/* Dark mode publication date color */
.jnews-dark-mode .rhw-home-news .jeg_meta_date a {
    color: var(--j-meta-txt-color) !important;
}


/* ==========================================================
   ReHWolution - Article cover
   ========================================================== */

/* Graphite & Tech Red gradient - Single Post Template 4 */
body.jeg_single_tpl_4 .jeg_featured_big .jeg_featured_bg {
    background: linear-gradient(90deg, #141414 10%, #500808 90%);
}

/* Cover image opacity - Single Post Template 4 */
body.jeg_single_tpl_4 .jeg_featured_big .jeg_featured_img {
    opacity: 0.3;
}

/* Remove author and category prefixes */
.jeg_featured_big .jeg_meta_author .meta_text,
.jeg_featured_big .jeg_meta_category .meta_text {
    display: none;
}

/* Normalize metadata group spacing */
.jeg_featured_big .jeg_meta_author,
.jeg_featured_big .jeg_meta_date {
    margin-right: 0;
}

/* Remove native date separator */
.jeg_featured_big .jeg_meta_date::before {
    content: none !important;
}

/* Metadata separators */
.jeg_featured_big .jeg_meta_author + .jeg_meta_date::before,
.jeg_featured_big .jeg_meta_author + .jeg_meta_category::before,
.jeg_featured_big .jeg_meta_date + .jeg_meta_category::before {
    content: "|" !important;
    display: inline-block;
    color: #DDDDDD;
    font-weight: 400;
    margin: 0 10px;
}

/* Consistent metadata color */
.jeg_featured_big .jeg_meta_date a {
    color: #FFFFFF !important;
}


/* ==========================================================
   ReHWolution - Article content
   ========================================================== */

/* Split Post navigation label typography and contrast */
.content-inner .jeg_splitpost_bar > span {
    font-weight: 500;
    color: #666666;
}

/* Split Post navigation label - Dark Mode */
.jnews-dark-mode .content-inner .jeg_splitpost_bar > span {
    color: #FFFFFF !important;
}

/* Dark mode article link color */
.jnews-dark-mode .entry-content a {
    color: #FF5555 !important;
}

/* Article tags - Typography and light mode color */
.entry-content .jeg_post_tags a {
    color: #CC1111;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Article tags - Dark mode color */
.jnews-dark-mode .entry-content .jeg_post_tags a {
    color: #FFFFFF !important;
}

/* Article tags - Hover and keyboard focus */
.entry-content .jeg_post_tags a:hover,
.entry-content .jeg_post_tags a:focus-visible {
    color: #FFFFFF !important;
    background-color: #CC1111 !important;
}

/* Article tags - Keyboard focus outline */
.entry-content .jeg_post_tags a:focus-visible {
    outline: 2px solid #CC1111;
    outline-offset: 2px;
}

/* Article tags - Dark mode keyboard focus outline */
.jnews-dark-mode .entry-content .jeg_post_tags a:focus-visible {
    outline-color: #E0E0E0;
}

/* Previous / Next Post - Light mode label contrast */
body:not(.jnews-dark-mode) .jeg_prevnext_post .caption {
    color: #666666;
}

/* Previous / Next Post - Light mode title hover and focus */
.jeg_prevnext_post a.post:hover .post-title,
.jeg_prevnext_post a.post:focus-visible .post-title {
    color: #CC1111;
}

/* Previous / Next Post - Dark mode title hover and focus */
.jnews-dark-mode .jeg_prevnext_post a.post:hover .post-title,
.jnews-dark-mode .jeg_prevnext_post a.post:focus-visible .post-title {
    color: #FF5555 !important;
}

/* Previous / Next Post - Keyboard focus outline */
.jeg_prevnext_post a.post:focus-visible {
    outline: 2px solid #CC1111;
    outline-offset: 3px;
}

/* Previous / Next Post - Dark mode keyboard focus outline */
.jnews-dark-mode .jeg_prevnext_post a.post:focus-visible {
    outline-color: #E0E0E0;
}


/* ==========================================================
   ReHWolution - Review Box
   ========================================================== */

/* Unified review score color */
.jeg_review_wrap .review_score {
    background: #CC1111;
    color: #FFFFFF;
}

/* Review rating bars - Light Mode */
.jeg_review_wrap .jeg_reviewbars .barbg {
    background: #CC1111;
}

/* Review bar indicator - Light Mode */
.jeg_review_wrap .jeg_reviewbars .barbg::after {
    border-color: #CC1111;
}

/* Review rating bars - Dark Mode */
.jnews-dark-mode .jeg_review_wrap .jeg_reviewbars .barbg {
    background: #FF2222;
}

/* Review bar indicator - Dark Mode */
.jnews-dark-mode .jeg_review_wrap .jeg_reviewbars .barbg::after {
    border-color: #FF2222;
}

/* Review bar track - Dark Mode */
.jnews-dark-mode .jeg_review_wrap .jeg_reviewbars .jeg_reviewbar_wrap {
    background-color: #303030 !important;
}

/* Review pricing and purchase button contrast - Dark Mode */
.jnews-dark-mode .entry-content .bestprice .price,
.jnews-dark-mode .entry-content .jeg_storelist a.storename,
.jnews-dark-mode .entry-content .jeg_storelist a.price,
.jnews-dark-mode .entry-content .jeg_storelist .productlink {
    color: #FFFFFF !important;
}

/* Store links - Hover and keyboard focus */
.entry-content .jeg_storelist a.storename:hover,
.entry-content .jeg_storelist a.storename:focus-visible,
.entry-content .jeg_storelist a.price:hover,
.entry-content .jeg_storelist a.price:focus-visible {
    color: #CC1111;
    text-decoration: underline;
}

/* Store links - Dark Mode hover and keyboard focus */
.jnews-dark-mode .entry-content .jeg_storelist a.storename:hover,
.jnews-dark-mode .entry-content .jeg_storelist a.storename:focus-visible,
.jnews-dark-mode .entry-content .jeg_storelist a.price:hover,
.jnews-dark-mode .entry-content .jeg_storelist a.price:focus-visible {
    color: #FF5555 !important;
}

/* Purchase button - Hover and keyboard focus */
.entry-content .jeg_storelist a.productlink:hover,
.entry-content .jeg_storelist a.productlink:focus-visible {
    color: #FFFFFF !important;
    background-color: #AA0E0E !important;
}

/* Store links - Keyboard focus outline */
.entry-content .jeg_storelist a:focus-visible {
    outline: 2px solid #CC1111;
    outline-offset: 3px;
}

/* Store links - Dark Mode keyboard focus outline */
.jnews-dark-mode .entry-content .jeg_storelist a:focus-visible {
    outline-color: #E0E0E0;
}


/* ==========================================================
   ReHWolution - Pagination accessibility
   ========================================================== */

/* Split Post pagination text contrast - Dark Mode */
.jnews-dark-mode .entry-content .jeg_split_pagination a {
    color: #FFFFFF !important;
}

/* Split Post pagination - Hover and keyboard focus */
.entry-content .jeg_split_pagination a:hover,
.entry-content .jeg_split_pagination a:focus-visible {
    color: #FFFFFF !important;
    background-color: #CC1111 !important;
    border-color: #CC1111 !important;
}

/* Pagination keyboard focus - Light Mode */
.jeg_pagination a:focus-visible {
    outline: 2px solid #CC1111 !important;
    outline-offset: 3px !important;
}

/* Pagination keyboard focus - Dark Mode */
body.jnews-dark-mode .jeg_pagination a:focus-visible {
    outline-color: #E0E0E0 !important;
}


/* ==========================================================
   ReHWolution - Article tables
   ========================================================== */

.entry-content table {
    --rhw-table-border: #999999;
    --rhw-table-hover: #E4E4E4;
    --rhw-table-text: #000000;
    width: 100%;
    max-width: 100%;
    table-layout: auto;
    border-collapse: collapse;
    border: 2px solid var(--rhw-table-border);
    margin: 16px 0 30px;
    line-height: normal;
    font-weight: 500;
    color: var(--rhw-table-text);
}

.entry-content table :is(td, th) {
    font-size: .85em;
    line-height: normal;
    padding: 8px 20px;
    border: 2px solid var(--rhw-table-border);
    vertical-align: middle;
    color: var(--rhw-table-text) !important;
}

.entry-content table th {
    font-weight: 700;
}

.entry-content table p {
    font-size: inherit;
    line-height: inherit;
    font-weight: inherit;
    color: inherit !important;
    margin: 0;
}

.entry-content table p + p {
    margin-top: 4px;
}

.entry-content table tr {
    background: transparent;
}

.entry-content table tbody tr:hover {
    background: var(--rhw-table-hover) !important;
}

/* Horizontal headers take precedence over vertical headers */
.entry-content table thead :is(th, td),
.entry-content table:not(:has(> thead)) th[scope="row"] {
    background: #CC1111;
    color: #FFFFFF !important;
    font-weight: 700;
}

.entry-content table thead :is(th, td) a,
.entry-content table:not(:has(> thead)) th[scope="row"] a {
    color: #FFFFFF !important;
    text-decoration: underline;
}

.entry-content table thead :is(th, td) a:focus-visible,
.entry-content table:not(:has(> thead)) th[scope="row"] a:focus-visible {
    outline: 2px solid #FFFFFF;
    outline-offset: 2px;
}

/* JNews Dark Mode compatibility */
body.jnews-dark-mode .entry-content table {
    --rhw-table-border: #777777;
    --rhw-table-hover: #383838;
    --rhw-table-text: #FFFFFF;
}

@media (prefers-color-scheme: dark) {
    body.jnews-dark-nocookie .entry-content table {
        --rhw-table-border: #777777;
        --rhw-table-hover: #383838;
        --rhw-table-text: #FFFFFF;
    }
}


/* ==========================================================
   ReHWolution - Responsive tables
   ========================================================== */

.entry-content .rhw-table-scroll {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    margin: 16px 0 30px;
}

.entry-content .rhw-table-scroll > table {
    display: table;
    width: 100%;
    margin: 0;
}

.entry-content .rhw-table-scroll:focus-visible {
    outline: 2px solid #CC1111;
    outline-offset: 2px;
}

body.jnews-dark-mode .entry-content .rhw-table-scroll:focus-visible {
    outline-color: #E0E0E0;
}

@media (prefers-color-scheme: dark) {
    body.jnews-dark-nocookie .entry-content .rhw-table-scroll:focus-visible {
        outline-color: #E0E0E0;
    }
}


/* ==========================================================
   ReHWolution - M Chart watermark
   ========================================================== */

.m-chart-container {
    position: relative;
    z-index: 0;
}

.m-chart-container::after {
    content: '';
    background-image: url(https://www.rehwolution.it/wordpress/wp-content/uploads/2026/11/RHW-LOGO-MY27-1000px.png.png);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 50%;
    opacity: 0.2;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    position: absolute;
    z-index: -1;
}


/* ==========================================================
   ReHWolution - Author Box & Author Archive
   ========================================================== */

/* Biography and social icon contrast */
.jeg_authorbox .jeg_author_content,
.jeg_authorpage .jeg_author_content,
.jeg_authorbox .jeg_author_socials a,
.jeg_authorpage .jeg_author_socials a {
    color: #666666;
}

/* Social SVG color inheritance */
.jeg_authorbox .jeg_author_socials a svg,
.jeg_authorpage .jeg_author_socials a svg {
    fill: currentColor !important;
}

/* Social hover and keyboard focus - Light Mode */
.jeg_authorbox .jeg_author_socials a:hover,
.jeg_authorbox .jeg_author_socials a:focus-visible,
.jeg_authorpage .jeg_author_socials a:hover,
.jeg_authorpage .jeg_author_socials a:focus-visible {
    color: #CC1111 !important;
}

/* Social hover and keyboard focus - Dark Mode */
.jnews-dark-mode .jeg_authorbox .jeg_author_socials a:hover,
.jnews-dark-mode .jeg_authorbox .jeg_author_socials a:focus-visible,
.jnews-dark-mode .jeg_authorpage .jeg_author_socials a:hover,
.jnews-dark-mode .jeg_authorpage .jeg_author_socials a:focus-visible {
    color: #FF5555 !important;
}

/* ==========================================================
   ReHWolution - WordPress galleries
   ========================================================== */

.entry-content .gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: flex-start;
}

.entry-content .gallery::after {
    content: none;
    display: none;
}

.entry-content .gallery > .gallery-item {
    float: none;
    flex: 0 0 auto;
    box-sizing: border-box;
}

.entry-content .gallery-columns-1 > .gallery-item {
    width: calc(100% / 1);
}

.entry-content .gallery-columns-2 > .gallery-item {
    width: calc(100% / 2);
}

.entry-content .gallery-columns-3 > .gallery-item {
    width: calc(100% / 3);
}

.entry-content .gallery-columns-4 > .gallery-item {
    width: calc(100% / 4);
}

.entry-content .gallery-columns-5 > .gallery-item {
    width: calc(100% / 5);
}

.entry-content .gallery-columns-6 > .gallery-item {
    width: calc(100% / 6);
}

.entry-content .gallery-columns-7 > .gallery-item {
    width: calc(100% / 7);
}

.entry-content .gallery-columns-8 > .gallery-item {
    width: calc(100% / 8);
}

.entry-content .gallery-columns-9 > .gallery-item {
    width: calc(100% / 9);
}

@media (max-width: 767px) {
    .entry-content .gallery-columns-4 > .gallery-item,
    .entry-content .gallery-columns-5 > .gallery-item,
    .entry-content .gallery-columns-6 > .gallery-item,
    .entry-content .gallery-columns-7 > .gallery-item,
    .entry-content .gallery-columns-8 > .gallery-item,
    .entry-content .gallery-columns-9 > .gallery-item {
        width: calc(100% / 3);
    }
}

@media (max-width: 479px) {
    .entry-content .gallery-columns-3 > .gallery-item,
    .entry-content .gallery-columns-4 > .gallery-item,
    .entry-content .gallery-columns-5 > .gallery-item,
    .entry-content .gallery-columns-6 > .gallery-item,
    .entry-content .gallery-columns-7 > .gallery-item,
    .entry-content .gallery-columns-8 > .gallery-item,
    .entry-content .gallery-columns-9 > .gallery-item {
        width: calc(100% / 2);
    }
}

.entry-content .gallery .gallery-caption {
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    background: transparent !important;
    max-height: none !important;
    overflow: visible;
    white-space: normal;
    overflow-wrap: anywhere;
    font-family: "Chakra Petch Local", sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 21px;
    text-align: center;
    color: #666666 !important;
    padding: 12px 8px 0;
}

.entry-content .gallery .gallery-caption:empty {
    display: none;
}

.jnews-dark-mode .entry-content .gallery .gallery-caption {
    color: #BBBBBB !important;
}

@media (prefers-color-scheme: dark) {
    .jnews-dark-nocookie .entry-content .gallery .gallery-caption {
        color: #BBBBBB !important;
    }
}


/* ==========================================================
   ReHWolution - Historical award galleries
   ========================================================== */

.entry-content .rhw-legacy-awards .gallery {
    align-items: center;
}

.entry-content .rhw-legacy-awards .gallery .gallery-icon {
    text-align: center;
}

.entry-content .rhw-legacy-awards .gallery img {
    width: auto !important;
    max-width: 100%;
    height: auto !important;
    max-height: 250px;
    object-fit: contain;
    margin: 0 auto !important;
}

.entry-content .rhw-legacy-awards .gallery .gallery-caption {
    display: none !important;
}
/* ==========================================================
   ReHWolution Styles — JNews sidebar components
   ========================================================== */

/* 01 — Social sharing: accessible label contrast */

.jeg_socialshare .share_count {
    color: #000000;
}

body.jnews-dark-mode .jeg_socialshare .share_count {
    color: #E0E0E0;
}

/* 02 — Social Counter: X monochrome brand identity */

body .jeg_socialcounter.colored .jeg_twitter a {
    background-color: #000000;
    color: #FFFFFF;
}

body .jeg_socialcounter.colored .jeg_twitter a .fa {
    color: #FFFFFF;
}

/* SVG inherits the icon foreground color */

body .jeg_socialcounter.colored .jeg_twitter a .fa svg {
    fill: currentColor;
}
/* ==========================================================
   ReHWolution Styles — CookieYes adapter
   Brand consistency and accessibility
   ========================================================== */

/* Primary headings and category titles */

.cky-consent-container .cky-title,
.cky-modal .cky-preference-title,
.cky-modal .cky-accordion-btn {
    color: #FFFFFF !important;
}

/* Descriptive text */

.cky-consent-container .cky-notice-des,
.cky-modal .cky-preference-center,
.cky-modal .cky-preference-content-wrapper,
.cky-modal .cky-accordion-header-des {
    color: #E0E0E0 !important;
}

/* Privacy policy links */

.cky-consent-container .cky-policy,
.cky-modal .cky-policy {
    color: #FF6666 !important;
    text-decoration: underline;
}

/* Expand and collapse description */

body .cky-modal .cky-preference-center button.cky-show-desc-btn {
    color: #FF6666;
    text-decoration: underline;
}

/* Primary actions — equal visual prominence */

.cky-consent-container .cky-btn-reject,
.cky-consent-container .cky-btn-accept,
.cky-modal .cky-btn-reject,
.cky-modal .cky-btn-accept,
.cky-modal .cky-btn-preferences {
    background-color: #CC1111 !important;
    border-color: #CC1111 !important;
    color: #FFFFFF !important;
}

/* Primary action hover */

.cky-consent-container .cky-btn-reject:hover,
.cky-consent-container .cky-btn-accept:hover,
.cky-modal .cky-btn-reject:hover,
.cky-modal .cky-btn-accept:hover,
.cky-modal .cky-btn-preferences:hover {
    background-color: #A60E0E !important;
    border-color: #A60E0E !important;
    opacity: 1;
}

/* Secondary action */

.cky-consent-container .cky-btn-customize {
    color: #FFFFFF !important;
    border-color: #FF6666 !important;
}

.cky-consent-container .cky-btn-customize:hover {
    background-color: #2A2A2A !important;
    opacity: 1;
}

/* Necessary cookies status */

.cky-modal .cky-always-active {
    color: #66CC88;
}

/* Category switches — OFF */

.cky-modal .cky-switch input[type="checkbox"] {
    background-color: #777777 !important;
}

/* Category switches — ON */

.cky-modal .cky-switch input[type="checkbox"]:checked {
    background-color: #CC1111 !important;
}

/* Revisit consent button */

.cky-btn-revisit-wrapper {
    background-color: #CC1111 !important;
}

/* Keyboard focus */

body .cky-consent-container :is(a, button):focus-visible,
body .cky-modal :is(a, button, input):focus-visible,
body .cky-btn-revisit-wrapper button:focus-visible {
    outline: 2px solid #FF6666 !important;
    outline-offset: 3px;
}
