/* Next Mile Moto v111: shared unified editorial typography and layout */
:root{--nmm-ui-navy:#102a45;--nmm-ui-yellow:#f2bd12;--nmm-ui-bg:#f3f6fa;--nmm-ui-text:#102a45}
body{font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif!important;background:var(--nmm-ui-bg);color:var(--nmm-ui-text)}
body main h1,body main h2,body main h3{font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif!important;font-weight:850;letter-spacing:-.055em}
body main h1{line-height:1.06}
.nmm-shared-nav{font-family:Inter,ui-sans-serif,system-ui,sans-serif!important}
/* Uniform interior hero typography and generous spacing, scoped to named components only */
body.nmm-editorial-v105 .hero h1,body.nmm-editorial-v105 .ph-hero h1,body .masthead h1{font-family:Inter,ui-sans-serif,system-ui,sans-serif!important;font-weight:850!important;letter-spacing:-.058em!important}
body.nmm-editorial-v105 .hero p,body.nmm-editorial-v105 .ph-hero p,body .masthead p{font-family:Inter,ui-sans-serif,system-ui,sans-serif!important}
/* Rules page: replace the legacy full-bleed dark photo banner with the Ride Central light editorial header */
body.nmm-rules-v111 main .hero{background:#f3f6fa!important;background-image:none!important;color:#102a45!important;min-height:0!important;padding:54px 0 42px!important;box-shadow:none!important;border:0!important}
body.nmm-rules-v111 main .hero::before,body.nmm-rules-v111 main .hero::after{content:none!important;display:none!important}
body.nmm-rules-v111 main .hero .wrap{max-width:1150px!important;width:min(1150px,calc(100% - 40px))!important;margin:auto!important;padding:0!important}
body.nmm-rules-v111 main .hero .hero-inner{text-align:left!important;display:block!important;min-height:0!important}
body.nmm-rules-v111 main .hero .eyebrow{color:#977200!important;letter-spacing:.15em!important;font-size:12px!important;font-weight:900!important;text-transform:uppercase!important}
body.nmm-rules-v111 main .hero h1{color:#102a45!important;font-size:clamp(48px,6vw,76px)!important;font-weight:850!important;line-height:1.05!important;text-transform:none!important;letter-spacing:-.055em!important;margin:18px 0!important;text-shadow:none!important}
body.nmm-rules-v111 main .hero h1 span{color:#f2bd12!important}
body.nmm-rules-v111 main .hero .lead{font-size:clamp(17px,1.6vw,19px)!important;line-height:1.65!important;color:#526982!important;max-width:780px!important;text-shadow:none!important}
body.nmm-rules-v111 main .intro-note{color:#102a45!important;background:white!important;border:1px solid #dae3ed!important;border-left:4px solid #f2bd12!important;border-radius:16px!important;padding:20px 23px!important;max-width:850px!important;box-shadow:0 8px 26px rgba(7,24,45,.04)!important}
body.nmm-rules-v111 main section{background:#f3f6fa;color:#102a45}
body.nmm-rules-v111 main .rule,body.nmm-rules-v111 main .formation-card{border-radius:20px!important;overflow:hidden}
/* Homepage: make stats a clear five-item editorial card without nested pill boxes */
.nmm-home-v102 .hero .mile-counter.nmm-hero-stats{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:0!important;padding:12px 16px!important;margin-top:22px!important;max-width:600px!important;align-items:stretch!important}
.nmm-home-v102 .nmm-stat{display:flex;align-items:center;gap:12px;padding:11px 10px;min-width:0;border:0;background:transparent;border-radius:0}
.nmm-home-v102 .nmm-stat:nth-child(odd){border-right:1px solid #e2e9f1}
.nmm-home-v102 .nmm-stat:nth-child(n+3){border-top:1px solid #e2e9f1}
.nmm-home-v102 .nmm-stat strong{font-size:clamp(22px,2.35vw,30px)!important;letter-spacing:-.045em;color:#d3a000;line-height:1.05;white-space:nowrap}
.nmm-home-v102 .nmm-stat div{display:flex;flex-direction:column;min-width:0;gap:2px}
.nmm-home-v102 .nmm-stat span{font-size:12px!important;font-weight:800!important;line-height:1.24;color:#153355!important}
.nmm-home-v102 .nmm-stat small{font-size:10px!important;line-height:1.4;color:#65778d!important}
.nmm-home-v102 .hero h1 span:after{content:'.';color:var(--nmm-accent)}
@media(max-width:1000px){.nmm-home-v102 .hero .mile-counter.nmm-hero-stats{max-width:680px!important}}
@media(max-width:560px){.nmm-home-v102 .hero .mile-counter.nmm-hero-stats{grid-template-columns:1fr!important;padding:10px 18px!important}.nmm-home-v102 .nmm-stat{border:0!important}.nmm-home-v102 .nmm-stat+.nmm-stat{border-top:1px solid #e2e9f1!important}}
/* Preserve gallery rectangular images. Pills only on interactive action controls. */
body.nmm-gallery-v105 main .ph-collection{border-radius:16px!important}
body.nmm-gallery-v105 main .ph-collection .ph-cover{border-radius:0!important}
body.nmm-gallery-v105 main .ph-tile,body.nmm-gallery-v105 main .ph-tile img{border-radius:12px!important}

/* V114: Exactly two stats rows, local first, long-distance second. */
.nmm-home-v102 .hero .mile-counter.nmm-hero-stats{
  display:flex!important;flex-direction:column!important;align-items:stretch!important;
  gap:0!important;width:100%!important;max-width:600px!important;padding:0!important;
  border-radius:16px!important;overflow:hidden!important;
}
.nmm-home-v102 .nmm-stats-row{display:grid!important;align-items:stretch!important;width:100%!important;min-width:0!important}
.nmm-home-v102 .nmm-stats-local{grid-template-columns:repeat(2,minmax(0,1fr))!important}
.nmm-home-v102 .nmm-stats-distance{grid-template-columns:repeat(3,minmax(0,1fr))!important;border-top:1px solid #dce5ee!important}
.nmm-home-v102 .nmm-stats-row .nmm-stat{
 display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:center!important;
 gap:5px!important;padding:15px 11px!important;margin:0!important;border:0!important;border-radius:0!important;
 background:transparent!important;min-width:0!important;
}
.nmm-home-v102 .nmm-stats-row .nmm-stat+.nmm-stat{border-left:1px solid #dce5ee!important;border-top:0!important}
.nmm-home-v102 .nmm-stats-row .nmm-stat strong{display:block!important;font-size:clamp(24px,2vw,30px)!important;line-height:1.1!important;color:#d5a000!important}
.nmm-home-v102 .nmm-stats-row .nmm-stat span{display:block!important;font-size:11px!important;line-height:1.3!important;color:#153355!important;font-weight:800!important}
@media(max-width:460px){
 .nmm-home-v102 .nmm-stats-row .nmm-stat{padding:12px 7px!important}
 .nmm-home-v102 .nmm-stats-row .nmm-stat strong{font-size:22px!important}
 .nmm-home-v102 .nmm-stats-row .nmm-stat span{font-size:10px!important}
}
