/* BPEC V1.1 — photo-rich treatment for the continuous page. */
.champions{background:linear-gradient(180deg,#101216e8 0%,#101216d8 56%,#101216f5 100%),url('../images/GLP-BPEC-Rowrah-Pro-029.jpg') center 48%/cover no-repeat}
.champ-card{background:linear-gradient(0deg,#101216f5 0%,#1012168a 65%,#10121672 100%),var(--champ-photo,url('../images/bpec26_clay-SS3_8855.jpg')) center/cover no-repeat}
.champ-card:before{background:linear-gradient(180deg,#10121635,#10121610 42%,#101216ad 100%)}
.champ-card:nth-child(1){--champ-photo:url('../images/bpec26_clay-SS3_8855.jpg')}
.champ-card:nth-child(2){--champ-photo:url('../images/bpec26_llandow-SS1_7028.jpg')}
.champ-card:nth-child(3){--champ-photo:url('../images/GLP-BPEC-Rowrah-Club-225.jpg')}
#statistics{background:linear-gradient(180deg,#101216ee,#101216d4 50%,#101216f5),url('../images/bpec26_clay-SS3_9059.jpg') center/cover no-repeat !important}
.calendar{background:linear-gradient(180deg,#1b1e24ec,#13161ce5 55%,#101216f5),url('../images/bpec26_llandow-SS1_7461.jpg') center/cover no-repeat}
.event-card{box-shadow:0 18px 36px #0007}
.info-section{background:linear-gradient(180deg,#14171ce8,#14171cf4),url('../images/SS1_7021.jpg') center/cover no-repeat}
.info-section > .section.container{background:linear-gradient(90deg,#14171cdd,#14171c5e),url('../images/SS3_1515.jpg') center/cover no-repeat}
.class-tile{background:linear-gradient(145deg,#20252ce8,#141820ed),url('../images/bpec26_clay-SS1_3432.jpg') center/cover no-repeat;box-shadow:0 10px 30px #0005}
.standings{background:linear-gradient(180deg,#171b21e9,#171b21f5),url('../images/bpecwl26_SS3_3003.jpg') center/cover no-repeat}
.standing-panel{background:#171b21e8;backdrop-filter:blur(6px);box-shadow:0 15px 35px #0006}
.contact{background:linear-gradient(90deg,#a8272df0,#ce3039cc 65%,#e73e44a8),url('../images/SS1_1807.jpg') center 56%/cover no-repeat}

/* Flexible WordPress-managed homepage sections */
.bpec-extra{position:relative;min-height:450px;display:flex;align-items:center;isolation:isolate;overflow:hidden;background:#141b22;color:#fff}
.bpec-extra-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2}
.bpec-extra--banner:before,.bpec-extra--split:before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#0d131bf3 0%,#111920d6 43%,#11192039 100%)}
.bpec-extra-content{width:100%;padding-block:95px;position:relative}
.bpec-extra-content .title{max-width:860px}
.bpec-extra-copy{max-width:740px;line-height:1.8;color:#e0e4eb;font-size:17px}
.bpec-extra-copy a:not(.wp-block-button__link){text-decoration:underline;text-underline-offset:3px}
.bpec-extra--split{min-height:520px}.bpec-extra--split .bpec-extra-photo{left:50%;width:50%}.bpec-extra--split:before{background:linear-gradient(90deg,#151b22 0%,#151b22 49%,#151b2222 72%)}.bpec-extra--split .bpec-extra-content{padding-right:48%}
.bpec-extra--plain{min-height:260px;background:#232b34}.bpec-extra--partners{min-height:260px;background:#f2f4f6;color:#14191f}.bpec-extra--partners .bpec-extra-copy{color:#333b44;max-width:none}.bpec-extra--partners .wp-block-gallery{display:flex;flex-wrap:wrap;gap:24px;align-items:center;justify-content:center}.bpec-extra--partners .wp-block-image img{max-height:110px;width:auto;object-fit:contain}

/* Hire kart campaign */
.bpec-hire{position:relative;isolation:isolate;min-height:650px;display:flex;align-items:center;background:#141d27;color:#fff;overflow:hidden}.bpec-hire>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2}.bpec-hire:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#101820f5 0%,#101820e3 46%,#10182030 100%),linear-gradient(0deg,#111920b9,transparent 45%);z-index:-1}.bpec-hire-content{width:100%;padding-block:100px}.bpec-hire .title{font-size:clamp(52px,6.5vw,99px);max-width:920px}.bpec-hire-intro{font-size:17px;color:#e0e6ed;line-height:1.7;max-width:690px}.bpec-hire-facts{display:flex;gap:12px;flex-wrap:wrap;margin:32px 0 22px}.bpec-hire-facts>div{min-width:160px;padding:21px 20px;border:1px solid #ffffff68;background:#1018209e;backdrop-filter:blur(7px)}.bpec-hire-facts strong{display:block;font-size:clamp(28px,3vw,45px);font-weight:950;line-height:1}.bpec-hire-facts span{display:block;margin-top:11px;color:#c8d0d9;text-transform:uppercase;font-size:10px;letter-spacing:.11em;font-weight:800}.bpec-hire-included{text-transform:uppercase;letter-spacing:.11em;font-size:11px;font-weight:850;color:#fff;margin-bottom:25px}

/* Ten-result archive */
.bpec-results{background:#20252d}.bpec-result-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}.bpec-result-button{min-height:125px;padding:22px 18px;border-top:4px solid #ed414a;background:#12171c;display:flex;flex-direction:column;justify-content:space-between;gap:16px;transition:transform .2s,background .2s}.bpec-result-button span{font-weight:850;font-size:14px;line-height:1.4}.bpec-result-button strong{color:#ff656d;font-size:10px;letter-spacing:.13em}.bpec-result-button:not(.pending):hover{transform:translateY(-4px);background:#303b47}.bpec-result-button.pending{opacity:.62}

/* More prominent contact panel */
.contact{padding-block:clamp(90px,10vw,155px)}.contact-grid{min-height:320px}.contact h2{font-size:clamp(68px,8vw,132px);line-height:.84}.contact-grid>div:first-child p:last-child{max-width:580px;font-size:18px;line-height:1.7}.contact-links{display:grid;grid-template-columns:1fr 1fr;gap:12px;min-width:min(620px,48%)}.contact-links a{min-height:90px;display:flex;align-items:center;justify-content:center;text-align:center;font-size:15px;background:#151b2099;border:1px solid #ffffff88;overflow-wrap:anywhere;transition:background .2s}.contact-links a:hover{background:#151b20d9}

/* Partners at the bottom */
.bpec-partners{background:#edf0f2;color:#101820}.bpec-partners .section-head .copy{color:#56616e}.bpec-partner-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.bpec-partner{min-height:195px;padding:28px 17px;background:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:25px;box-shadow:0 12px 35px #11182011;transition:transform .25s,box-shadow .25s}.bpec-partner:hover{transform:translateY(-5px);box-shadow:0 17px 38px #1118202c}.bpec-partner>span{font-size:clamp(19px,2vw,31px);font-weight:950;line-height:1.1;text-transform:uppercase;color:#18202a}.bpec-partner img{max-width:90%;width:auto;height:auto;max-height:95px;object-fit:contain}.bpec-partner small{font-size:10px;letter-spacing:.12em;font-weight:900;color:#e4444e}
@media(max-width:1100px){.bpec-result-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.bpec-partner-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.contact-links{min-width:0}}
@media(max-width:720px){.bpec-extra--split .bpec-extra-photo{left:0;width:100%}.bpec-extra--split:before{background:linear-gradient(0deg,#151b22 0%,#151b22d9 43%,#151b2222 100%)}.bpec-extra--split .bpec-extra-content{padding-right:var(--gutter)}.bpec-extra-content{padding-block:75px}.bpec-hire{min-height:700px}.bpec-hire:before{background:linear-gradient(0deg,#101820f9 0%,#101820db 60%,#10182066 100%)}.bpec-hire-content{padding-block:85px}.bpec-hire-facts{display:grid;grid-template-columns:1fr 1fr}.bpec-hire-facts>div{min-width:0;padding:19px 14px}.bpec-hire-facts strong{font-size:31px}.bpec-result-grid{grid-template-columns:1fr 1fr}.bpec-result-button{min-height:112px}.contact-links{grid-template-columns:1fr;width:100%}.contact-links a{min-height:67px}.bpec-partner-grid{grid-template-columns:1fr 1fr}.bpec-partner{min-height:160px}}
@media(max-width:450px){.bpec-result-grid,.bpec-partner-grid{grid-template-columns:1fr}.bpec-hire-facts strong{font-size:27px}}

/* Four individually photographic championship cards */
.champ-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}
.champ-card{min-height:375px;isolation:isolate;background:#151b23;overflow:hidden}
.champ-card .champ-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:1;z-index:-2;transition:transform .65s ease}
.champ-card:hover .champ-photo{transform:scale(1.07)}
.champ-card:before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(0deg,#10161cf8 0%,#141a20da 42%,#151d2650 100%),linear-gradient(140deg,color-mix(in srgb,var(--accent) 26%,transparent),transparent 70%)}
.champ-card>*:not(.champ-photo){position:relative;z-index:2}
.champ-card .number{font-size:clamp(55px,6vw,95px)}
.champ-card h3{font-size:clamp(15px,1.5vw,22px);min-height:44px}
.champ-card .laurel{filter:drop-shadow(0 5px 16px #000b)}
@media(max-width:950px){.champ-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.champ-card{min-height:355px}.champ-card .number{font-size:86px}}
@media(max-width:600px){.champ-grid{grid-template-columns:1fr}.champ-card{min-height:305px}.champ-card .number{font-size:84px}}

/* The logo PNG has transparency; do not place it inside an opaque white badge. */
.site-header .brand{background:transparent!important;box-shadow:none!important;border:0!important;padding:0!important;border-radius:0!important}
.site-header .brand img{max-width:270px;height:auto;max-height:58px;object-fit:contain}
@media(max-width:720px){.site-header .brand img{max-width:190px;max-height:43px}}

/* Proper gold winner's laurel artwork */
.champ-card .laurel{display:flex;align-items:center;justify-content:center;height:125px;min-height:125px;margin:0 0 4px;filter:none}
.champ-card .laurel img{display:block;width:185px;max-width:100%;height:125px;object-fit:contain;filter:drop-shadow(0 5px 12px #000a)}
@media(max-width:950px){.champ-card .laurel{height:108px;min-height:108px}.champ-card .laurel img{height:108px;width:160px}}
@media(max-width:600px){.champ-card .laurel{height:95px;min-height:95px}.champ-card .laurel img{height:95px;width:145px}.slide-dots{gap:5px}.slide-dot{width:22px}.hero-bottom .scroll-hint{font-size:8px;letter-spacing:.08em}}

/* Classic racing winner's wreath — the editable kart number sits inside it. */
.champ-card .laurel{position:relative;display:grid;place-items:center;width:220px;max-width:100%;height:162px;min-height:162px;margin:0 auto 9px}
.champ-card .laurel img{width:220px;height:162px;max-width:100%;object-fit:contain;filter:drop-shadow(0 6px 13px #000b)}
.champ-card .laurel-number{position:absolute;top:49%;left:50%;transform:translate(-50%,-50%);font-family:Inter,Arial,sans-serif;font-weight:950;font-style:italic;letter-spacing:-.075em;font-size:clamp(36px,4vw,58px);line-height:1;color:#fff;text-shadow:0 3px 10px #000,0 0 18px #000c;white-space:nowrap}
.champ-card .laurel-number:only-child{font-size:45px}
@media(max-width:950px){.champ-card .laurel{width:210px;height:150px;min-height:150px}.champ-card .laurel img{width:210px;height:150px}.champ-card .laurel-number{font-size:53px}}
@media(max-width:600px){.champ-card .laurel{width:194px;height:140px;min-height:140px}.champ-card .laurel img{width:194px;height:140px}.champ-card .laurel-number{font-size:50px}}

/* Supplied BPEC winner artwork is square: display intact, no cropping. */
.champ-card .laurel{width:176px;height:176px;min-height:176px;margin-bottom:10px}
.champ-card .laurel img{width:176px;height:176px;object-fit:contain}
.champ-card .laurel-number{top:49%;font-size:clamp(37px,3.7vw,54px)}
@media(max-width:950px){.champ-card .laurel{width:170px;height:170px;min-height:170px}.champ-card .laurel img{width:170px;height:170px}}
@media(max-width:600px){.champ-card .laurel{width:158px;height:158px;min-height:158px}.champ-card .laurel img{width:158px;height:158px}}

/* Live timing and the revised seven-link navigation. */
.site-header .nav-live{color:#fff;background:#e63c43;padding:12px 15px;border-radius:2px}
.site-header .nav-live:hover{color:#fff;background:#ff5057}
.bpec-live-timing{background:linear-gradient(180deg,#171c24,#0c1017);border-top:1px solid #ffffff20}
.bpec-live-timing .section-head{align-items:center;margin-bottom:12px}
.bpec-live-intro{max-width:850px;margin-bottom:26px}
.bpec-live-frame-wrap{width:100%;height:570px;background:#f5f5f5;border:1px solid #ffffff26;overflow:hidden;box-shadow:0 20px 45px #0007}
.bpec-live-frame-wrap iframe{width:100%;height:100%;display:block;border:0}
@media(max-width:720px){.site-header .nav-live{text-align:center}.bpec-live-frame-wrap{height:520px}.bpec-live-actions{width:100%}.bpec-live-actions .btn{width:100%}}

/* Customizer-controlled photographic backgrounds for the two editorial sections. */
.bpec-classes-photo,.bpec-information-photo{position:relative;isolation:isolate;background-color:#151b22;background-image:linear-gradient(90deg,#10151df5 0%,#10151dda 52%,#10151d88 100%),var(--section-photo);background-size:cover;background-position:center}
.bpec-classes-photo .classes{position:relative;z-index:1}
.bpec-classes-photo .class-tile{background:#151c25d9;backdrop-filter:blur(5px);border:1px solid #ffffff27;border-top:4px solid var(--accent)}
.bpec-information-photo{min-height:360px;display:flex;flex-direction:column;justify-content:center}
.bpec-information-photo .copy{color:#eef1f4;text-shadow:0 2px 12px #000b}

/* The fourth partner is a non-clickable image panel. */
.bpec-partner-static{background:#030303!important;box-shadow:0 12px 35px #0002;cursor:default}
.bpec-partner-static:hover{transform:none;box-shadow:0 12px 35px #0002}
.bpec-partner-static img{width:100%;max-width:100%;max-height:145px;object-fit:contain}
.bpec-partner-static>span{color:#fff}

/* 2026 results now contain the actual circuit outlines where supplied. */
.bpec-result-button{min-height:215px;gap:10px;padding:17px 16px}
.bpec-result-button .bpec-result-track{height:85px;display:flex;align-items:center;justify-content:center;width:100%;padding:3px}
.bpec-result-button .bpec-result-track img{height:82px;width:100%;object-fit:contain;filter:drop-shadow(0 4px 8px #000a)}
.bpec-result-button .bpec-result-label{font-size:13px;line-height:1.4;font-weight:850}
.bpec-result-button .bpec-result-no-track{font-size:9px;font-weight:800;letter-spacing:.1em;text-align:center;color:#aab0ba}
@media(max-width:720px){.bpec-result-button{min-height:200px}.bpec-result-button .bpec-result-track{height:78px}.bpec-result-button .bpec-result-track img{height:75px}.bpec-classes-photo,.bpec-information-photo{background-image:linear-gradient(90deg,#10151df0,#10151db8),var(--section-photo)}}

/* Next Green Flag: live countdown driven by the same events as the calendar. */
.next-green-flag{--next-green-accent:#e63c43;display:grid;grid-template-columns:150px minmax(220px,1fr) auto;gap:clamp(16px,3vw,46px);align-items:center;margin-bottom:65px;padding-block:23px;background:linear-gradient(100deg,#0b1018 5%,#18202b 60%,#12171e);border-block:1px solid #ffffff26;border-left:5px solid var(--next-green-accent);box-shadow:0 20px 50px #0005}
.next-green-mark{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;min-height:90px}
.next-green-label{font-size:10px;color:#f7f8fa;font-weight:950;letter-spacing:.18em;text-align:center}
.next-green-mark img{width:145px;height:90px;object-fit:contain;filter:drop-shadow(0 6px 12px #000a)}
.next-green-mark img[hidden]{display:none}
.next-green-event>span{color:var(--next-green-accent);letter-spacing:.18em;text-transform:uppercase;font-weight:900;font-size:10px}
.next-green-event h3{font-style:italic;text-transform:uppercase;font-size:clamp(29px,3.2vw,50px);font-weight:950;letter-spacing:-.05em;line-height:1;margin:7px 0}
.next-green-event p{margin:0;color:#c4ccd5;font-size:14px}
.next-green-clock{display:flex;align-items:center;gap:10px}
.next-green-clock>div{min-width:77px;text-align:center;padding:10px 7px;border:1px solid #ffffff22;background:#06090d65}
.next-green-clock strong{display:block;font-size:clamp(24px,2.8vw,44px);line-height:1.2;font-weight:950;font-variant-numeric:tabular-nums}
.next-green-clock span{font-size:9px;color:#adb7c6;letter-spacing:.14em;font-weight:800}
@media(max-width:1100px){.next-green-flag{grid-template-columns:115px minmax(190px,1fr);gap:20px}.next-green-mark img{width:112px}.next-green-clock{grid-column:1/-1;justify-content:center}.next-green-clock>div{flex:1;max-width:170px}}
@media(max-width:650px){.next-green-flag{grid-template-columns:90px minmax(0,1fr);gap:12px;padding-block:22px;margin-bottom:40px}.next-green-label{font-size:8px}.next-green-mark img{width:88px;height:65px}.next-green-event h3{font-size:26px}.next-green-event p{font-size:12px}.next-green-clock{gap:5px}.next-green-clock>div{min-width:0;padding:8px 3px}.next-green-clock strong{font-size:28px}.next-green-clock span{font-size:8px}}

/* Driver / team matchmaking editorial banner */
.bpec-find-team{min-height:540px;background:#111820}
.bpec-find-team:before{background:linear-gradient(90deg,#101820f9 0%,#101820ee 39%,#10182039 100%)}
.bpec-find-team .feature-content{width:min(760px,70%);padding-block:110px}
.bpec-find-team .title{font-size:clamp(37px,4.8vw,75px)}
.bpec-find-team .copy{margin-bottom:24px;color:#e6eaee}
@media(max-width:720px){.bpec-find-team{min-height:600px}.bpec-find-team:before{background:linear-gradient(0deg,#101820fc 0%,#101820e7 48%,#10182035 100%)}.bpec-find-team .feature-content{width:100%;padding:170px var(--gutter) 55px}}

/* British and Spanish 24 Hour feature races, sourced from the calendar. */
.bpec-24-hours{background:linear-gradient(160deg,#242017,#101318 56%,#171b22);border-block:1px solid #d5af5440}
.bpec-24-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.bpec-24-card{position:relative;isolation:isolate;min-height:570px;display:flex;align-items:flex-end;background:#111a24;overflow:hidden;border-top:5px solid #d8b46b;box-shadow:0 18px 36px #0005}
.bpec-24-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2;transition:transform .55s ease}
.bpec-24-card:before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(0deg,#091016fa 0%,#0d141ae0 44%,#0b11175e 100%)}
.bpec-24-card:hover .bpec-24-photo{transform:scale(1.045)}
.bpec-24-content{width:100%;padding:clamp(22px,3vw,44px)}
.bpec-24-tag{color:#e6c47c;letter-spacing:.18em;font-size:10px;font-weight:950}
.bpec-24-content h3{margin:13px 0 25px;font-size:clamp(33px,4.3vw,67px);line-height:.95;letter-spacing:-.055em;font-style:italic;text-transform:uppercase}
.bpec-24-circuit{height:100px;max-width:85%;object-fit:contain;object-position:left center;margin:0 0 22px;filter:drop-shadow(0 4px 9px #000b)}
.bpec-24-location{font-size:22px;text-transform:uppercase;font-weight:950;margin:0 0 6px}
.bpec-24-date{font-size:15px;color:#e1e5ec;margin:0 0 26px}
.bpec-24-actions{display:flex;gap:10px;flex-wrap:wrap}
.bpec-24-actions .btn{min-width:117px}
@media(max-width:850px){.bpec-24-grid{grid-template-columns:1fr}.bpec-24-card{min-height:460px}.bpec-24-content h3{font-size:clamp(37px,8vw,66px)}}

/* Large transparent BPEC branding in the hero and next-green-flag strip. */
.hero-feature-logo{position:absolute;z-index:2;top:115px;right:var(--gutter);width:clamp(190px,23vw,340px);max-height:165px;object-fit:contain;filter:drop-shadow(0 8px 21px #000a);pointer-events:none}
.next-green-flag{grid-template-columns:200px minmax(220px,1fr) auto}
.next-green-mark{gap:9px}
.next-green-mark .next-green-logo{width:180px;height:76px;object-fit:contain;filter:drop-shadow(0 4px 12px #000a)}
.next-green-mark #next-green-track{width:140px;height:78px}
@media(max-width:1100px){.next-green-flag{grid-template-columns:155px minmax(190px,1fr)}.next-green-mark .next-green-logo{width:145px;height:65px}}
@media(max-width:720px){.hero-feature-logo{top:89px;right:var(--gutter);width:clamp(130px,34vw,210px);max-height:92px}.next-green-flag{grid-template-columns:104px minmax(0,1fr)}.next-green-mark .next-green-logo{width:100px;height:53px}.next-green-mark #next-green-track{width:100px;height:62px}.next-green-mark{gap:6px}}
@media(max-width:430px){.hero-feature-logo{width:125px;top:82px;max-height:75px}}

/* Keep the next green-flag countdown visible on the first screen. */
.hero{height:clamp(485px,65svh,675px);min-height:485px}
.hero h1{font-size:clamp(48px,6.2vw,94px);line-height:.92;margin:14px 0 19px;max-width:770px}
.hero-body{padding-top:55px}
.hero p:not(.eyebrow){font-size:clamp(13px,1.25vw,17px);line-height:1.5}
.hero-actions{margin-top:21px}
#calendar{padding-top:18px}
@media(max-width:1050px){.hero h1{max-width:70%}.hero-feature-logo{width:clamp(155px,21vw,260px)}}
@media(max-width:720px){
  .hero{height:clamp(480px,68svh,610px);min-height:480px}
  .hero h1{font-size:clamp(40px,9.6vw,64px);max-width:100%;margin:12px 0 15px}
  .hero-body{padding-top:62px}
  .hero p:not(.eyebrow){font-size:14px;line-height:1.45}
  .hero-actions{margin-top:17px;gap:8px}
  .hero-actions .btn{padding:11px 13px;min-height:40px;font-size:10px}
  #calendar{padding-top:12px}
}
@media(max-width:430px){.hero{height:clamp(465px,70svh,540px);min-height:465px}.hero h1{font-size:clamp(39px,10vw,47px)}.hero-body{padding-top:80px}}

/* Independent editable photo and editorial copy for each 24-hour card. */
.bpec-24-card{min-height:660px}
.bpec-24-card:before{background:linear-gradient(0deg,#091016fc 0%,#0d141aee 58%,#0b111773 100%)}
.bpec-24-content h3{margin-bottom:15px}
.bpec-24-description{font-size:clamp(14px,1.2vw,17px);line-height:1.65;color:#e1e7ed;max-width:620px;margin:0 0 20px;text-shadow:0 2px 9px #000b}
.bpec-24-description p{margin:0 0 12px}
.bpec-24-description p:last-child{margin-bottom:0}
@media(max-width:850px){.bpec-24-card{min-height:600px}}

/* One championship frame, with accessible class switching. */
.standings-switcher{display:flex;align-items:stretch;gap:10px;flex-wrap:wrap;margin-bottom:20px}
.standings-class-button{flex:1;min-width:140px;min-height:56px;cursor:pointer;border:2px solid transparent;background:var(--button-accent);color:#fff;padding:14px 20px;text-transform:uppercase;letter-spacing:.11em;font-size:13px;font-weight:900;transition:filter .2s,border-color .2s,transform .2s,box-shadow .2s}
.standings-class-button:hover{filter:brightness(1.13);transform:translateY(-2px)}
.standings-class-button.active{box-shadow:inset 0 0 0 2px #fff,0 0 0 2px #ffffff60;border-color:#fff;transform:translateY(-2px)}
.standings-class-button:nth-child(1){--button-accent:#e8474e}
.standings-class-button:nth-child(2){--button-accent:#398eea}
.standings-class-button:nth-child(3){--button-accent:#a2a8b0;color:#101216}
.standing-panel-single{width:100%;padding:clamp(15px,2.4vw,32px)}
.standing-panel-single .standing-frame{height:660px}
@media(max-width:720px){.standings-switcher{gap:5px}.standings-class-button{min-width:0;padding:12px 7px;font-size:10px;min-height:49px}.standing-panel-single .standing-frame{height:530px}.standing-panel-single .standing-heading{flex-wrap:wrap}}

/* Compact Next Green Flag strip: branding, circuit map, race, countdown in one row. */
.next-green-flag{grid-template-columns:150px 100px minmax(170px,1fr) auto;gap:clamp(12px,1.8vw,28px);padding-block:12px;margin-bottom:48px}
.next-green-mark{min-height:0;gap:0}
.next-green-mark .next-green-logo{width:145px;height:66px}
.next-green-circuit{display:flex;justify-content:center;align-items:center;min-height:68px}
.next-green-circuit #next-green-track{display:block;width:96px;height:75px;object-fit:contain;filter:drop-shadow(0 4px 8px #0009)}
.next-green-circuit #next-green-track[hidden]{display:none}
.next-green-event h3{font-size:clamp(22px,2.35vw,34px);margin:4px 0}
.next-green-clock>div{min-width:63px;padding:8px 5px}
.next-green-clock strong{font-size:clamp(22px,2.3vw,34px)}
@media(max-width:1100px){.next-green-flag{grid-template-columns:120px 90px minmax(0,1fr);gap:12px}.next-green-mark .next-green-logo{width:116px;height:58px}.next-green-circuit #next-green-track{width:86px;height:68px}.next-green-clock{grid-column:1/-1}.next-green-clock>div{max-width:none}}
@media(max-width:650px){.next-green-flag{grid-template-columns:76px 72px minmax(0,1fr);padding-block:12px;gap:7px}.next-green-mark .next-green-logo{width:74px;height:48px}.next-green-circuit{min-height:48px}.next-green-circuit #next-green-track{width:68px;height:51px}.next-green-event h3{font-size:clamp(17px,4.6vw,24px)}.next-green-event>span{font-size:8px}.next-green-event p{font-size:10px}.next-green-clock{gap:5px}.next-green-clock strong{font-size:25px}}

/* Alternate the hire kart promotion: photography left, copy right. */
.bpec-hire:before{background:linear-gradient(270deg,#101820f5 0%,#101820e3 46%,#10182030 100%),linear-gradient(0deg,#111920b9,transparent 45%)}
.bpec-hire-content{text-align:right}
.bpec-hire-content .title,.bpec-hire-intro{margin-left:auto}
.bpec-hire-facts{justify-content:flex-end}
@media(max-width:720px){.bpec-hire:before{background:linear-gradient(0deg,#101820f9 0%,#101820db 60%,#10182066 100%)}.bpec-hire-content{text-align:left}.bpec-hire-content .title,.bpec-hire-intro{margin-left:0}.bpec-hire-facts{justify-content:initial}}

/* National flags dissolve into the top of the British and Spanish 24-hour photos. */
.bpec-24-card:before{background:linear-gradient(0deg,#091016c9 0%,#0d141a99 52%,#0b111720 100%)}
.bpec-24-flag{position:absolute;inset:0 0 auto;height:48%;z-index:-1;pointer-events:none;background-position:center top;background-size:cover;opacity:.43;-webkit-mask-image:linear-gradient(to bottom,#000 0%,#0009 33%,transparent 100%);mask-image:linear-gradient(to bottom,#000 0%,#0009 33%,transparent 100%)}
.bpec-24-card--british .bpec-24-flag{background-image:url('../images/flag-uk.svg')}
.bpec-24-card--spanish .bpec-24-flag{background-image:url('../images/flag-spain.svg')}
.bpec-24-content{position:relative;z-index:1;text-shadow:0 2px 12px #000a}

/* 2027 registration feature, followed by editorial news cards. */
.bpec-register{min-height:500px}.bpec-register .feature-content{max-width:820px}
.bpec-news-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.bpec-news-card{position:relative;isolation:isolate;min-height:485px;background:#101720;overflow:hidden;display:flex;align-items:flex-end;border-top:4px solid #dc343e}
.bpec-news-card>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2;transition:transform .45s}
.bpec-news-card:before{content:"";position:absolute;inset:0;background:linear-gradient(0deg,#080e15f5 0%,#0b111ac9 55%,#0002 100%);z-index:-1}
.bpec-news-card:hover>img{transform:scale(1.05)}
.bpec-news-content{padding:clamp(18px,2.2vw,34px);width:100%}
.bpec-news-content h3{font-size:clamp(25px,2.6vw,42px);text-transform:uppercase;letter-spacing:-.035em;line-height:1.08;margin:13px 0}
.bpec-news-text{color:#e1e5eb;font-size:14px;line-height:1.65;max-height:none;overflow:visible;margin-bottom:22px;text-shadow:0 2px 9px #0009}
.bpec-news-text p{margin:0 0 10px}.bpec-news-text p:last-child{margin-bottom:0}
/* Gallery items use WP Featured Images; full-resolution sources open in a lightbox. */
.bpec-gallery-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.bpec-gallery-item{position:relative;display:block;aspect-ratio:4/3;overflow:hidden;background:#202632;cursor:zoom-in}
.bpec-gallery-item img{width:100%;height:100%;object-fit:cover;transition:transform .35s ease}
.bpec-gallery-item:hover img,.bpec-gallery-item:focus-visible img{transform:scale(1.07)}
.bpec-gallery-item span{position:absolute;bottom:0;left:0;right:0;padding:15px;color:#fff;font-size:11px;font-weight:900;letter-spacing:.12em;background:linear-gradient(transparent,#000b)}
.bpec-lightbox[hidden]{display:none}.bpec-lightbox{position:fixed;inset:0;z-index:99999;background:#020307f2;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:55px 25px 24px;gap:12px}
.bpec-lightbox img{max-width:94vw;max-height:78vh;object-fit:contain;box-shadow:0 16px 55px #0009}
.bpec-lightbox p{font-size:14px;color:#e1e6ec;margin:0}.bpec-lightbox-close{position:absolute;right:22px;top:15px;background:#222b38;border:1px solid #fff7;color:#fff;font-size:34px;line-height:1;width:48px;height:48px;cursor:pointer}
body.bpec-lightbox-open{overflow:hidden}
/* WordPress-handled email enquiry form. */
.bpec-contact-form{background:linear-gradient(140deg,#161c25,#0b1017);border-top:3px solid #dc343e}
.bpec-form{display:flex;flex-direction:column;gap:19px;max-width:880px}
.bpec-form-fields{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.bpec-form label{display:flex;flex-direction:column;gap:9px;text-transform:uppercase;letter-spacing:.1em;font-size:11px;font-weight:900;color:#cbd3df}
.bpec-form input,.bpec-form textarea{width:100%;padding:17px;background:#090e15;color:#fff;border:1px solid #56606e;font:inherit;font-size:16px;letter-spacing:normal;text-transform:none;resize:vertical}
.bpec-form input:focus,.bpec-form textarea:focus{outline:2px solid #e8474e;outline-offset:1px}
.bpec-form button{align-self:flex-start;cursor:pointer}.bpec-form-trap{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}
.bpec-form-status{padding:15px 20px;border-left:4px solid #e8474e;background:#2e171b;margin:0 0 25px}.bpec-form-status.success{background:#183326;border-left-color:#4dd891}
.bpec-contact-repeat{margin-block:30px}
@media(max-width:900px){.bpec-news-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.bpec-gallery-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:650px){.bpec-news-grid,.bpec-form-fields{grid-template-columns:1fr}.bpec-news-card{min-height:390px}.bpec-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.bpec-register{min-height:440px}}

/* Calendar venue flags: translucent at the top, fading into race photography. */
.calendar-national-flag{position:absolute;top:0;left:0;right:0;height:32%;z-index:2;pointer-events:none;background-position:center top;background-size:cover;opacity:.34;-webkit-mask-image:linear-gradient(to bottom,#000 0%,#0008 30%,transparent 100%);mask-image:linear-gradient(to bottom,#000 0%,#0008 30%,transparent 100%)}
.event-card--flag-uk .calendar-national-flag{background-image:url('../images/flag-uk.svg')}
.event-card--flag-spain .calendar-national-flag{background-image:url('../images/flag-spain.svg')}
.event-card--flag-scotland .calendar-national-flag{background-image:url('../images/flag-scotland.svg')}
.event-card--flag-wales .calendar-national-flag{background-image:url('https://upload.wikimedia.org/wikipedia/commons/d/dc/Flag_of_Wales.svg')}
.event-card--flag-england .calendar-national-flag{background-image:url('../images/flag-england.svg')}

/* Three clear, colour-coded main navigation actions. */
.nav .nav-dates,.nav .nav-hire,.nav .nav-entry,.nav .nav-live{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:10px clamp(9px,1vw,15px);border:1px solid #ffffff30;border-radius:3px;color:#fff;font-weight:950;letter-spacing:.055em;box-shadow:0 3px 12px #0005;transition:background .2s,transform .2s,filter .2s}
.nav .nav-dates{background:#abb2bc;border-color:#dce1e7;color:#121720}
.nav .nav-hire{background:#246ac8;border-color:#347ee1}
.nav .nav-entry{background:#c2983f;border-color:#e3b85e;color:#101216}
.nav .nav-live{background:#c52935;border-color:#e54a55}
.nav .nav-dates:hover,.nav .nav-hire:hover,.nav .nav-entry:hover,.nav .nav-live:hover,.nav .nav-dates.active,.nav .nav-hire.active{filter:brightness(1.15);transform:translateY(-2px)}
.nav .nav-hire:hover,.nav .nav-live:hover,.nav .nav-hire.active{color:#fff}
.nav .nav-dates:hover,.nav .nav-dates.active,.nav .nav-entry:hover{color:#101216}
@media(max-width:720px){.nav .nav-dates,.nav .nav-hire,.nav .nav-entry,.nav .nav-live{display:flex;width:100%;min-height:44px;justify-content:center;padding:13px 15px}}
@media(min-width:721px) and (max-width:1240px){.nav{gap:8px}.nav a{font-size:9px}.nav .nav-dates,.nav .nav-hire,.nav .nav-entry,.nav .nav-live{padding:9px 8px}.brand{max-width:205px}}

/* Compact two-row gallery: horizontal panels instead of an ever-growing page. */
.bpec-gallery{padding-block:clamp(45px,5vw,75px)}
.bpec-gallery-controls{display:flex;justify-content:flex-end;align-items:center;gap:15px;margin:-12px 0 17px}
.bpec-gallery-controls button{width:44px;height:44px;border:1px solid #ffffff6b;color:#fff;background:#222b36;font-size:28px;cursor:pointer;transition:background .2s}
.bpec-gallery-controls button:hover:not(:disabled){background:#e63c43}
.bpec-gallery-controls button:disabled{opacity:.3;cursor:default}
.bpec-gallery-controls span{color:#c3ccd8;font-size:12px;font-weight:900;letter-spacing:.13em;min-width:48px;text-align:center;font-variant-numeric:tabular-nums}
.bpec-gallery-grid{display:grid;grid-auto-flow:column;grid-template-rows:repeat(2,minmax(0,auto));grid-template-columns:none;grid-auto-columns:calc((100% - 36px)/4);gap:12px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;overscroll-behavior-inline:contain;scrollbar-width:thin;scrollbar-color:#e63c43 #252b34;padding-bottom:7px}
.bpec-gallery-item{scroll-snap-align:start;min-width:0}
@media(max-width:900px){.bpec-gallery-grid{grid-template-columns:none;grid-auto-columns:calc((100% - 24px)/3)}}
@media(max-width:650px){.bpec-gallery-grid{grid-template-columns:none;grid-auto-columns:calc((100% - 12px)/2)}.bpec-gallery-controls{margin-top:0}}
/* Dedicated Teams page */
.bpec-teams-page{background:#14171c;min-height:100vh}.bpec-teams-hero{min-height:440px;padding-top:150px;padding-bottom:80px;display:flex;align-items:center;background:linear-gradient(90deg,#0a0d12f2,#0a0d1260),url('../images/bpec26_clay-SS3_9059.jpg') center 42%/cover}.bpec-teams-hero-inner{max-width:830px}.bpec-teams-hero h1{font-size:clamp(64px,10vw,150px);line-height:.85;letter-spacing:-.07em;font-style:italic;font-weight:950;margin:22px 0}.bpec-teams-hero h1 span{color:#ef424b}.bpec-teams-hero p{font-size:clamp(15px,1.4vw,20px);line-height:1.65;max-width:630px;color:#f0f1f4}.bpec-teams-section{padding-top:70px}.bpec-teams-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:9px;margin:12px 0 34px}.bpec-team-filter{border:1px solid #505760;background:#262b32;color:white;padding:13px 18px;cursor:pointer;font-size:11px;font-weight:900;letter-spacing:.075em;text-transform:uppercase}.bpec-team-filter.is-active{background:white;border-color:white;color:#12151a}.bpec-team-filter.class-super{background:#c6313d;border-color:#c6313d}.bpec-team-filter.class-pro{background:#266fc7;border-color:#266fc7}.bpec-team-filter.class-club{background:#68727d;border-color:#68727d}.bpec-team-filter.class-junior{background:#bca35b;border-color:#bca35b;color:#151515}.bpec-team-filter.class-super.is-active,.bpec-team-filter.class-pro.is-active,.bpec-team-filter.class-club.is-active{box-shadow:0 0 0 2px #fff7 inset}.bpec-team-filter.class-junior.is-active{box-shadow:0 0 0 2px #151515 inset}#bpec-team-count{margin-left:auto;color:#bac2cc;font-size:12px;font-weight:800}.bpec-teams-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.bpec-team-card{background:#222832;border:1px solid #414853;border-top:5px solid var(--team-accent,#337de2);overflow:hidden;min-width:0}.bpec-team-card[hidden]{display:none}.bpec-team-card.class-super{--team-accent:#e3404c}.bpec-team-card.class-pro{--team-accent:#348ae9}.bpec-team-card.class-club{--team-accent:#a9b0b9}.bpec-team-card.class-junior{--team-accent:#d9bb65}.bpec-team-photo{height:290px;position:relative;display:flex;flex-direction:column;justify-content:flex-end;background-size:cover;background-position:center}.bpec-team-photo:before{content:"";position:absolute;inset:0;background:linear-gradient(0deg,#080a0ff5,#080a0f11 78%)}.bpec-team-class,.bpec-team-number,.bpec-team-name{position:relative;z-index:1}.bpec-team-class{position:absolute;top:19px;left:19px;background:var(--team-accent);color:#10131a;padding:9px 12px;font-size:10px;font-weight:950;text-transform:uppercase;letter-spacing:.1em}.bpec-team-number{position:absolute;top:14px;right:20px;font-size:clamp(45px,5vw,75px);font-weight:950;font-style:italic;letter-spacing:-.07em;text-shadow:0 3px 12px #0008}.bpec-team-name{padding:25px 20px 20px}.bpec-team-name h3{font-size:clamp(22px,2.1vw,33px);line-height:1.05;font-style:italic;text-transform:uppercase;margin:0 0 10px}.bpec-team-name p{margin:0;color:#e6e8eb;font-size:12px;line-height:1.6}.bpec-team-body{padding:19px 20px 24px}.bpec-team-description{font-size:13px;line-height:1.6;color:#d1d6dd}.bpec-team-description p:first-child{margin-top:0}.bpec-team-stats{display:grid;grid-template-columns:1fr 1fr;gap:7px}.bpec-team-stat{background:#151a21;min-height:92px;padding:15px 13px;border-left:3px solid var(--team-accent)}.bpec-team-stat strong{display:block;font-size:29px;line-height:1;font-style:italic;font-weight:950}.bpec-team-stat span{display:block;color:#bdc5ce;font-size:9px;font-weight:850;letter-spacing:.06em;text-transform:uppercase;margin-top:11px}.bpec-team-rounds-heading{display:flex;justify-content:space-between;gap:7px;border-bottom:1px solid #515966;padding:25px 0 11px;font-size:12px;font-weight:950;letter-spacing:.08em}.bpec-team-rounds-heading span{color:var(--team-accent)}.bpec-team-round-list{display:grid;gap:1px;margin-top:8px}.bpec-team-round{display:grid;grid-template-columns:1.1fr 1fr 1fr;align-items:center;gap:8px;padding:10px 2px;border-bottom:1px solid #ffffff18;font-size:11px;color:#c9cdd4}.bpec-team-round strong{color:#fff;font-weight:900}.bpec-team-round b{color:#fff}.bpec-team-no-results{color:#aab1bc;font-size:12px}#bpec-teams-empty{padding:40px;background:#252b33;color:#fff}@media(max-width:1150px){.bpec-teams-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:700px){.bpec-teams-grid{grid-template-columns:1fr}.bpec-teams-hero{min-height:390px;padding-top:130px}.bpec-teams-hero h1{font-size:clamp(55px,12vw,85px)}.bpec-team-photo{height:290px}.bpec-teams-toolbar{gap:6px}.bpec-team-filter{padding:10px 11px}#bpec-team-count{width:100%;margin:9px 0 0}}
.bpec-team-slides{position:absolute;inset:0;overflow:hidden}.bpec-team-slide{position:absolute;inset:0;background-size:cover;background-position:center;opacity:0;transition:opacity 1.2s ease}.bpec-team-slide.is-active{opacity:1}.bpec-team-photo:before{z-index:1;pointer-events:none}.bpec-team-toggle{position:absolute;inset:0;z-index:4;cursor:pointer;border:0;background:transparent;color:#fff}.bpec-team-toggle:after{content:'VIEW TEAM STATS +';position:absolute;right:15px;bottom:10px;background:#0a0d11d9;border:1px solid #ffffff55;padding:8px 10px;font-size:10px;font-weight:900;letter-spacing:.08em}.bpec-team-card.is-expanded .bpec-team-toggle:after{content:'HIDE TEAM STATS −'}.bpec-team-toggle:focus-visible{outline:3px solid #fff;outline-offset:-5px}.bpec-team-name{padding-bottom:47px}.bpec-team-body[hidden]{display:none}.bpec-team-photo{background-color:#29313b}@media(prefers-reduced-motion:reduce){.bpec-team-slide{transition:none}}

/* Teams v2.1: season statistics, dual-result chart */
.bpec-team-season-switch{display:flex;gap:8px;margin:17px 0 14px}.bpec-season-option{flex:1;border:1px solid #69707a;background:#111922;color:#e7eaf0;padding:10px;font-weight:850;cursor:pointer}.bpec-season-option.is-active{background:var(--team-accent);border-color:var(--team-accent);color:#10131a}.bpec-season-panel[hidden]{display:none}.bpec-team-trend{background:#151b24;margin-top:12px;padding:13px 9px 9px;border:1px solid #ffffff19}.bpec-team-chart-legend{display:flex;gap:16px;font-size:11px;font-weight:800}.bpec-team-chart-legend span:before{content:'';display:inline-block;width:9px;height:9px;border-radius:50%;margin-right:7px;background:#5ea4ff}.bpec-team-chart-legend .is-class:before{background:#d7b56a}.bpec-team-chart-canvas svg{width:100%;height:auto;display:block;overflow:visible}.bpec-team-chart-note{font-size:10px;color:#aab6c4;line-height:1.5;margin:0 0 5px}.bpec-team-chart-canvas .bpec-team-no-results{padding:20px 0}.bpec-team-rounds-heading{margin-top:5px}

/* Teams profile pop-out: single dialog outside the card grid. */
.bpec-team-dialog{position:fixed;inset:0;max-width:min(940px,calc(100vw - 32px));width:940px;max-height:min(92dvh,1000px);height:auto;margin:auto;padding:0;border:1px solid #69707d;background:#1c222b;color:#f7f8fa;box-shadow:0 28px 90px #000d;overflow:auto;overscroll-behavior:contain;border-top:5px solid var(--team-accent,#348ae9)}
.bpec-team-dialog::backdrop{background:rgba(3,6,10,.84);backdrop-filter:blur(8px)}
.bpec-team-dialog.class-super{--team-accent:#e3404c}.bpec-team-dialog.class-pro{--team-accent:#348ae9}.bpec-team-dialog.class-club{--team-accent:#a9b0b9}.bpec-team-dialog.class-junior{--team-accent:#d9bb65}
.bpec-team-dialog-shell{padding:0 0 28px}.bpec-team-dialog-topbar{display:flex;align-items:center;justify-content:space-between;gap:10px;position:sticky;top:0;z-index:15;background:#121720f5;border-bottom:1px solid #ffffff30;padding:11px 23px;backdrop-filter:blur(15px)}
.bpec-team-dialog-kicker{color:#c4cad3;letter-spacing:.14em;font-size:10px;font-weight:900}.bpec-team-dialog-close{border:1px solid #ffffff6b;background:#252c36;color:#fff;padding:8px 12px;font-size:11px;font-weight:900;cursor:pointer;letter-spacing:.09em}.bpec-team-dialog-close span{font-size:22px;vertical-align:middle;margin-left:8px}.bpec-team-dialog-close:hover{background:#c63742}
.bpec-team-dialog-title{font-size:clamp(22px,3.3vw,42px);font-style:italic;text-transform:uppercase;letter-spacing:-.04em;margin:22px 24px 15px}
.bpec-team-dialog-photo{margin:0 24px}.bpec-team-dialog-photo .bpec-team-photo{height:clamp(230px,36vw,370px)}.bpec-team-dialog-photo .bpec-team-name{padding-bottom:23px}.bpec-team-dialog-content{padding:0 24px}.bpec-team-dialog-content .bpec-team-body{display:block;padding:24px 0}.bpec-team-dialog-content .bpec-team-stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.bpec-team-dialog-content .bpec-team-stat{min-height:108px}.bpec-team-dialog-content .bpec-team-chart-canvas svg{max-height:310px}
@media(max-width:650px){.bpec-team-dialog{max-width:calc(100vw - 12px);max-height:96dvh}.bpec-team-dialog-title{margin:16px 15px 12px}.bpec-team-dialog-topbar{padding:9px 13px}.bpec-team-dialog-photo{margin:0 12px}.bpec-team-dialog-content{padding:0 12px}.bpec-team-dialog-content .bpec-team-body{padding:17px 0}.bpec-team-dialog-content .bpec-team-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.bpec-team-dialog-photo .bpec-team-photo{height:260px}.bpec-team-dialog-kicker{font-size:9px}}

/* v2.1.4: Keep the team grid photo-only. Statistics live in inert <template>s. */
.bpec-team-card{align-self:start}
.bpec-team-card > .bpec-team-template{display:none!important}
.bpec-team-dialog-content .bpec-team-body{display:block!important}
.bpec-team-dialog-content .bpec-season-panel[hidden]{display:none!important}

/* 2.2.9 — Separate editable Teams page hero photo. */
.bpec-teams-page .bpec-teams-hero{background-image:linear-gradient(90deg,#0a0d12f2,#0a0d1260),var(--bpec-teams-hero-photo)!important}
/* Support crew: concise names and roles directly beneath the photo/driver block. */
.bpec-team-crew{padding:14px 18px 16px;background:#171e28;border-top:1px solid #ffffff24}
.bpec-team-crew-title{font-size:9px;font-weight:950;letter-spacing:.12em;color:var(--team-accent,#dfb75f);margin-bottom:9px}
.bpec-team-crew-list{display:flex;flex-wrap:wrap;gap:6px 14px}
.bpec-team-crew-person{display:flex;gap:5px;align-items:baseline;flex-wrap:wrap;font-size:11px;line-height:1.5}
.bpec-team-crew-person strong{color:#fff;font-weight:850}
.bpec-team-crew-person span{color:#adb9c6;font-size:10px}
.bpec-team-modal-crew{margin:14px 0 24px}
.bpec-team-modal-crew-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px}
.bpec-team-modal-crew-person{background:#141b24;border-left:3px solid var(--team-accent,#dfb75f);padding:12px 15px;display:flex;flex-direction:column;gap:5px}
.bpec-team-modal-crew-person strong{font-size:15px;color:#fff}
.bpec-team-modal-crew-person span{font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.05em;color:#b6c4d2}
@media(max-width:560px){.bpec-team-modal-crew-list{grid-template-columns:1fr}}

/* v2.2.10 — drivers in bold; support crew alongside in class colour, role in brackets. */
.bpec-team-name .bpec-team-roster{display:block;color:#fff;font-size:12px;line-height:1.65;text-shadow:0 2px 9px #000c}
.bpec-team-roster .bpec-roster-driver{font-weight:900;color:#fff}
.bpec-team-roster .bpec-roster-member{color:var(--team-accent,#348ae9);font-weight:750}
.bpec-team-roster .bpec-roster-role{color:inherit;font-weight:650}
.bpec-team-roster .bpec-roster-separator{color:#e0e3e8;font-weight:500;white-space:pre}
.bpec-team-photo:has(.bpec-team-roster){min-height:290px;height:auto}
.bpec-team-photo:has(.bpec-team-roster) .bpec-team-slides{position:absolute;inset:0}
.bpec-team-name{overflow-wrap:anywhere}

/* v2.2.25 — one-row news carousel, with responsive card widths. */
.bpec-news-grid{display:flex;flex-wrap:nowrap;align-items:stretch;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scroll-behavior:smooth;gap:18px;padding-bottom:14px;scrollbar-width:thin}
.bpec-news-grid>.bpec-news-card{flex:0 0 calc((100% - 36px)/3);min-width:0;scroll-snap-align:start}
.bpec-news-controls{display:flex;justify-content:flex-end;gap:8px;margin:-12px 0 16px}
.bpec-news-arrow{display:grid;place-items:center;width:43px;height:43px;border:1px solid #ffffff55;background:#121b24;color:white;font-size:24px;cursor:pointer}
.bpec-news-arrow:hover,.bpec-news-arrow:focus-visible{background:#c72e39;border-color:#c72e39}
@media(max-width:900px){.bpec-news-grid>.bpec-news-card{flex-basis:calc((100% - 18px)/2)}}
@media(max-width:650px){.bpec-news-grid>.bpec-news-card{flex-basis:88%}}

/* v2.2.26 — compact homepage team and record carousels. */
.bpec-meet-teams{min-height:300px!important}
.bpec-meet-teams .feature-content{padding-top:35px;padding-bottom:35px}
.bpec-home-teams-content{background:#11161d;padding:16px clamp(14px,4vw,72px) 35px;overflow:hidden}
.bpec-home-strip-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:10px 0 12px;color:#f1f3f7;font-size:12px;font-weight:900;letter-spacing:.13em}
.bpec-home-strip-heading>div{display:flex;gap:6px}
.bpec-home-strip-heading button{width:36px;height:32px;border:1px solid #ffffff55;background:#252d38;color:#fff;cursor:pointer;font-size:19px}
.bpec-home-strip-heading button:hover,.bpec-home-strip-heading button:focus-visible{background:#c73241}
.bpec-home-record-track,.bpec-home-team-track{display:flex;overflow-x:auto;overflow-y:hidden;gap:12px;scroll-snap-type:x mandatory;scroll-behavior:smooth;scrollbar-width:thin;padding:0 0 8px;overscroll-behavior-x:contain}
.bpec-home-record-track .bpec-record-card{flex:0 0 calc((100% - 24px)/3)!important;width:calc((100% - 24px)/3)!important;min-width:0!important;height:145px!important;min-height:145px!important;scroll-snap-align:start}
.bpec-home-record-track .bpec-record-body{padding:12px 17px!important}
.bpec-home-record-track .bpec-record-body strong{font-size:clamp(24px,2.6vw,38px)}
.bpec-home-team-track .bpec-team-card{flex:0 0 calc((100% - 24px)/3);width:calc((100% - 24px)/3);min-width:0;scroll-snap-align:start}
.bpec-home-team-track .bpec-team-photo{height:240px}
.bpec-home-team-track .bpec-team-name{padding-bottom:42px}
.bpec-home-team-track .bpec-team-statement{padding:8px 14px;font-size:12px}
.bpec-home-teams-content .bpec-team-dialog{z-index:10000}
@media(max-width:900px){.bpec-home-team-track .bpec-team-card,.bpec-home-record-track .bpec-record-card{flex-basis:calc((100% - 12px)/2)!important;width:calc((100% - 12px)/2)!important}}
@media(max-width:600px){.bpec-meet-teams{min-height:320px!important}.bpec-home-team-track .bpec-team-card,.bpec-home-record-track .bpec-record-card{flex-basis:88%!important;width:88%!important}.bpec-home-team-track .bpec-team-photo{height:250px}}
@media(prefers-reduced-motion:reduce){.bpec-home-record-track,.bpec-home-team-track{scroll-behavior:auto}}

/* v2.2.29 — editable Why Race BPEC? photographic carousel after registration. */
.bpec-why{position:relative;background:#090e15;color:#fff;padding:34px 0 18px;overflow:hidden}
.bpec-why-head{padding:0 clamp(20px,5vw,85px) 22px}
.bpec-why-head .eyebrow{font-size:11px;color:#eb4d5a;font-weight:900;letter-spacing:.17em;margin:0 0 9px}
.bpec-why-head h2{font-size:clamp(24px,3.7vw,54px);line-height:1.08;letter-spacing:-.045em;font-weight:950;font-style:italic;margin:0;text-transform:uppercase}
.bpec-why-head h2 span{color:#e74751}
.bpec-why-track{display:flex;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;scroll-snap-type:x mandatory;scroll-behavior:smooth;overscroll-behavior-x:contain}
.bpec-why-track::-webkit-scrollbar{display:none}
.bpec-why-slide{position:relative;isolation:isolate;flex:0 0 100%;height:clamp(340px,32vw,450px);scroll-snap-align:start;overflow:hidden;background:#131b25 var(--bpec-why-photo) center 45%/cover no-repeat;display:flex;align-items:center}
.bpec-why-shade{position:absolute;z-index:0;inset:0;pointer-events:none;background:linear-gradient(90deg,#090d15f7 0%,#090d15e0 37%,#090d1599 61%,#090d1530 100%)}
.bpec-why-copy{position:relative;z-index:1;padding:32px clamp(22px,7vw,125px);max-width:980px}
.bpec-why-copy .eyebrow{font-size:11px;letter-spacing:.19em;color:#f1b5b8;font-weight:900;margin:0 0 18px}
.bpec-why-copy h3{font-size:clamp(32px,5.6vw,76px);line-height:1;letter-spacing:-.05em;text-transform:uppercase;font-style:italic;margin:0 0 18px;text-shadow:0 3px 18px #0009}
.bpec-why-copy>p:last-child{font-size:clamp(15px,1.55vw,20px);line-height:1.55;max-width:720px;color:#f3f4f8;margin:0;text-shadow:0 2px 10px #000b}
.bpec-why-navigation{display:flex;align-items:center;justify-content:space-between;padding:12px clamp(22px,5vw,85px) 0;color:#d8dce3;font-weight:850;letter-spacing:.1em}
.bpec-why-navigation>div{display:flex;gap:8px}
.bpec-why-navigation button{width:42px;height:38px;border:1px solid #ffffff66;background:#222934;color:#fff;font-size:24px;cursor:pointer}
.bpec-why-navigation button:hover,.bpec-why-navigation button:focus-visible{background:#c73340;border-color:#c73340}
@media(max-width:700px){.bpec-why{padding-top:27px}.bpec-why-head{padding-bottom:18px}.bpec-why-slide{height:440px;background-position:60% center}.bpec-why-shade{background:linear-gradient(0deg,#090d15f8 0%,#090d15e6 44%,#090d1580 78%,#090d1540 100%)}.bpec-why-copy{padding:26px 24px;align-self:flex-end}.bpec-why-copy h3{font-size:clamp(34px,8vw,54px)}.bpec-why-copy>p:last-child{font-size:15px;line-height:1.5}.bpec-why-copy .eyebrow{margin-bottom:10px}}
@media(prefers-reduced-motion:reduce){.bpec-why-track{scroll-behavior:auto}}

/* v2.2.34: Why BPEC — two equal slides across the viewport on desktop. */
@media (min-width: 701px) {
  .bpec-why-slide { flex: 0 0 50%; min-width: 0; min-height: 420px; height: auto; align-items: center; }
  .bpec-why-copy { padding: 32px clamp(24px,3.1vw,58px); max-width: 100%; }
  .bpec-why-copy h3 { font-size: clamp(27px,3vw,48px); line-height: 1.05; margin-bottom: 13px; }
  .bpec-why-copy>p:last-child { font-size: clamp(14px,1.14vw,17px); line-height: 1.5; }
  .bpec-why-copy .eyebrow { margin-bottom: 12px; }
  .bpec-why-shade { background:linear-gradient(90deg,#090d15ef 0%,#090d15d8 49%,#090d1566 100%); }
}
@media (max-width: 700px) { .bpec-why-slide { flex: 0 0 100%; } }
