:root {
    --wsrp-banner: url("/images/wsrp/newlogos/banner-clean.webp");
    --wsrp-cyan: #55def7;
    --wsrp-gold: #f8c28c;
}
.wsrp-header .wsrp-brandbar { padding-block: .35rem; }
.wsrp-header .wsrp-brand { display: inline-flex; align-items: center; }
.wsrp-header .wsrp-wordmark { display: block; width: clamp(175px, 23vw, 285px); height: auto; }
.wsrp-header .wsrp-hero,
.wsrp-ucp .hero {
    background: linear-gradient(90deg, #08162944, transparent 68%), var(--wsrp-banner) center 57% / cover no-repeat #101d32;
    color: #fff;
}
.wsrp-header .wsrp-hero { min-height: clamp(250px, 23vw, 385px); border-bottom: 1px solid #57748c; }
.wsrp-header .wsrp-hero-content { max-width: 760px; }
.wsrp-header .wsrp-hero h1, .wsrp-ucp .hero h1 { color: #fff; text-wrap: balance; }
.wsrp-header .wsrp-hero p, .wsrp-ucp .hero p { color: #e0ecfa; }
.wsrp-header .wsrp-eyebrow, .wsrp-ucp .hero-kicker { color: var(--wsrp-cyan); }
.wsrp-header .wsrp-hero .wsrp-hero-button, .wsrp-ucp .hero-actions a:first-of-type {
    background: var(--wsrp-cyan); color: #081929; border-color: transparent;
}
.wsrp-header .wsrp-hero .wsrp-hero-button:hover, .wsrp-ucp .hero-actions a:first-of-type:hover { background: #a0effc; }
.wsrp-ucp .brand-emblem { object-fit: contain; background: transparent; border: 0; }
.wsrp-ucp .hero { text-align: left; place-items: center stretch; min-height: clamp(260px, 24vw, 390px); }
.wsrp-ucp .hero .wrap { width: min(1680px, calc(100% - clamp(1.5rem,5vw,5rem))); max-width: none; }
.wsrp-ucp .hero-actions { justify-content: flex-start; max-width: 43rem; }
.prostore-page .prostore-storefront {
    padding: clamp(1rem, 3vw, 2rem);
    border: 1px solid #53718c;
    border-radius: 14px;
    background: linear-gradient(90deg, #101d32 18%, #101d32b8 68%, #101d32), var(--wsrp-banner) center 57% / cover;
    color: #fff;
}
.prostore-page .prostore-storefront .prostore-muted { color: #e0ecfa; }
.prostore-page .prostore-storefront .prostore-actions { justify-content: flex-start; margin-top: .75rem; }
@media (max-width: 760px) {
    .wsrp-header .wsrp-hero, .wsrp-ucp .hero {
        background-image: linear-gradient(90deg, #081629ef, #08162982), var(--wsrp-banner);
        background-position: 64% center;
    }
    .wsrp-ucp .hero { min-height: 0; padding-block: 2rem; }
}
/* The forum theme renders its artwork on a separate parallax layer. */
.wsrp-header .wsrp-hero::before {
    background: linear-gradient(90deg, #08162966, transparent 68%), var(--wsrp-banner) center 58% / cover no-repeat;
}
.wsrp-header .wsrp-hero .wsrp-hero-button { color: #081929 !important; }
.wsrp-ucp .wrap { width: min(1680px, calc(100% - clamp(1.5rem, 5vw, 5rem))); }
@media (max-width: 760px) {
    .wsrp-header .wsrp-hero::before {
        background-image: linear-gradient(90deg, #081629ef, #08162982), var(--wsrp-banner);
        background-position: 64% center;
    }
    .wsrp-ucp .masthead .appearance { margin-inline-start: auto; }
}
.wsrp-ucp .ucp-store-heading {
    padding: 1rem 1.15rem;
    margin: 0 0 1rem;
    border: 1px solid #53718c;
    border-radius: 10px;
    background: linear-gradient(90deg, #101d32, #101d3270), var(--wsrp-banner) center 59% / cover;
    color: #fff;
}
.wsrp-ucp .ucp-store-heading h2 { margin-bottom: .25rem; }
.wsrp-ucp .ucp-store-heading p { margin: 0; color: #e0ecfa; }
@media (max-width: 760px) {
    .wsrp-ucp .masthead .brand { min-width: 0; }
    .wsrp-ucp .panel-nav { min-width: 0; }
}
/* Keep the forum header and content on a consistent vertical rhythm. */
.wsrp-header .wsrp-brandbar { padding-block: .3rem; }
.wsrp-header .wsrp-wordmark { width: clamp(170px, 20vw, 248px); }
.wsrp-header .wsrp-hero {
    min-height: 260px;
    padding: 24px clamp(18px, 3vw, 40px);
}
.wsrp-header .wsrp-hero::before { background-position: center 64%; }
.wsrp-header .wsrp-hero h1 { margin: .55rem 0; }
.wsrp-header .wsrp-hero p { margin: 0 0 .9rem; }
.wsrp-header .wsrp-hero-actions { gap: .55rem .7rem; }
.wsrp-header #panel .lower > .wrapper { gap: .6rem 1rem; padding-block: 3px; }
.wsrp-header + #content { padding-block: 14px !important; }
.wsrp-header + #content .navigation { margin: 0 0 .6rem; }
.wsrp-forum-tabs #forum-tab-sub-menu { margin: 0 0 .8rem; }
@media (max-width: 760px) {
    .wsrp-header .wsrp-hero { min-height: 0; padding-block: 24px; }
    .wsrp-header .wsrp-hero::before { background-position: 64% center; }
    .wsrp-header .wsrp-hero h1 { font-size: clamp(1.45rem, 5.2vw, 2rem); }
}
.wsrp-header .wsrp-brandbar > .wrapper { justify-content: space-between; gap: .5rem; }
.wsrp-header .wsrp-community-label { text-transform: uppercase; white-space: nowrap; }
@media (max-width: 480px) {
    .wsrp-header .wsrp-wordmark { width: clamp(126px, 42vw, 170px); }
    .wsrp-header .wsrp-community-label { display: inline-flex; font-size: .58rem; padding: .35rem .5rem; letter-spacing: .035em; }
}
@media (max-width: 768px) {
    #container:has(> .wsrp-header) { min-width: 0; }
    .wsrp-header .wsrp-community-label { display: inline-flex; }
}
/* Shared banner crop and compact spacing for the forum and panels. */
.wsrp-header .wsrp-hero::before { background-position: center bottom; }
.wsrp-ucp .hero {
    background-position: center bottom;
    min-height: 260px;
    padding: 24px 0;
    margin-bottom: 1rem;
}
.wsrp-ucp .masthead .masthead-inner { min-height: 0; padding-block: .65rem; }
.wsrp-ucp .hero-actions { margin-top: .85rem; gap: .5rem; }
.wsrp-ucp .hero-actions a { padding: .55rem .8rem; }
#content .prostore-page { padding-top: .25rem; }
#content .prostore-page .prostore-page-header { margin-bottom: .85rem; }
#content .prostore-page .prostore-toolbar { margin-block: .75rem; }
.prostore-page .prostore-storefront,
.wsrp-ucp .ucp-store-heading {
    padding: .85rem 1rem;
    background-position: center bottom;
}
.wsrp-server-panel main { margin-block: 14px; padding: 12px; }
.wsrp-server-panel .panel-header { margin-bottom: 12px; }
.wsrp-server-panel .brandbar,
.wsrp-server-panel .panel-nav { gap: .55rem; padding: .5rem .85rem; }
.wsrp-server-panel .brandbar { justify-content: space-between; }
.wsrp-server-panel .panel-wordmark { display: block; width: clamp(125px, 30vw, 225px); height: auto; }
.wsrp-server-panel .panel-community {
    padding: .35rem .65rem;
    border: 1px solid #345c76;
    border-radius: 999px;
    color: #c7e3f4;
    background: #1e3c55;
    font-size: .68rem;
    text-transform: uppercase;
    white-space: nowrap;
}
.wsrp-server-panel .panel-nav {
    justify-content: flex-start;
    min-height: 108px;
    background: linear-gradient(90deg, #081629ee, #08162940), var(--wsrp-banner) center bottom / cover;
}
.wsrp-server-panel .panel-nav h1 { margin-inline-end: auto; }
.wsrp-server-panel section { margin-bottom: 10px; padding: .8rem; }
.wsrp-server-panel .panel-embedded main { width: 100%; margin: 0; }
.wsrp-server-panel .panel-embedded .brandbar { display: none; }
.wsrp-server-panel .panel-embedded .panel-nav { min-height: 64px; }
@media (max-width: 760px) {
    .wsrp-header .wsrp-hero::before, .wsrp-ucp .hero { background-position: 72% bottom; }
    .wsrp-ucp .hero { min-height: 0; padding-block: 1.3rem; }
    .wsrp-server-panel .panel-nav h1 { flex-basis: 100%; }
}
/* Fit the car artwork to the panel height on wide screens. */
.wsrp-ucp .hero,
.wsrp-ucp .ucp-store-heading {
    background-color: #101d32;
    background-image: linear-gradient(90deg, #101d32 20%, #101d32ee 34%, transparent 65%), var(--wsrp-banner);
    background-repeat: no-repeat;
    background-position: center, right center;
    background-size: 100% 100%, auto 100%;
}
.wsrp-ucp .ucp-store-heading {
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
@media (max-width: 760px) {
    .wsrp-ucp .hero,
    .wsrp-ucp .ucp-store-heading {
        background-image: linear-gradient(90deg, #101d32f5, #101d3240), var(--wsrp-banner);
        background-position: center, right center;
        background-size: 100% 100%, auto 100%;
    }
    .wsrp-ucp .ucp-store-heading { min-height: 115px; }
}
.wsrp-server-panel .panel-nav {
    background-color: #101d32;
    background-image: linear-gradient(90deg, #101d32 24%, #101d32aa 56%, transparent 78%), var(--wsrp-banner);
    background-repeat: no-repeat;
    background-position: center, right center;
    background-size: 100% 100%, auto 100%;
}
.wsrp-server-panel .panel-embedded .panel-nav {
    min-height: 112px;
}
@media (max-width: 540px) {
    .wsrp-server-panel .panel-nav {
        background-image: linear-gradient(90deg, #101d32f5, #101d3240), var(--wsrp-banner);
    }
}
.wsrp-ucp .hero,
.wsrp-ucp .ucp-store-heading,
.wsrp-server-panel .panel-nav {
    position: relative;
    isolation: isolate;
    background: #101d32;
}
.wsrp-ucp .hero::before,
.wsrp-ucp .ucp-store-heading::before,
.wsrp-server-panel .panel-nav::before {
    content: "";
    position: absolute;
    inset: 0 0 0 auto;
    height: 100%;
    aspect-ratio: 3;
    z-index: -1;
    pointer-events: none;
    border-radius: inherit;
    background: var(--wsrp-banner) right center / auto 100% no-repeat;
    mask-image: linear-gradient(90deg, transparent, #000 56%);
}
.wsrp-ucp .hero,
.wsrp-ucp .ucp-store-heading { overflow: hidden; }
@media (max-width: 760px) {
    .wsrp-ucp .hero::before,
    .wsrp-ucp .ucp-store-heading::before,
    .wsrp-server-panel .panel-nav::before { opacity: .62; }
}

/* Keep the roof and tires inside the hero at each layout width. */
.wsrp-header .wsrp-hero {
    min-height: clamp(252px, 19vw, 340px);
}
.wsrp-header .wsrp-hero::before {
    inset: 0;
    transform: none;
    background-position: center, right bottom;
    background-size: 100% 100%, auto max(100%, min(33vw, 530px));
    background-repeat: no-repeat;
}
#content .prostore-page:has(.prostore-storefront) { max-width: 1340px; }
.prostore-page .prostore-storefront {
    min-height: 148px;
    background-image: linear-gradient(90deg, #101d32 22%, #101d32b8 49%, #101d321a 78%), var(--wsrp-banner);
    background-position: center, right bottom;
    background-size: 100% 100%, auto 155%;
    background-repeat: no-repeat;
}
.wsrp-ucp .hero::before,
.wsrp-ucp .ucp-store-heading::before,
.wsrp-server-panel .panel-nav::before {
    width: min(100%, 860px);
    aspect-ratio: auto;
    background-size: auto 155%;
    background-position: right bottom;
}
@media (max-width: 760px) {
    .wsrp-header .wsrp-hero { min-height: 235px; }
    .wsrp-header .wsrp-hero::before {
        background-size: 100% 100%, auto 100%;
    }
    .prostore-page .prostore-storefront {
        background-size: 100% 100%, auto 110%;
    }
}
