/*
 * UniRacers — asphalt and circuit detail, shared by every page.
 * Load after approved.css / theme.css. No markup, script or scroll listener.
 * The course is an original decorative drawing, not a named circuit map.
 */
body {
    background-color: #171d21;
}

#uniracers {
    --urt-bg: #171d21;
    background-color: #171d21;
    /* Keep the middle quiet for text, with more of the circuit at the edges. */
    background-image:
        linear-gradient(90deg,
            rgba(18, 23, 27, .48) 0%,
            rgba(18, 23, 27, .55) 20%,
            rgba(18, 23, 27, .7) 43%,
            rgba(18, 23, 27, .7) 57%,
            rgba(18, 23, 27, .55) 80%,
            rgba(18, 23, 27, .48) 100%),
        var(--urt-course-art, url("racing-course.svg")),
        linear-gradient(115deg, #1b2227 0%, #171d21 48%, #1c2226 100%);
    background-position: center top, center -90px, center top;
    background-size: 100% 100%, 1640px 2870px, 100% 100%;
    background-repeat: no-repeat, repeat-y, no-repeat;
    background-attachment: scroll;
}

/* These full-width surfaces used to hide the entire page background. */
#uniracers .ur-season-section {
    background: rgba(28, 34, 39, .28);
    border-bottom-color: #394147;
}

#uniracers .ur-editorial-section {
    background: transparent;
}

#uniracers .ur-community-section {
    background: rgba(31, 37, 42, .43);
    border-block-color: #394147;
}

#uniracers .ur-results-section {
    background: rgba(20, 27, 32, .25);
    border-bottom-color: #394147;
}

#uniracers .ur-join-section {
    background: rgba(32, 38, 42, .38);
}

#uniracers .ur-footer {
    background: rgba(16, 22, 26, .82);
    border-top-color: #3b4247;
}

/* Opaque data surfaces keep the background out of numbers and form fields. */
#uniracers .urt-content table {
    background-color: #192127;
}

/* The established light About section and racing photographs stay intact. */
@media (min-width: 1920px) {
    #uniracers {
        background-size: 100% 100%, 1920px 3360px, 100% 100%;
    }
}

@media (max-width: 1050px) {
    #uniracers {
        background-size: 100% 100%, 1260px 2205px, 100% 100%;
        background-position: center top, center -70px, center top;
    }
}

@media (max-width: 540px) {
    #uniracers {
        /* A smaller slice brings the turns into view without shrinking the UI. */
        background-size: 100% 100%, 920px 1610px, 100% 100%;
        background-position: center top, 54% -35px, center top;
    }
}

@media (prefers-contrast: more) {
    #uniracers {
        background-image: none;
    }
}

@media print {
    body,
    #uniracers {
        background-image: none;
    }
}

/* Stable variation per league/track, selected by WordPress; no scroll script. */
body.urt-course-technical #uniracers { --urt-course-art: url("racing-course-technical.svg"); }
body.urt-course-fast #uniracers { --urt-course-art: url("racing-course-fast.svg"); }
body.urt-course-off #uniracers { background-image: linear-gradient(115deg,#1b2227,#171d21 48%,#1c2226); }
