



    /* ==========================================================

       NORMAL HOMEPAGE



       Trainer/Jockey stats are not part of the normal TODAY page.

       ========================================================== */



    body:not(.trainer-jockey-page-view) #form {

        display: none !important;

    }





    /* ==========================================================

       DEDICATED TRAINER / JOCKEY VIEW

       ========================================================== */



    body.trainer-jockey-page-view #form {

        display: block !important;

        min-height: calc(100vh - 120px);

    }





    /*

       When viewing Trainer/Jockey Stats, hide normal homepage

       sections so the page behaves like the Brain Bets view.

    */



    body.trainer-jockey-page-view main > .hero {

        display: none !important;

    }



    body.trainer-jockey-page-view main > section:not(#form) {

        display: none !important;

    }





    /*

       Some versions of the frontend use divs rather than section

       elements around the homepage blocks. Hide the known homepage

       racing containers as an additional safety layer.

    */



    body.trainer-jockey-page-view #today,

    body.trainer-jockey-page-view #todayRacing,

    body.trainer-jockey-page-view #racing,

    body.trainer-jockey-page-view #racePage,

    body.trainer-jockey-page-view #brainBets {

        display: none !important;

    }





    /*

       Give the dedicated stats page a little breathing room at top.

    */



    body.trainer-jockey-page-view #form {

        padding-top: 28px;

    }



