

/*
 * Hide the ORIGINAL static homepage hero wherever it
 * currently sits after the homepage layout scripts run.
 *
 * The original hero uses:
 *     <section class="hero">
 *
 * The redesign hero uses its own home-redesign classes,
 * so it is not targeted here.
 */

section.hero {
    display: none !important;
}


/*
 * Keep the original decorative artwork hidden.
 */

.rb-hero-brand-art {
    display: none !important;
}




/*
 * TODAY'S RACING
 *
 * Align the existing #today section to the redesigned
 * homepage content column.
 *
 * No race/date/navigation behaviour is changed.
 */

#today > .shell {
    width: min(100% - 32px, 960px) !important;
    max-width: 960px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
}


/*
 * Keep the heading, date strip and race content using
 * the full width of that aligned shell.
 */

#today .section-heading,
#today .date-strip {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}


/*
 * Mobile keeps normal safe page gutters.
 */

@media (max-width: 760px) {

    #today > .shell {
        width: calc(100% - 24px) !important;
        max-width: none !important;
    }

}




/*
 * HOME / BRAIN BETS VIEW SEPARATION
 *
 * HOME:
 *   homepage redesign remains visible
 *   Today's Racing remains visible
 *
 * BRAIN BETS / STRATEGY HUB:
 *   homepage redesign is hidden
 *   existing Brain Bets page owns the screen
 *
 * No betting, strategy or API logic is changed.
 */

body.brain-bets-page-view #homeTopLayoutV4 {
    display: none !important;
}



.rb-guide-launch{margin-left:8px;padding:13px 18px;border:1px solid #b8ff35;border-radius:10px;background:#101710;color:#b8ff35;font:800 12px/1.2 inherit;cursor:pointer;letter-spacing:.035em}
.rb-guide-launch:hover{background:#b8ff35;color:#081008}
.rb-guide-overlay{position:fixed;inset:0;z-index:2147483000;background:rgba(0,0,0,.88);display:none;align-items:flex-start;justify-content:center;overflow-y:auto;padding:35px 16px}
.rb-guide-overlay.is-open{display:flex}
.rb-guide-dialog{width:min(920px,100%);position:relative;background:#0d130f;border:1px solid #293b1c;border-radius:20px;padding:clamp(22px,4vw,45px);color:#f3f5f0;box-shadow:0 30px 100px #000}
.rb-guide-close{position:absolute;top:18px;right:18px;border:1px solid #405038;background:#141c15;color:white;border-radius:9px;width:38px;height:38px;cursor:pointer;font-size:23px}
.rb-guide-kicker{font-size:11px;font-weight:900;letter-spacing:.12em;color:#b8ff35}
.rb-guide-dialog h2{font-size:clamp(30px,5vw,48px);line-height:1.05;margin:13px 45px 16px 0;color:white}
.rb-guide-intro{color:#aab6aa;line-height:1.7;max-width:720px}
.rb-guide-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:28px 0}
.rb-guide-card{border:1px solid #29372b;background:#121a14;border-radius:14px;padding:22px}
.rb-guide-num{color:#b8ff35;font-size:12px;font-weight:900;letter-spacing:.08em}
.rb-guide-card h3{font-size:19px;margin:10px 0;color:white}
.rb-guide-card p{font-size:14px;line-height:1.65;color:#abb8ab;margin:0}
.rb-guide-wide{grid-column:1/-1}
.rb-guide-section{border-top:1px solid #30402d;padding-top:25px}
.rb-guide-section h3{font-size:25px;color:white;margin:10px 0}
.rb-guide-strategies{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:20px}
.rb-guide-strategy{background:#151e16;border:1px solid #2c3b2c;border-radius:11px;padding:17px}
.rb-guide-strategy strong{color:#b8ff35;display:block;margin-bottom:7px}
.rb-guide-strategy p{font-size:13px;line-height:1.6;color:#b1bdb0;margin:0}
.rb-guide-note{font-size:12px;line-height:1.6;color:#849285;margin-top:22px}
@media(max-width:650px){.rb-guide-grid,.rb-guide-strategies{grid-template-columns:1fr}.rb-guide-wide{grid-column:auto}.rb-guide-launch{margin-left:0;margin-top:8px}.rb-guide-dialog{padding:24px 18px}}
