/* ============================================================
   SCI UI Polish — site-wide overrides (loaded by sci-ui-polish.php)
   Each block notes the UI/UX issue it addresses.
   ============================================================ */

/* ------------------------------------------------------------
   #4 — Left sidebar nav (Explore / Logistics / Regions) contrast
   All three widget_nav_menu lists render their links at #C0C0C0
   (~1.6:1 on the white sidebar), failing WCAG AA. Force a readable
   slate; brand-blue on hover. !important to beat the customizer
   value injected inline by the theme.
   ------------------------------------------------------------ */
.jeg_sidefeed .widget_nav_menu .menu li a,
.sidefeed_sidebar .widget_nav_menu .menu li a {
    color: #374151 !important; /* slate-700, ~9:1 on white */
}

.jeg_sidefeed .widget_nav_menu .menu li a:hover,
.jeg_sidefeed .widget_nav_menu .menu li.current-menu-item > a,
.sidefeed_sidebar .widget_nav_menu .menu li a:hover,
.sidefeed_sidebar .widget_nav_menu .menu li.current-menu-item > a {
    color: #0b63c6 !important;
}

/* ------------------------------------------------------------
   #6 — Hero registration promo overlap
   The slot-1 promo creative (links to /membership) is a self-contained designed
   image that already carries the "免费注册" message baked in. jnews overlays a
   category badge + a duplicate title on top, which clashes with the baked text.
   Hide jnews's text overlay for this card only so the creative shows clean.
   :has() scopes it to the promo card — real articles in slot 1 (logged-in users)
   keep their overlay. Older browsers without :has() degrade to the prior look.
   ------------------------------------------------------------ */
.jeg_hero_item_1:has(.jeg_thumb a[href*="/membership"]) .jeg_postblock_content {
    display: none !important;
}

/* ------------------------------------------------------------
   #3 — Promote the header "Register" to a filled button
   Registration is a primary KPI, but the link sat as 14px low-contrast grey
   text in the top bar. Make it a brand-blue button; Login stays as quiet text
   beside it. Scoped to the jnews account menu so the login-modal "Sign Up"
   (.bottom_links) is untouched. Only shows for anonymous visitors.
   ------------------------------------------------------------ */
.jeg_accountlink a[href*="/signup"] {
    /* height:auto + vertical margin centers a compact button inside the full-
       height top bar (the theme otherwise stretches the anchor to bar height,
       making a heavy block that protrudes below the bar). */
    display: inline-block !important;
    height: auto !important;
    background: #0b63c6;
    color: #fff !important;
    margin: 12px 2px !important;
    padding: 6px 16px !important;
    border-radius: 4px;
    font-weight: 600;
    line-height: 1.3 !important;
}

.jeg_accountlink a[href*="/signup"]:hover {
    background: #0a56ad;
    color: #fff !important;
}

