/*
 * GearCheckpoint RTT public-page top-gap correction.
 *
 * Pages:
 * 359 = Overview
 * 468 = Race Preview
 * 360 = Pricing
 *
 * Vertical spacing only.
 */

body:is(.page-id-359,.page-id-468,.page-id-360) main {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body:is(.page-id-359,.page-id-468,.page-id-360)
.wp-block-post-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/*
 * The first freeform RTT wrapper is where the excessive
 * empty top area is being introduced.
 */
body:is(.page-id-359,.page-id-468,.page-id-360)
.wp-block-post-content > :first-child {
    margin-top: 0 !important;
    padding-top: 28px !important;
}

/*
 * Also cover the known RTT root wrappers without altering
 * their width, bottom spacing, or internal layouts.
 */
body.page-id-359 .gc-rtt-landing,
body.page-id-359 .gc-rtt-roadmap,
body.page-id-468 .gc-rtt-page,
body.page-id-468 .gc-rtt-race-preview,
body.page-id-360 .gc-rtt-pricing-page {
    margin-top: 0 !important;
    padding-top: 28px !important;
}

@media (max-width: 781px) {

    body:is(.page-id-359,.page-id-468,.page-id-360)
    .wp-block-post-content > :first-child,

    body.page-id-359 .gc-rtt-landing,
    body.page-id-359 .gc-rtt-roadmap,
    body.page-id-468 .gc-rtt-page,
    body.page-id-468 .gc-rtt-race-preview,
    body.page-id-360 .gc-rtt-pricing-page {
        padding-top: 20px !important;
    }
}

/*
 * RTT Launch Preparation + First $10 Million top-gap extension.
 * Same owner-approved spacing treatment.
 */

body:is(.page-id-457,.page-id-465) main {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body:is(.page-id-457,.page-id-465)
.wp-block-post-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body:is(.page-id-457,.page-id-465)
.wp-block-post-content > :first-child {
    margin-top: 0 !important;
    padding-top: 28px !important;
}

body:is(.page-id-457,.page-id-465)
.gc-rtt-roadmap,

body:is(.page-id-457,.page-id-465)
.gc-rtt-page {
    margin-top: 0 !important;
    padding-top: 28px !important;
}

@media (max-width: 781px) {

    body:is(.page-id-457,.page-id-465)
    .wp-block-post-content > :first-child,

    body:is(.page-id-457,.page-id-465)
    .gc-rtt-roadmap,

    body:is(.page-id-457,.page-id-465)
    .gc-rtt-page {
        padding-top: 20px !important;
    }
}
