/* RMX — Design v2 "Race-day" (council engagement 2, 30 Oct 2026). Loaded last, only when Design v2 is on.
   Thesis: a well-made race-day programme. Chalk + tarmac, signal-orange start lines, bib-number headlines,
   split-time data in mono, square-cut buttons, pinned-bib cards with a perforated tear line.
   Event cards / boards / snapshot rail / event emails keep their own locked styling. */

/* 1. Tokens ------------------------------------------------------------------------------------------- */
body.rmv2{
--rmf-d:"RM Display",Impact,"Arial Narrow",sans-serif;
--rmf-u:"RM Sans",system-ui,-apple-system,"Segoe UI",sans-serif;
--rmf-b:"RM Sans",system-ui,-apple-system,"Segoe UI",sans-serif;
--rmf-w:"RM Wide","RM Sans",system-ui,sans-serif;
--rmf-m:"RM Mono",ui-monospace,"SFMono-Regular",Menlo,Consolas,monospace;
--rmf-ds:.9;
--rmr-cap:4px; --rmr-pill:3px;
--rm-font-display:var(--rmf-d); --rm-font-ui:var(--rmf-u); --rm-font-body:var(--rmf-b);
--v2-ink:#0b0c0f; --v2-ink-2:#15171c; --v2-chalk:#f2efe8; --v2-chalk-2:#e8e3d9; --v2-or:#ff3600; --v2-or-btn:#d92e00; --v2-or-hot:#b82700;
--v2-mute:#5b616b; --v2-mute-ink:#aeb2ba;
--v2-ease:cubic-bezier(.23,1,.32,1);
font-family:var(--rmf-b);
font-feature-settings:"kern" 1;
}
body.rmv2 .rmx{--display:var(--rmf-d);--head:var(--rmf-u);--body:var(--rmf-b);--r:4px}
body.rmv2 :is(input,select,textarea,button):not(:is(#rmev,.rm-evc) *){font-family:var(--rmf-b)}

/* 2. Shared type roles --------------------------------------------------------------------------------- */
/* Kickers / eyebrows: wide caps with a short orange start line */
body.rmv2 :is(.rmxh-kick,.rmx-kicker,p.rmx-dlabel,.rmxc-kicker,.rm-kicker,.rmab-kicker){
font-family:var(--rmf-w)!important;font-weight:700!important;letter-spacing:.14em!important;font-size:11px!important}
body.rmv2 .rmxh-kick::before{content:"";display:inline-block;vertical-align:middle;width:18px;height:3px;margin-right:10px;background:var(--v2-or);border-radius:0}
body.rmv2 .rmxh-kick .rmxh-dot{display:none}
/* Data (split times): prices, distances, step numbers, counts */
body.rmv2 :is(.woocommerce-Price-amount,.rm-price,.rmx-num,.rmx-km,.rmxh-plate-p,.rmx-rk,.rmxm-n,.rmxc-count,.rmf-since,.cart-contents .amount){
font-family:var(--rmf-m)!important;font-variant-numeric:tabular-nums;letter-spacing:-.01em!important}
body.rmv2 .rm-price{font-weight:600!important;font-size:12px!important}
body.rmv2 :is(h1,h2,h3).rmx-h2,body.rmv2 .rmx-h2{letter-spacing:-.005em!important;line-height:.9!important}

/* 3. Buttons: square-cut, wide caps, flood orange -------------------------------------------------------- */
body.rmv2 :is(.rmxh-btn,.rmx-btn,.rm-btn,.rmf-cta,.rmxmm-find,.rmxh-plate-a,.rmxc-btn,.rmab-btn,.rmx-finish .rmx-btn,
 .woocommerce a.button,.woocommerce button.button,.woocommerce input.button,.single_add_to_cart_button,.wc-block-components-button,.checkout-button,a.button.checkout,.wp-block-button__link){
font-family:var(--rmf-w)!important;font-weight:700!important;letter-spacing:.09em!important;text-transform:uppercase;border-radius:3px!important}
body.rmv2 :is(.rmxh-btn,.rmx-btn,.rm-btn,.rmf-cta,.single_add_to_cart_button,a.button.checkout,.checkout-button){font-size:12px!important}

/* 4. Pinned-bib cards: four safety-pin holes + a perforated tear line ------------------------------------- */
body.rmv2 :is(.rm-card,ul.products li.product .rmxc-card,.rmxc-card){--hole:var(--v2-ink);position:relative}
body.rmv2 :is(.rm-card .rm-card-img,.rmxc-card .rmxc-img){position:relative}
body.rmv2 :is(.rm-card .rm-card-img,.rmxc-card .rmxc-img)::before{content:"";position:absolute;inset:9px;pointer-events:none;z-index:2;opacity:1;
background:
radial-gradient(circle at center,var(--hole) 0 3.5px,var(--v2-chalk) 3.5px 5px,transparent 5.5px) 0 0/12px 12px no-repeat,
radial-gradient(circle at center,var(--hole) 0 3.5px,var(--v2-chalk) 3.5px 5px,transparent 5.5px) 100% 0/12px 12px no-repeat,
radial-gradient(circle at center,var(--hole) 0 3.5px,var(--v2-chalk) 3.5px 5px,transparent 5.5px) 0 100%/12px 12px no-repeat,
radial-gradient(circle at center,var(--hole) 0 3.5px,var(--v2-chalk) 3.5px 5px,transparent 5.5px) 100% 100%/12px 12px no-repeat}
body.rmv2 .rm-card .rm-card-body,body.rmv2 .rmxc-card .rmxc-body{border-top:2px dashed rgba(255,255,255,.18)}
body.rmv2 .rm-cardtag{border-radius:2px!important;font-family:var(--rmf-w)!important;font-size:9.5px!important;letter-spacing:.12em!important;text-transform:uppercase;left:24px!important;top:22px!important}
body.rmv2 .rm-card-title{font-family:var(--rmf-u)!important;font-weight:700!important;letter-spacing:-.005em}
body.rmv2 .rm-card-btn{font-family:var(--rmf-w)!important;font-size:11px!important;letter-spacing:.12em!important}

/* 5. Homepage hero: the pinned race bib ----------------------------------------------------------------- */
body.rmv2 .rmxh{background:
 linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px) 0 0/calc(100%/12) 100%,
 radial-gradient(60% 70% at 85% 30%,rgba(255,94,20,.14),rgba(255,94,20,0) 70%),var(--v2-ink)}
@media (min-width:901px){
body.rmv2 .rmxh--collector .rmxh-copy{position:relative;background:var(--v2-chalk);color:var(--v2-ink);padding:64px 48px 40px;border-radius:4px;
 box-shadow:0 1px 0 rgba(255,255,255,.4) inset,0 30px 60px -24px rgba(0,0,0,.7);transform:rotate(-.8deg)}
body.rmv2 .rmxh--collector .rmxh-copy::before{content:"RUNNING MAD \00B7  VIRTUAL CHALLENGE";position:absolute;left:0;right:0;top:0;height:36px;display:flex;align-items:center;padding:0 48px;
 background:var(--v2-or-btn);color:#fff;font:700 11px/1 var(--rmf-w);letter-spacing:.2em;border-radius:4px 4px 0 0}
body.rmv2 .rmxh--collector .rmxh-copy::after{content:"";position:absolute;inset:48px 12px 12px;pointer-events:none;
 background:
 radial-gradient(circle,var(--v2-ink) 0 4px,rgba(0,0,0,.18) 4px 5px,transparent 5.5px) 0 0/12px 12px no-repeat,
 radial-gradient(circle,var(--v2-ink) 0 4px,rgba(0,0,0,.18) 4px 5px,transparent 5.5px) 100% 0/12px 12px no-repeat,
 radial-gradient(circle,var(--v2-ink) 0 4px,rgba(0,0,0,.18) 4px 5px,transparent 5.5px) 0 100%/12px 12px no-repeat,
 radial-gradient(circle,var(--v2-ink) 0 4px,rgba(0,0,0,.18) 4px 5px,transparent 5.5px) 100% 100%/12px 12px no-repeat}
body.rmv2 .rmxh--collector .rmxh-h1{color:var(--v2-ink)}
body.rmv2 .rmxh--collector .rmxh-kick{color:var(--v2-or-hot)}
body.rmv2 .rmxh--collector .rmxh-lede{color:#3d424b}
body.rmv2 .rmxh--collector .rmxh-ship{color:var(--v2-mute)}
body.rmv2 .rmxh--collector .rmxh-ship svg{stroke:var(--v2-or-btn)}
body.rmv2 .rmxh--collector .rmxh-btn-2{color:var(--v2-ink)!important;border-color:var(--v2-ink);border-width:2px}
}
@media (min-width:901px) and (hover:hover) and (pointer:fine){
body.rmv2 .rmxh--collector .rmxh-btn-2:hover{background:var(--v2-ink);color:#fff!important}
}
@media (max-width:900px){
/* phones: the whole hero becomes the bib */
body.rmv2 .rmxh--collector{background:var(--v2-chalk);color:var(--v2-ink);padding-top:58px}
body.rmv2 .rmxh--collector::before{content:"RUNNING MAD \00B7  VIRTUAL CHALLENGE";position:absolute;left:0;right:0;top:0;height:30px;display:flex;align-items:center;justify-content:center;
 background:var(--v2-or-btn);color:#fff;font:700 9.5px/1 var(--rmf-w);letter-spacing:.2em}
body.rmv2 .rmxh--collector .rmxh-ctas{flex-direction:column;gap:10px}
body.rmv2 .rmxh--collector .rmxh-btn{width:100%}
body.rmv2 .rmxh--collector .rmxh-h1{color:var(--v2-ink)}
body.rmv2 .rmxh--collector .rmxh-kick{color:var(--v2-or-hot)}
body.rmv2 .rmxh--collector .rmxh-lede{color:#3d424b}
body.rmv2 .rmxh--collector .rmxh-ship{color:var(--v2-mute)}
body.rmv2 .rmxh--collector .rmxh-ship svg{stroke:var(--v2-or-btn)}
body.rmv2 .rmxh--collector .rmxh-btn-2{color:var(--v2-ink)!important;border-color:var(--v2-ink);border-width:2px}
body.rmv2 .rmxh--collector .rmxh-th{border-color:rgba(11,12,15,.18)}
}
body.rmv2 .rmxh-stage,body.rmv2 .rmxh-th{border-radius:4px!important}
body.rmv2 .rmxh-plate-t{letter-spacing:0}

/* 6. Section heads: mono index, bigger display ------------------------------------------------------------ */
body.rmv2 .rmx .rmx-num{font-weight:500!important;letter-spacing:0!important}

/* 7. Header + footer ------------------------------------------------------------------------------------- */
body.rmv2 :is(.main-navigation,.secondary-navigation,.site-header-cart,.menu-primary-menu-container) a{font-family:var(--rmf-u)!important}
body.rmv2 .main-navigation ul.menu>li>a{font-weight:600!important;letter-spacing:.01em}
body.rmv2 .site-footer :is(h3,h4){font-family:var(--rmf-w)!important;font-weight:700!important;letter-spacing:.14em!important;text-transform:uppercase}
body.rmv2 .site-footer :is(p,a,li,span){font-family:var(--rmf-b)}
body.rmv2 .site-footer .rmf-since{font-family:var(--rmf-m)!important}

/* 8. Theme defaults that are not under a feature --------------------------------------------------------- */
body.rmv2 :is(.woocommerce-breadcrumb,.woocommerce-result-count,.woocommerce-ordering select){font-family:var(--rmf-u)}
body.rmv2 :is(.product_title,.entry-title,.page-title,.woocommerce-products-header__title){font-family:var(--rmf-d)!important;font-weight:800!important;text-transform:uppercase;letter-spacing:0}

/* 9. Square-cut leftovers in the homepage block, header menus and footer (pass 2) ------------------------- */
body.rmv2 :is(.rmx-dpanel,.rmx-series,.rmx-duo-card,.rmx-route ol,.sub-menu){border-radius:4px!important}
body.rmv2 :is(.rmx-tabs,.rmx-tabs button,.rmx-dist button,.cg-menu-link,.rmf-since,.cmplz-btn,.shoptimizer-custom-quantity-mini-cart){border-radius:3px!important}
body.rmv2 :is(.rmxh-h1,.rmx-h2,.rmx-finish-h,.product_title,.entry-title,.page-title){word-spacing:.06em}
@media (max-width:767px){
body.rmv2 :is(.rm-card-btn,.rm-cardtag){font-family:var(--rmf-u)!important;letter-spacing:.08em!important}
body.rmv2 .rm-cardtag{left:16px!important;top:14px!important;font-size:9px!important}
}

/* 10. Pass 3: one headline voice, shop cards as bibs, square-cut content pills -------------------------------- */
/* Display headlines are always bib caps */
body.rmv2 :is(.rmxh-h1,.rmx-h2,.rmx .rmx-h2,.rmx-finish-h,.rmx h2,.product_title,.rm-hero-auto-title,.rmxc-h1,.page-title,.entry-title){text-transform:uppercase!important}
/* Buy box: distance numbers read like split times */
body.rmv2 .rmxp-n{font-family:var(--rmf-m)!important;font-weight:700!important;letter-spacing:-.02em!important}
/* Shop and category cards: pin holes on the photo, a tear line above the details. Hole colour = the page behind the card. */
body.rmv2{--hole:var(--v2-chalk);--ring:rgba(11,12,15,.28)}
body.rmv2 .rmx,body.rmv2 .rmx-coll{--hole:var(--v2-ink);--ring:var(--v2-chalk)}
body.rmv2 :is(.rm-card .rm-card-img,.rmxc-card .rmxc-img)::before{background:
radial-gradient(circle at center,var(--hole) 0 3.5px,var(--ring) 3.5px 5px,transparent 5.5px) 0 0/12px 12px no-repeat,
radial-gradient(circle at center,var(--hole) 0 3.5px,var(--ring) 3.5px 5px,transparent 5.5px) 100% 0/12px 12px no-repeat}
body.rmv2 ul.products li.product .woocommerce-image__wrapper>a.woocommerce-LoopProduct-link{position:relative;display:block}
body.rmv2 ul.products li.product .woocommerce-image__wrapper>a.woocommerce-LoopProduct-link::after{content:"";position:absolute;inset:9px;pointer-events:none;z-index:1;background:
radial-gradient(circle at center,var(--hole) 0 3.5px,var(--ring) 3.5px 5px,transparent 5.5px) 0 0/12px 12px no-repeat,
radial-gradient(circle at center,var(--hole) 0 3.5px,var(--ring) 3.5px 5px,transparent 5.5px) 100% 0/12px 12px no-repeat}
body.rmv2 ul.products li.product .woocommerce-card__header{border-top:2px dashed rgba(127,127,127,.32)}
/* Content pills, menus, FAQ, rewards, account panels: square-cut */
html body.rmv2 :is(.main-navigation a.cg-menu-link,#tab-description :is(p>a,ul>li),.summary.entry-summary>div:not([class]),.rm-inv,.rm-fcard,.rm-step,details.rm-qa,.rm-qa,.tier-pill,.woocommerce-MyAccount-navigation ul){border-radius:3px!important}
body.rmv2 ul.products li.product .woocommerce-image__wrapper::before{left:24px!important;top:20px!important;border-radius:2px!important;font-family:var(--rmf-w)!important;letter-spacing:.12em!important;font-size:9.5px!important}
body.rmv2 .rmxh-plate-t{font-size:clamp(22px,2.3vw,30px)!important}
@media (max-width:767px){body.rmv2 ul.products li.product .woocommerce-image__wrapper::before{font-family:var(--rmf-u)!important;letter-spacing:.08em!important;left:26px!important;top:16px!important;font-size:9px!important}}
/* Checkout + basket: readable summary price, buttons that fit one line on phones */
body.rmv2 .wc-block-components-checkout-order-summary__title-price,body.rmv2 .wc-block-components-checkout-order-summary__title-price *{font:600 15px/1 var(--rmf-m)!important;letter-spacing:-.01em!important}
@media (max-width:767px){
body.rmv2 :is(.wc-block-components-button,.wc-block-cart__submit-button,.checkout-button,.single_add_to_cart_button,a.button.checkout,.rmx-btn,.rm-btn,.rmf-cta){font-size:12px!important;letter-spacing:.06em!important}
}
/* 404 + recommendation product cards (rounded in v1) */
html body.rmv2 ul.products li.product,html body.rmv2 ul.products li.product :is(.woocommerce-image__wrapper,img){border-radius:4px!important}

/* Review fixes (Judge/Sceptic round 1) ------------------------------------------------------------------- */
/* 404: the page had no visible headline (hidden in v1 too); v2 shows it as the bib headline */
body.rmv2.error404 h1.page-title{display:block!important;margin:8px 0 18px!important;font:800 clamp(40px,6vw,72px)/.9 var(--rmf-d)!important;text-transform:uppercase!important;color:var(--v2-ink)}
/* desktop shop tag clears the top-left pin hole */
@media (min-width:768px){body.rmv2 ul.products li.product .woocommerce-image__wrapper::before{left:30px!important}}
/* Phone feel (mobile-native): no grey tap flash, no double-tap delay on controls */
html:has(body.rmv2){-webkit-tap-highlight-color:transparent}
body.rmv2 :is(a,button,[role="button"],summary,label,select){touch-action:manipulation}
body.rmv2 .summary.entry-summary>div:not([class]),body.rmv2 .summary.entry-summary>div:not([class]) :is(div,strong,a,span){font-family:var(--rmf-u)!important}
body.rmv2.home .rm-evsec :is(.rmcert-pill,.rmcert-pill *){font-family:"RM Sans Fit",system-ui,sans-serif!important}
/* pre-existing 24px sideways scroll on desktop (off-canvas mini-cart / footer band); clip does not break sticky headers */
html:has(body.rmv2),body.rmv2{overflow-x:clip}
/* phone card corners: an older phone-only rule outranks the class-level one, so this carries an id-level guard */
html body.rmv2:not(#rmv2-guard) ul.products li.product{border-radius:4px!important}
/* phone price chip on the photo: readable white mono on a solid tarmac chip (was orange on 40% black) */
@media (max-width:767px){
html body.rmv2:not(#rmv2-guard) ul.products li.product .price{background:rgba(11,12,15,.86)!important;color:#fff!important;border-radius:2px!important}
html body.rmv2:not(#rmv2-guard) ul.products li.product .price :is(ins,.amount,bdi){color:#fff!important}
html body.rmv2:not(#rmv2-guard) ul.products li.product .price del{color:#c9ccd3!important}
}
/* sale cards: the % bubble drops below the pin hole and clears the type tag */
body.rmv2 ul.products li.product .sale-item.product-label{top:auto!important;bottom:12px!important;right:12px!important;border-radius:2px!important;font-family:var(--rmf-m)!important;font-weight:700!important}
/* phone FREE chip on the dark chip: white text */
@media (max-width:767px){html body.rmv2:not(#rmv2-guard) ul.products li.product .price *{color:#fff!important}}
/* Locked event areas (the /events/ boards, cards and rail; event cards in My Account) stay exactly v1:
   inside them every token resolves to its v1 value again. */
body.rmv2 :is(#rmev,.rm-evc){--rmf-d:"Bebas Neue",Impact,"Arial Narrow",sans-serif;--rmf-u:Jost,system-ui,sans-serif;--rmf-b:Inter,system-ui,sans-serif;--rmf-ds:1;--rmr-pill:999px;--rmr-cap:999px}
/* 404: section heading in the headline voice */
html body.rmv2.error404 h2{text-transform:uppercase!important}
/* v1.5.1 (Rana, 30 Oct: "Event button contrast"): homepage event-card "Register now" buttons sit on light accent
   gradients; white text measured 1.4-3.2:1, tarmac text measures 6.1-13.9:1. Colours of the cards are unchanged. */
body.rmv2 .rm-evsec a.rm-evbtn-primary,body.rmv2 .rm-evsec a.rm-evbtn-primary *{color:#0b0c0f!important;text-shadow:none!important}
/* v1.5.2: links inside category descriptions were told apart by colour only (Lighthouse "links rely on color", shop a11y 97) */
body.rmv2 :is(.term-description,.rm-cat-intro,.rm-faq) p a{text-decoration:underline!important;text-decoration-thickness:1.5px;text-underline-offset:3px}
/* v1.5.3 (Rana, 30 Oct: "Dark text, same as homepage"): /events/ register buttons on light accent gradients (and the
   rail's orange "Register now") measured 1.6-3.4:1 with white text. Text colour only; card colours/layout stay locked. */
body.rmv2 #rmev :is(.rm-es-b.reg,button[class$="-register"],button[class*="-btn"].reg):not(.lock),
body.rmv2 #rmev :is(.rm-es-b.reg,button[class$="-register"],button[class*="-btn"].reg):not(.lock) *{color:#0b0c0f!important;text-shadow:none!important}
/* v1.5.4 (Rana, 30 Oct: the community strip "just looks like random text"; "clean it up more and add motion"):
   the three real counts as a clean race-stats row: live kicker, three columns split by hairlines, the number in the
   timing face on top with a short label under it. Motion: the columns rise in one after another and an orange
   finish-tape line draws under each number, once, when the row scrolls into view. No count-up (numbers are never faked). */
body.rmv2 .rmxm-strip--v2{background:var(--v2-chalk)!important;border:0!important;padding:18px 0 28px!important}
body.rmv2 .rmxm-strip--v2 .rmxm-strip-in{display:block!important;max-width:1170px;margin:0 auto;padding:0 clamp(16px,4vw,32px)!important}
body.rmv2 .rmxm-strip--v2 .rmxm-k{display:flex;align-items:center;gap:9px;margin:0 0 12px!important;font:700 11px/1 var(--rmf-w)!important;letter-spacing:.14em;text-transform:uppercase;color:var(--v2-or-hot)!important}
body.rmv2 .rmxm-strip--v2 .rmxm-live{position:relative;width:8px;height:8px;border-radius:50%;background:var(--v2-or-btn);flex:none}
body.rmv2 .rmxm-strip--v2 .rmxm-live::after{content:"";position:absolute;inset:0;border-radius:50%;background:var(--v2-or-btn);animation:rmv2Ping 1.6s cubic-bezier(.23,1,.32,1) 3}
@keyframes rmv2Ping{from{transform:scale(1);opacity:.55}to{transform:scale(2.8);opacity:0}}
body.rmv2 .rmxm-strip--v2 .rmxm-stats{list-style:none;margin:0!important;padding:0!important;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-top:1px solid rgba(11,12,15,.14)}
body.rmv2 .rmxm-strip--v2 .rmxm-stats li{margin:0!important;padding:14px 12px 0 0;display:flex;flex-direction:column;gap:7px;min-width:0}
body.rmv2 .rmxm-strip--v2 .rmxm-stats li+li{padding-left:12px;border-left:1px solid rgba(11,12,15,.14)}
body.rmv2 .rmxm-strip--v2 .rmxm-stats b{position:relative;align-self:flex-start;padding-bottom:7px;font:700 clamp(24px,3vw,38px)/1 var(--rmf-m)!important;letter-spacing:-.03em;color:var(--v2-ink)!important;white-space:nowrap}
body.rmv2 .rmxm-strip--v2 .rmxm-stats b small{margin-left:3px;font:600 .45em/1 var(--rmf-w);letter-spacing:.08em;text-transform:uppercase;color:var(--v2-mute)}
body.rmv2 .rmxm-strip--v2 .rmxm-stats b::after{content:"";position:absolute;left:0;bottom:0;width:100%;height:3px;background:var(--v2-or-btn);transform-origin:0 50%}
body.rmv2 .rmxm-strip--v2 .rmxm-stats span{font:500 12.5px/1.35 var(--rmf-u)!important;color:#3d424b!important}
@media (max-width:420px){body.rmv2 .rmxm-strip--v2 .rmxm-stats li{padding-right:8px}body.rmv2 .rmxm-strip--v2 .rmxm-stats li+li{padding-left:9px}body.rmv2 .rmxm-strip--v2 .rmxm-stats span{font-size:11.5px!important}}
/* entrance: only armed by the script (no script = everything simply visible) */
body.rmv2 .rmxm-strip--v2.is-armed .rmxm-stats li{opacity:0;transform:translateY(12px)}
body.rmv2 .rmxm-strip--v2.is-armed .rmxm-stats b::after{transform:scaleX(0)}
body.rmv2 .rmxm-strip--v2.is-in .rmxm-stats li{opacity:1;transform:none;transition:opacity 420ms cubic-bezier(.23,1,.32,1),transform 420ms cubic-bezier(.23,1,.32,1)}
body.rmv2 .rmxm-strip--v2.is-in .rmxm-stats b::after{transform:scaleX(1);transition:transform 560ms cubic-bezier(.77,0,.175,1) 220ms}
body.rmv2 .rmxm-strip--v2.is-in .rmxm-stats li:nth-child(2),body.rmv2 .rmxm-strip--v2.is-in .rmxm-stats li:nth-child(2) b::after{transition-delay:70ms,70ms}
body.rmv2 .rmxm-strip--v2.is-in .rmxm-stats li:nth-child(2) b::after{transition-delay:290ms}
body.rmv2 .rmxm-strip--v2.is-in .rmxm-stats li:nth-child(3){transition-delay:140ms}
body.rmv2 .rmxm-strip--v2.is-in .rmxm-stats li:nth-child(3) b::after{transition-delay:360ms}
/* v1.5.5 (Rana): stats row content centred in each column, kicker centred above */
body.rmv2 .rmxm-strip--v2 .rmxm-k{justify-content:center}
body.rmv2 .rmxm-strip--v2 .rmxm-stats li,body.rmv2 .rmxm-strip--v2 .rmxm-stats li+li{align-items:center;text-align:center;padding-left:8px;padding-right:8px}
body.rmv2 .rmxm-strip--v2 .rmxm-stats b{align-self:center}
/* v1.5.6 (Rana, 31 Oct): shop filter names no longer run into their counts - name and count sit side by side,
   the count in its own right-hand column; long names wrap inside their own space */
body.rmv2 :is(.widget_layered_nav,.widget_product_categories) li{display:flex!important;align-items:baseline;gap:8px}
body.rmv2 :is(.widget_layered_nav,.widget_product_categories) li>a{flex:1 1 auto;min-width:0}
body.rmv2 :is(.widget_layered_nav,.widget_product_categories) li .count{float:none!important;position:static!important;flex:none;margin-left:auto!important;width:auto!important;min-width:0!important;font-family:var(--rmf-m)!important;font-weight:500;letter-spacing:-.02em;font-size:11px!important}
/* v1.5.7 (Rana, 31 Oct: "Match page headers"): one page-head pattern for every info page - a full-width tarmac band
   (same lane lines and orange glow as the homepage hero) with an orange start line along the bottom. Photo variants
   (.bg: rewards, how it works) keep their photo; the collection/blog photo bands get the same start line. */
body.rmv2 .rm-phero{position:relative;border-radius:0!important;border-bottom:3px solid var(--v2-or-btn)!important}
/* a boxed band (FAQ sits inside a narrower container) still paints edge to edge, without moving its content */
body.rmv2 .rm-phero:not(.bg){box-shadow:0 0 0 100vmax var(--v2-ink);clip-path:inset(0 -100vmax);border-image:linear-gradient(var(--v2-or-btn),var(--v2-or-btn)) 0 0 1 0/0 0 3px 0/0 100vmax 0 100vmax}
body.rmv2 .rm-phero:not(.bg){background:var(--v2-ink)!important}
body.rmv2 .rm-hero-auto{border-bottom:3px solid var(--v2-or-btn)!important}

/* v1.5.9: phone headings in the Race-day faces. Rana's locked phone scale (24px hero titles, 14px bold caps headings, footer sizes)
   stays exactly as set; only the face changes from Jost. Page titles and section headings -> RM Display (as on desktop),
   sub-headings and blog card titles -> RM Sans, footer headings -> RM Wide. Event cards, boards and rail keep their own faces.
   Two id guards beat the locked rule (body:not(.rmx1..5) :is(h1..h6) {font-family:Jost!important}). Phones only; the homepage keeps its own heading faces (only its footer follows). */
@media (max-width:767px){
body.rmv2:not(.home):not(#rmv2-g1):not(#rmv2-g2) :is(h1,h2,h3,h4,h5,h6):not(:is(#rmev,.rm-evc,.rm-evsec,.rm-ev,[class*="mot-"],[class*="-native"]) *):not(.product_title),
body.rmv2:not(.home):not(#rmv2-g1):not(#rmv2-g2) :is(h1,h2,h3,h4,h5,h6):not(:is(#rmev,.rm-evc,.rm-evsec,.rm-ev,[class*="mot-"],[class*="-native"]) *):not(.product_title) *{font-family:"RM Sans",system-ui,sans-serif!important;letter-spacing:.01em!important}
body.rmv2:not(.home):not(#rmv2-g1):not(#rmv2-g2) :is(h1,h2):not(.entry-title):not(footer *):not(:is(#rmev,.rm-evc,.rm-evsec,.rm-ev,[class*="mot-"],[class*="-native"]) *):not(.product_title),
body.rmv2:not(.home):not(#rmv2-g1):not(#rmv2-g2) :is(h1,h2):not(.entry-title):not(footer *):not(:is(#rmev,.rm-evc,.rm-evsec,.rm-ev,[class*="mot-"],[class*="-native"]) *):not(.product_title) *{font-family:"RM Display",Impact,sans-serif!important;letter-spacing:.01em!important}
body.rmv2:not(#rmv2-g1):not(#rmv2-g2):not(#rmv2-g3):not(#rmv2-g4) footer :is(h3,h4),body.rmv2:not(#rmv2-g1):not(#rmv2-g2):not(#rmv2-g3):not(#rmv2-g4) footer :is(h3,h4) *{font-family:"RM Wide",system-ui,sans-serif!important;letter-spacing:.06em!important}
}

/* v1.5.9: shop product cards on phones follow the desktop faces (Rana, 31 Oct). Sizes, caps, spacing and colours of the
   locked phone card stay exactly as set; only the face changes from Jost: title/"From"/"Free" -> RM Sans, button -> RM Wide. */
@media (max-width:767px){
body.rmv2:not(#rmv2-g1):not(#rmv2-g2):not(#rmv2-g3):not(#rmv2-g4) ul.products li.product :is(.woocommerce-loop-product__title,.woocommerce-LoopProduct-link,.rmxc-free,.rmxc-from),
body.rmv2:not(#rmv2-g1):not(#rmv2-g2):not(#rmv2-g3):not(#rmv2-g4) ul.products li.product .woocommerce-loop-product__title *{font-family:"RM Sans",system-ui,sans-serif!important}
body.rmv2:not(#rmv2-g1):not(#rmv2-g2):not(#rmv2-g3):not(#rmv2-g4) ul.products li.product :is(a.button,.button){font-family:"RM Wide",system-ui,sans-serif!important}
}

/* v1.5.9: /events/ register buttons. The start of seven gradients is lightened just enough that the dark button text
   reaches at least 4.5:1 along the whole button (Rana approved, 31 Oct). Angle, end colours and everything else unchanged. */
body.rmv2 #rmev:not(#rmv2-g1) .mot-btn.reg:not(.lock){background-image:linear-gradient(120deg,#9457f9,#b14bff)!important}
body.rmv2 #rmev:not(#rmv2-g1) .mo-register:not(.lock){background-image:linear-gradient(120deg,#317bd9,#5cbcff)!important}
body.rmv2 #rmev:not(#rmv2-g1) .xmas-register:not(.lock){background-image:linear-gradient(120deg,#dc4256,#ff5a5a)!important}
body.rmv2 #rmev:not(#rmv2-g1) .val-btn.reg:not(.lock){background-image:linear-gradient(120deg,#d44970,#e2366b)!important}
body.rmv2 #rmev:not(#rmv2-g1) .val-register:not(.lock){background-image:linear-gradient(120deg,#e2366b,#ff5c8a)!important}
body.rmv2 #rmev:not(#rmv2-g1) .ram-btn.reg:not(.lock){background-image:linear-gradient(120deg,#507eaf,#5a8bc4)!important}
body.rmv2 #rmev:not(#rmv2-g1) .luck-btn.reg:not(.lock){background-image:linear-gradient(120deg,#378a5b,#2fae62)!important}

/* v1.5.9: About page "1,000+" stat. On phones the locked 10px text size caught this display number (102px on desktop),
   so it read as small print. Phones get a 44px number in RM Display; nothing else on the page changes. */
@media (max-width:767px){
body.rmv2:not(#rmv2-g1):not(#rmv2-g2):not(#rmv2-g3):not(#rmv2-g4) .rma-big{font-size:44px!important;line-height:.95!important;margin-bottom:6px!important}
body.rmv2:not(#rmv2-g1):not(#rmv2-g2):not(#rmv2-g3):not(#rmv2-g4) .rma-big *{font-size:inherit!important;line-height:inherit!important}
/* the same 10px catch on other display numbers (31 Oct re-check): My Running Mad wallets, hub stats and rank star,
   the Leaderboard "One team. Every mile." line, and the Rewards ghost figures (hidden on phones: at full size they sit behind the card text) */
body.rmv2:not(#rmv2-g1):not(#rmv2-g2):not(#rmv2-g3):not(#rmv2-g4) .rmdash .gamipress-user-points-amount{font-size:40px!important;line-height:1!important}
body.rmv2:not(#rmv2-g1):not(#rmv2-g2):not(#rmv2-g3):not(#rmv2-g4) .rmxm-stats .rmxm-stat strong{font-size:26px!important;line-height:1.05!important}
body.rmv2:not(#rmv2-g1):not(#rmv2-g2):not(#rmv2-g3):not(#rmv2-g4) .rmdash .rm-rank-badge{font-size:34px!important;line-height:1!important}
body.rmv2:not(#rmv2-g1):not(#rmv2-g2):not(#rmv2-g3):not(#rmv2-g4) .rm-club span.big,body.rmv2:not(#rmv2-g1):not(#rmv2-g2):not(#rmv2-g3):not(#rmv2-g4) .rm-club span.big *,body.rmv2:not(#rmv2-g1):not(#rmv2-g2):not(#rmv2-g3):not(#rmv2-g4) .rm-club span.big + span{font-size:32px!important;line-height:1.02!important}
body.rmv2:not(#rmv2-g1):not(#rmv2-g2):not(#rmv2-g3):not(#rmv2-g4) .rm-fcard .tier-ghost{display:none!important}
}

/* v1.5.9 sweep (57 URLs, 31 Oct): leftover seams.
   /events/ is never touched by the font remap (its boards keep their own CSS), so its page-top band and the footer
   USP row still showed Bebas/Jost. They now match every other page. The event cards, boards and rail are not touched. */
body.rmv2:not(#rmv2-g1):not(#rmv2-g2) .rm-hero-auto .rm-hero-auto-eyebrow{font-family:"RM Sans Fit","RM Sans",system-ui,sans-serif!important}
body.rmv2:not(#rmv2-g1):not(#rmv2-g2) .rm-hero-auto .rm-hero-auto-title{font-family:"RM Display Fit","RM Display",Impact,sans-serif!important}
body.rmv2:not(#rmv2-g1):not(#rmv2-g2) .rm-hero-auto .rm-hero-auto-sub{font-family:"RM Sans Fit","RM Sans",system-ui,sans-serif!important}
body.rmv2:not(#rmv2-g1):not(#rmv2-g2) .rmf .rmf-uspin,body.rmv2:not(#rmv2-g1):not(#rmv2-g2) .rmf .rmf-uspin *{font-family:"RM Sans Fit","RM Sans",system-ui,sans-serif!important}
@media (max-width:767px){
/* the basket drawer title and step numbers (How it works, Rewards, Leaderboard, Teams, Fundraising) were still Jost on phones */
body.rmv2:not(#rmv2-g1):not(#rmv2-g2):not(#rmv2-g3) .cart-drawer-heading{font-family:"RM Sans",system-ui,sans-serif!important}
body.rmv2:not(#rmv2-g1):not(#rmv2-g2):not(#rmv2-g3) div.num:not(:is(#rmev,.rm-evc,.rm-evsec,[class*="mot-"],[class*="-native"]) *){font-family:"RM Display Fit","RM Display",Impact,sans-serif!important;letter-spacing:.01em!important}
/* two-up feature cards (Help topics, Rewards): 30px side padding left 72px for a heading, so "DELIVERY" broke mid-word */
body.rmv2:not(#rmv2-g1):not(#rmv2-g2) .rm-feat .rm-fcard{padding-left:12px!important;padding-right:12px!important}
}

/* v1.5.9 accessibility sweep (31 Oct). Colour and target-size fixes only; layout and copy unchanged. */
/* text links in page copy, FAQ answers and product descriptions: #ff3600 on white was 3.6:1 -> #b82700 (6.3:1).
   Footer links and dark bands keep their own colours. */
body.rmv2:not(#rmv2-g1):not(#rmv2-g2) :is(.rm p,.rm li,.rm .rm-prose,.woocommerce-Tabs-panel p,.woocommerce-Tabs-panel li) a:not([class*="btn"]):not([class*="button"]):not(footer *):not(.rmf *){color:#b82700!important}
body.rmv2:not(#rmv2-g1):not(#rmv2-g2) :is(.rm p,.rm li,.rm .rm-prose,.woocommerce-Tabs-panel p,.woocommerce-Tabs-panel li) a:not([class*="btn"]):not([class*="button"]):not(footer *):not(.rmf *):hover{color:#8f1e00!important}
/* the orange "Events" item in the dark main menu: 4.4:1 -> 5.1:1 */
body.rmv2:not(#rmv2-g1) #menu-primary-navigation li.rm-events-hot > a{color:#ff5a2b!important}
/* homepage rank ladder: the top steps had white numbers on bright orange (3.6:1); same steps, button orange (5:1 or better) */
body.rmv2 .rmx-ranks li:nth-child(1) .rmx-rk{background-color:rgba(217,46,0,.18)!important}
body.rmv2 .rmx-ranks li:nth-child(2) .rmx-rk{background-color:rgba(217,46,0,.34)!important}
body.rmv2 .rmx-ranks li:nth-child(3) .rmx-rk{background-color:rgba(217,46,0,.5)!important}
body.rmv2 .rmx-ranks li:nth-child(4) .rmx-rk{background-color:rgba(217,46,0,.66)!important}
body.rmv2 .rmx-ranks li:nth-child(5) .rmx-rk{background-color:rgba(217,46,0,.82)!important}
body.rmv2 .rmx-ranks li:nth-child(6) .rmx-rk{background-color:rgba(217,46,0,.98)!important}
/* About "Going the distance" kicker sits on the dark band: #c42a00 was 3.4:1 -> the light orange used for dark kickers */
body.rmv2:not(#rmv2-g1):not(#rmv2-g2) .rma-sec.ink .rma-k{color:#ff7a4d!important}
/* targets under 24px: logo link, breadcrumbs, previous/next product arrows, the "See how…" link, quantity +/- */
body.rmv2 a.custom-logo-link{display:inline-block;min-height:24px}
body.rmv2 .woocommerce-breadcrumb a{display:inline-block;padding:5px 0}
body.rmv2 .shoptimizer-product-prevnext a{min-width:24px;min-height:24px;display:inline-flex;align-items:center;justify-content:center}
body.rmv2 .summary.entry-summary > div:not([class]) > a:only-child{display:inline-block;padding-block:6px}
@media (max-width:767px){
body.rmv2:not(#rmv2-g1) div.quantity:has(.quantity-nav){height:48px!important}
body.rmv2:not(#rmv2-g1) div.quantity:has(.quantity-nav) input.qty{height:48px!important}
body.rmv2:not(#rmv2-g1) div.quantity .quantity-nav{height:48px!important}
body.rmv2:not(#rmv2-g1) div.quantity .quantity-nav .quantity-button{height:24px!important;line-height:24px!important}
body.rmv2:not(#rmv2-g1) div.quantity .quantity-nav .quantity-button.quantity-up{top:0!important;bottom:auto!important}
body.rmv2:not(#rmv2-g1) div.quantity .quantity-nav .quantity-button.quantity-down{top:24px!important;bottom:auto!important}
}
/* Miles of Terror "Log your miles" (shown after registering): white on the orange gradient was 2.4:1.
   Dark text, the same treatment as every register button since v1.5.3. */
body.rmv2 #rmev:not(#rmv2-g1) .mot-btn:not(.reg):not(.done):not(.lock){color:#0b0c0f!important}

/* v1.5.9 worst-case content test (31 Oct): very long product names and five-figure prices. */
/* shop cards on desktop: a 4-line title made one card taller than its row, so the buttons stopped lining up. Titles clamp at 3 lines
   (the full name is on the product page; phones already clamp at 3). */
@media (min-width:768px){
body.rmv2 ul.products li.product .woocommerce-loop-product__title{display:-webkit-box!important;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
}
/* basket: the price + "Save" badge row wraps instead of pushing the badge past the card edge */
body.rmv2 .wc-block-cart-item__total-price-and-sale-badge-wrapper{flex-wrap:wrap;row-gap:4px}
body.rmv2 .wc-block-cart-item__total .wc-block-components-sale-badge{max-width:100%;white-space:normal}
/* checkout order summary on phones: the price column squeezed the name to ~100px and split words. The line price drops under the name. */
@media (max-width:767px){
body.rmv2 .wc-block-components-order-summary-item{flex-wrap:wrap}
body.rmv2 .wc-block-components-order-summary-item__description{flex:1 1 0;min-width:0}
body.rmv2 .wc-block-components-order-summary-item__total-price{flex:1 0 100%;display:flex;flex-wrap:wrap;justify-content:flex-end;gap:4px 8px;padding-top:6px;text-align:right}
body.rmv2 .wc-block-components-order-summary-item .wc-block-components-product-name{overflow-wrap:break-word;word-break:normal;hyphens:manual}
}
/* basket drawer: remove "×" was 14px and the quantity -/+ 18px wide; both now at least 24px */
body.rmv2:not(#rmv2-g1) .woocommerce-mini-cart a.remove{width:24px!important;height:24px!important;min-width:24px;display:inline-flex!important;align-items:center;justify-content:center;line-height:1!important}
body.rmv2:not(#rmv2-g1) .shoptimizer-custom-quantity-mini-cart_button{min-width:24px!important;display:inline-flex!important;align-items:center;justify-content:center}

/* v1.5.9 empty states: "no search results" had 10px text and the theme's green button. Race-day treatment, phone and desktop. */
body.rmv2:not(#rmv2-g1):not(#rmv2-g2) .no-results .page-content > p{font-size:15px!important;line-height:1.5!important;margin:0 0 16px!important;color:var(--v2-ink,#0b0c0f)}
body.rmv2 .no-results .search-form{display:flex;gap:8px;align-items:stretch}
body.rmv2 .no-results .search-form label{flex:1 1 auto;margin:0}
body.rmv2:not(#rmv2-g1) .no-results .search-form .search-field{width:100%;min-height:48px;font-size:16px!important}
body.rmv2:not(#rmv2-g1):not(#rmv2-g2) .no-results .search-form .search-submit{min-height:48px;padding:0 18px!important;border:0!important;border-radius:3px!important;background:var(--v2-or-btn,#d92e00)!important;color:#fff!important;font:700 13px/1 "RM Wide",system-ui,sans-serif!important;letter-spacing:.08em!important;text-transform:uppercase}
/* shop sort menu: 13px made iPhones zoom the page on tap; 16px on phones */
@media (max-width:767px){body.rmv2:not(#rmv2-g1) select.orderby{font-size:16px!important}}
