



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

   HORSE SEARCH PAGE

   Keep the dedicated Horse research screen on the same

   horizontal grid as the rest of The Racing Brain.

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



body.horse-search-page-view #horseSearchPage {

    width: 100%;

    box-sizing: border-box;

    padding-top: 38px;

    padding-bottom: 70px;

}



body.horse-search-page-view

#horseSearchPage

.horse-search-layout-shell {

    width: 100%;

}





/*

   Search itself does not need to stretch the full page width.

   Results/profile content can use the normal shell.

*/



body.horse-search-page-view

#horseSearchPage

.horse-search-box {

    max-width: 760px;

}



body.horse-search-page-view

#horseSearchPage

.horse-search-head {

    max-width: 900px;

}



body.horse-search-page-view

#horseSearchPage

.horse-search-results {

    max-width: 900px;

}





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

   TRAINER / JOCKEY SEARCH

   It now lives inside the section's existing .shell.

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



#form .tj-search-shell {

    width: 100%;

    max-width: none;

    margin:

        20px

        0

        28px

        0;

    padding: 0;

    box-sizing: border-box;

}



#form .tj-search-shell input,

#form .tj-search-shell

input[type="text"] {

    width: 100%;

    max-width: 760px;

    box-sizing: border-box;

}





/*

   Keep result dropdown/list aligned with the input rather than

   spanning the full stats table.

*/



#form .tj-search-results,

#form .participant-search-results {

    width: 100%;

    max-width: 760px;

}





/* Mobile */

@media (max-width: 720px) {



    body.horse-search-page-view #horseSearchPage {

        padding-top: 24px;

    }



    #form .tj-search-shell {

        margin-top: 16px;

        margin-bottom: 22px;

    }

}



