:root{
  --navy:#052234; --blue:#4169e2; --orange:#f28c28; --yellow:#ffd54a;
  --bg:#f4f7fb; --card:#fff; --text:#102536; --muted:#667887; --line:#dfe6ec;
  --radius:22px; --shadow:0 14px 40px rgba(5,34,52,.09);
}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:#dfe5ea;font-family:Inter,system-ui,-apple-system,sans-serif;color:var(--text)}button,a{font:inherit}.app-shell{width:100%;max-width:1180px;min-height:100vh;margin:auto;background:var(--bg);padding-bottom:84px}.topbar{height:68px;position:sticky;top:0;z-index:20;display:grid;grid-template-columns:52px 1fr 52px;align-items:center;padding:0 14px;background:rgba(5,34,52,.97);color:white;box-shadow:0 6px 24px rgba(5,34,52,.18)}.brand-mark{background:none;border:0;color:white;display:flex;flex-direction:column;align-items:center;cursor:pointer}.brand-mark span{font-size:1.28rem;font-weight:900;letter-spacing:.18em}.brand-mark small{font-size:.55rem;letter-spacing:.11em;opacity:.72}.icon-btn{width:42px;height:42px;border:0;border-radius:50%;background:rgba(255,255,255,.1);color:#fff;font-size:1.35rem;cursor:pointer}.hidden{visibility:hidden}.page{padding:22px 18px 34px}.eyebrow{font-size:.72rem;font-weight:900;letter-spacing:.14em;text-transform:uppercase;color:var(--blue)}h1,h2,h3,p{margin-top:0}.home-hero{padding:30px 22px 16px}.home-hero h1{font-size:clamp(2.3rem,8vw,5rem);line-height:.95;letter-spacing:-.055em;margin:6px 0 14px;color:var(--navy);font-weight:900;max-width:760px}.home-hero p{max-width:690px;color:var(--muted);line-height:1.6;font-size:1.02rem}.brand-grid{display:grid;gap:16px;padding:8px 18px 28px}.brand-card{min-height:210px;position:relative;overflow:hidden;border:0;border-radius:28px;padding:24px;text-align:left;color:white;box-shadow:var(--shadow);cursor:pointer;isolation:isolate}.brand-card:before{content:"";position:absolute;inset:0;background:linear-gradient(135deg,rgba(5,34,52,.97),rgba(5,34,52,.58));z-index:-1}.brand-card.ukvelo{background:linear-gradient(120deg,#123f66,#4169e2)}.brand-card.veloeurope{background:linear-gradient(120deg,#064b49,#20a58f)}.brand-card.inertia{background:linear-gradient(120deg,#472341,#e64f7a)}.brand-card .symbol{font-size:2rem;margin-bottom:34px}.brand-card h2{font-size:1.9rem;margin:0 0 4px;font-weight:900}.brand-card p{margin:0;opacity:.86}.brand-card .go{position:absolute;right:22px;bottom:20px;font-size:1.8rem}.section-head{display:flex;align-items:end;justify-content:space-between;gap:14px;margin:4px 0 18px}.section-head h1{font-size:clamp(2rem,7vw,3.6rem);font-weight:900;letter-spacing:-.045em;color:var(--navy);margin:4px 0}.section-head p{color:var(--muted);max-width:650px;line-height:1.5}.event-grid{display:grid;gap:16px}.event-card{border:0;background:#fff;border-radius:22px;overflow:hidden;box-shadow:var(--shadow);cursor:pointer;text-align:left;padding:0}.event-card img{width:100%;height:190px;object-fit:cover;display:block}.event-card-body{padding:18px}.event-card h3{font-size:1.35rem;margin:0 0 8px;color:var(--navy)}.meta{display:flex;flex-wrap:wrap;gap:9px;color:var(--muted);font-size:.88rem}.pill{display:inline-flex;align-items:center;padding:7px 10px;border-radius:999px;background:#eef3ff;color:#3157c8;font-weight:800;font-size:.72rem;text-transform:uppercase}.coming-soon{margin-top:24px;background:#fff;border:1px solid var(--line);border-radius:22px;padding:20px}.coming-soon h3{margin-bottom:12px}.coming-list{display:flex;gap:8px;flex-wrap:wrap}.coming-list span{background:#f0f3f6;border-radius:999px;padding:8px 11px;color:#5d6e79;font-size:.82rem}.event-hero{position:relative;min-height:390px;display:flex;align-items:flex-end;color:white;overflow:hidden}.event-hero img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.event-hero:after{content:"";position:absolute;inset:0;background:linear-gradient(to top,rgba(5,34,52,.97) 5%,rgba(5,34,52,.48) 62%,rgba(5,34,52,.15))}.event-hero-content{position:relative;z-index:1;padding:28px 20px;width:100%}.event-hero h1{font-size:clamp(2.4rem,10vw,5.2rem);line-height:.94;letter-spacing:-.05em;font-weight:900;margin:8px 0 14px}.event-hero .hero-meta{display:grid;gap:7px;font-weight:800}.quick-actions{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin:-1px 0 0;padding:15px 18px;background:var(--navy)}.quick-actions button,.quick-actions a{display:flex;align-items:center;justify-content:center;min-height:48px;border:0;border-radius:13px;background:#fff;color:var(--navy);text-decoration:none;font-weight:850;cursor:pointer}.quick-actions .primary{background:var(--blue);color:white}.info-strip{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-bottom:18px}.info-tile{background:#fff;border-radius:17px;padding:15px;box-shadow:0 8px 24px rgba(5,34,52,.06)}.info-tile small{display:block;color:var(--muted);font-size:.65rem;font-weight:900;letter-spacing:.08em;text-transform:uppercase;margin-bottom:5px}.info-tile strong{color:var(--navy)}.content-card{background:#fff;border-radius:22px;padding:20px;box-shadow:var(--shadow);margin-bottom:16px}.content-card h2{color:var(--navy);font-size:1.35rem}.content-card p{color:#536776;line-height:1.65}.event-tabs{position:sticky;top:68px;z-index:12;display:flex;overflow:auto;gap:6px;padding:10px 12px;background:rgba(244,247,251,.95);backdrop-filter:blur(8px);border-bottom:1px solid var(--line)}.event-tabs button{white-space:nowrap;border:0;border-radius:999px;background:#e8edf2;padding:9px 13px;color:#51616c;font-size:.8rem;font-weight:800;cursor:pointer}.event-tabs button.active{background:var(--navy);color:#fff}.route-card{background:#fff;border-radius:22px;padding:18px;margin-bottom:16px;box-shadow:var(--shadow)}.route-head{display:flex;justify-content:space-between;gap:12px;align-items:start}.route-head h3{margin:0;color:var(--navy)}.route-stats{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.route-stats span{background:#edf2ff;color:#3157c8;padding:8px 10px;border-radius:10px;font-size:.8rem;font-weight:800}.route-actions{display:flex;gap:8px;margin-bottom:14px}.route-actions a{flex:1;text-align:center;text-decoration:none;padding:10px;border-radius:10px;background:var(--navy);color:#fff;font-size:.8rem;font-weight:850}.route-map{width:100%;height:420px;border:0;border-radius:14px;background:#eef2f5}.accordion{border:1px solid var(--line);border-radius:16px;margin-bottom:10px;overflow:hidden;background:#fff}.accordion button{width:100%;border:0;background:#fff;color:var(--navy);text-align:left;padding:16px 18px;font-weight:900;display:flex;justify-content:space-between;cursor:pointer}.accordion-content{display:none;padding:0 18px 18px;color:#586d7b;line-height:1.6}.accordion.open .accordion-content{display:block}.location-buttons{display:grid;gap:10px}.location-buttons a{padding:14px 16px;border-radius:13px;text-decoration:none;text-align:center;font-weight:850;background:var(--blue);color:#fff}.location-buttons a.secondary{background:var(--navy)}.bottom-nav{position:fixed;bottom:0;left:50%;transform:translateX(-50%);z-index:25;width:min(100%,1180px);height:72px;display:grid;grid-template-columns:repeat(4,1fr);padding-bottom:env(safe-area-inset-bottom);background:#fff;border-top:1px solid #dde4ea;box-shadow:0 -8px 26px rgba(5,34,52,.07)}.bottom-nav button{border:0;background:none;color:#71808b;font-size:.66rem;font-weight:800;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;cursor:pointer}.bottom-nav button span{font-size:1.2rem}.bottom-nav button.active{color:var(--blue)}.menu-dialog{width:min(92vw,420px);border:0;border-radius:24px;padding:12px;box-shadow:0 22px 70px rgba(0,0,0,.25)}.menu-dialog::backdrop{background:rgba(5,34,52,.55)}.menu-head{display:flex;align-items:center;justify-content:space-between;padding:8px 10px 14px}.menu-head strong{font-size:1.2rem;letter-spacing:.16em}.menu-head button{border:0;background:#edf1f4;border-radius:50%;width:38px;height:38px;font-size:1.5rem}.menu-dialog>button:not(#closeMenu){width:100%;border:0;border-radius:14px;background:#f3f6f8;text-align:left;padding:15px;margin:4px 0;font-weight:800;color:var(--navy)}
@media(min-width:720px){.brand-grid,.event-grid{grid-template-columns:repeat(3,1fr)}.brand-card{min-height:285px}.event-card img{height:220px}.quick-actions{grid-template-columns:repeat(4,1fr)}.info-strip{grid-template-columns:repeat(4,1fr)}.page{padding-left:32px;padding-right:32px}.home-hero{padding-left:32px}.event-hero-content{padding:44px 34px}.location-buttons{grid-template-columns:1fr 1fr}}
@media(min-width:1000px){.bottom-nav{height:76px}.event-grid{grid-template-columns:repeat(3,1fr)}.route-map{height:520px}}

/* ===== 2026 HOME SCREEN REDESIGN ===== */
:root{
  --europe:#0866fc;
  --inertia:#eb296b;
  --clothing:#dbf901;
  --velo-magenta:#c01d85;
  --deep:#041b2a;
}
.velo-o{color:var(--velo-magenta)}
.velo-word{letter-spacing:.04em!important}

/* The home page is intentionally cinematic; inner event pages retain the clean app layout. */
.home-splash{
  min-height:calc(100vh - 140px);
  padding:26px 18px 34px;
  color:#fff;
  background:
    linear-gradient(to bottom,rgba(4,27,42,.12),rgba(4,27,42,.86) 42%,#041b2a 76%),
    url('../assets/img/tours/1500x675_nf.jpg') center 18%/cover no-repeat,
    #041b2a;
}
.home-title{text-align:center;padding:22px 8px 26px}
.home-title .big-velo{display:block;font-size:clamp(3.8rem,18vw,7rem);font-weight:900;line-height:.82;letter-spacing:-.07em}
.home-title .sub{display:block;margin-top:15px;font-size:.84rem;font-weight:700;letter-spacing:.28em}
.home-title .motto{display:flex;align-items:center;justify-content:center;gap:14px;margin-top:24px;font-size:.76rem;font-weight:700;letter-spacing:.27em;white-space:nowrap}
.home-title .motto:before,.home-title .motto:after{content:"";width:54px;height:2px;background:rgba(255,255,255,.85)}

.home-brand-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;max-width:940px;margin:0 auto}
.home-brand-card{
  position:relative;min-height:245px;border:1px solid rgba(255,255,255,.15);border-radius:24px;overflow:hidden;
  padding:22px 16px 18px;text-align:center;color:#fff;cursor:pointer;box-shadow:0 14px 38px rgba(0,0,0,.19);
  display:flex;flex-direction:column;align-items:center;justify-content:flex-start;
}
.home-brand-card:after{content:"";position:absolute;inset:0;z-index:0;background:linear-gradient(to bottom,rgba(0,0,0,.02),rgba(0,0,0,.24))}
.home-brand-card>*{position:relative;z-index:1}
.home-brand-card.ukvelo{background:linear-gradient(145deg,#0d4169,#052234)}
.home-brand-card.veloeurope{background:linear-gradient(145deg,#2381ff,var(--europe))}
.home-brand-card.inertia{background:linear-gradient(145deg,#ff4b85,var(--inertia))}
.home-brand-card.clothing{background:linear-gradient(145deg,#edff38,var(--clothing));color:#122226}
.home-brand-card.clothing:after{background:linear-gradient(to bottom,rgba(255,255,255,.08),rgba(33,48,0,.18))}
.home-brand-card .home-icon{width:70px;height:70px;margin:0 auto 15px;display:grid;place-items:center}
.home-brand-card .home-icon svg{width:100%;height:100%;stroke:currentColor;fill:none;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.home-brand-card h2{margin:0 0 8px;font-size:clamp(1.25rem,5vw,2rem);font-weight:900;line-height:1.02;letter-spacing:-.03em}
.home-brand-card p{max-width:220px;margin:0 auto;font-size:.72rem;line-height:1.5;letter-spacing:.16em;text-transform:uppercase;opacity:.9}
.home-brand-card .circle-arrow{margin-top:auto;width:48px;height:48px;border:2px solid currentColor;border-radius:50%;display:grid;place-items:center;font-size:1.55rem}
.home-brand-card.clothing .circle-arrow{border-color:#122226}
.home-community{max-width:940px;margin:14px auto 0;padding:22px 18px;text-align:center;border-radius:22px;border:1px solid rgba(255,255,255,.14);background:linear-gradient(120deg,rgba(17,59,84,.95),rgba(6,37,56,.88));box-shadow:0 12px 34px rgba(0,0,0,.14)}
.home-community strong{display:block;font-size:.9rem;letter-spacing:.34em}.home-community span{display:block;margin-top:12px;font-size:.7rem;letter-spacing:.22em;opacity:.85}

.bottom-link{border:0;background:none;color:#71808b;font-size:.66rem;font-weight:800;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;text-decoration:none}.bottom-link span{font-size:1.2rem}
.menu-shop{display:block;width:100%;border-radius:14px;background:var(--clothing);color:#102536;text-decoration:none;text-align:left;padding:15px;margin:4px 0;font-weight:900}

@media(max-width:520px){
  .home-splash{padding-left:12px;padding-right:12px}
  .home-title{padding-top:14px}
  .home-title .motto{font-size:.62rem;gap:8px;letter-spacing:.2em}.home-title .motto:before,.home-title .motto:after{width:28px}
  .home-brand-grid{gap:9px}
  .home-brand-card{min-height:220px;padding:18px 10px 14px;border-radius:20px}
  .home-brand-card .home-icon{width:58px;height:58px;margin-bottom:12px}
  .home-brand-card p{font-size:.61rem;letter-spacing:.11em}
  .home-brand-card .circle-arrow{width:42px;height:42px;font-size:1.35rem}
}
@media(min-width:800px){
  .home-splash{padding-left:32px;padding-right:32px}
  .home-brand-card{min-height:310px;padding-top:34px}
  .home-brand-card .home-icon{width:84px;height:84px}
}


/* ===== V3: MATCH APPROVED HOME MOCKUP ===== */
body.home-mode{background:#041b2a}
body.home-mode .app-shell{max-width:100%;background:#041b2a;padding-bottom:84px}
body.home-mode .topbar{display:none}
body.home-mode .bottom-nav{background:#041b2a;border-top:1px solid rgba(255,255,255,.22);box-shadow:none}
body.home-mode .bottom-nav button,body.home-mode .bottom-link{color:#fff}
body.home-mode .bottom-nav button.active{color:#fff;position:relative}
body.home-mode .bottom-nav button.active:after{content:"";position:absolute;bottom:5px;width:42px;height:3px;border-radius:999px;background:#0866fc}
body:not(.home-mode) .topbar{display:grid}

.home-splash{min-height:calc(100vh - 72px);padding:0 18px 28px;background:
 linear-gradient(to bottom,rgba(4,27,42,.10) 0%,rgba(4,27,42,.26) 22%,rgba(4,27,42,.88) 58%,#041b2a 82%),
 url('/assets/img/tours/1500x675_nf.jpg') center top/cover no-repeat,#041b2a}
.home-title{padding:58px 8px 28px;text-shadow:0 3px 16px rgba(0,0,0,.35)}
.home-title .big-velo{font-size:clamp(4.7rem,19vw,9rem);line-height:.82;letter-spacing:-.075em}
.home-title .sub{font-size:clamp(.78rem,2.3vw,1.15rem);letter-spacing:.34em}
.home-title .motto{margin-top:28px;font-size:clamp(.66rem,1.8vw,.94rem);letter-spacing:.34em}
.home-title .motto:before,.home-title .motto:after{width:82px}
.home-brand-grid{gap:16px;max-width:980px}
.home-brand-card{min-height:330px;border-radius:28px;padding:30px 18px 22px;border:1px solid rgba(255,255,255,.14);box-shadow:0 18px 42px rgba(0,0,0,.28)}
.home-brand-card.ukvelo{background:linear-gradient(rgba(5,34,52,.54),rgba(5,34,52,.88)),url('/assets/img/tours/1500x675_nf.jpg') center/cover no-repeat,#052234}
.home-brand-card.veloeurope{background:linear-gradient(145deg,#2584ff 0%,#0866fc 58%,#064fc1 100%)}
.home-brand-card.inertia{background:linear-gradient(145deg,#ff4f86 0%,#eb296b 58%,#b41650 100%)}
.home-brand-card.clothing{background:linear-gradient(145deg,#efff48 0%,#dbf901 58%,#b8d000 100%)}
.home-brand-card:after{background:linear-gradient(to bottom,rgba(0,0,0,.01),rgba(0,0,0,.18))}
.home-brand-card .home-icon{width:76px;height:76px;margin-bottom:19px}
.home-brand-card h2{font-size:clamp(1.75rem,5vw,2.55rem);margin-bottom:13px}
.home-brand-card p{font-size:.8rem;line-height:1.55;letter-spacing:.21em;max-width:260px}
.home-brand-card .circle-arrow{width:56px;height:56px;margin-top:auto;font-size:1.75rem}
.home-community{max-width:980px;margin-top:17px;padding:28px 18px;background:linear-gradient(rgba(7,41,61,.62),rgba(7,41,61,.84)),url('/assets/img/tours/1500x675_nf.jpg') center 75%/cover no-repeat;border-radius:24px}
.home-community strong{font-size:1rem;letter-spacing:.4em}.home-community span{font-size:.78rem;letter-spacing:.3em}
@media(max-width:520px){
 .home-splash{padding:0 10px 20px}.home-title{padding:38px 6px 22px}.home-title .big-velo{font-size:4.6rem}.home-title .sub{font-size:.72rem;letter-spacing:.23em}.home-title .motto{font-size:.59rem;letter-spacing:.21em;gap:8px}.home-title .motto:before,.home-title .motto:after{width:32px}
 .home-brand-grid{gap:10px}.home-brand-card{min-height:245px;border-radius:20px;padding:18px 9px 14px}.home-brand-card .home-icon{width:54px;height:54px;margin-bottom:10px}.home-brand-card h2{font-size:1.45rem}.home-brand-card p{font-size:.57rem;letter-spacing:.12em}.home-brand-card .circle-arrow{width:42px;height:42px;font-size:1.3rem}.home-community{padding:20px 12px}.home-community strong{font-size:.8rem;letter-spacing:.27em}.home-community span{font-size:.58rem;letter-spacing:.18em}
}


/* Event-specific important notice */
.event-notice{margin:0 0 18px;padding:14px 16px;border-radius:14px;background:#fff3cd;color:#5f4500;font-weight:800;border:1px solid #ffe08a;box-shadow:0 8px 22px rgba(0,0,0,.06)}

/* Somerset card alignment fix */
.event-card.somerset-card img{height:175px}
.event-card .event-venue{white-space:nowrap;font-size:.82rem}
@media(min-width:720px){.event-card.somerset-card img{height:205px}}
@media(max-width:420px){.event-card .event-venue{font-size:.76rem}}


/* ===== V5.2 EVENT CARD DATE / LOCATION LAYOUT ===== */
/* Keep event date and location on their own lines on every event listing card. */
.event-card .event-meta,
.event-card .event-date,
.event-card .event-location,
.event-card [class*="date"],
.event-card [class*="location"] {
  display: block;
  width: 100%;
}
.event-card .event-meta {
  white-space: normal;
}
.event-card .event-date {
  margin-bottom: 5px;
}


/* ===== V5.3 STANDARD EVENT CARDS ===== */
.event-card img{height:190px !important;object-fit:cover}
.event-card-meta{display:block;color:var(--muted);font-size:.88rem;line-height:1.45}
.event-card-date,.event-card-location{display:block;width:100%;white-space:normal}
.event-card-date{margin-bottom:5px}
.info-line{display:block;margin-bottom:7px}
.info-line:last-child{margin-bottom:0}
@media(min-width:720px){.event-card img{height:220px !important}}

/* ===== V5.9 FEATURED CLOTHING ===== */
.product-grid{display:grid;gap:18px}.product-card{background:#fff;border-radius:24px;overflow:hidden;box-shadow:var(--shadow)}.product-image{background:#f2f4f6;padding:16px}.product-image img{display:block;width:100%;max-height:460px;object-fit:contain;border-radius:18px}.product-body{padding:20px}.product-type{display:inline-block;font-size:.7rem;font-weight:900;letter-spacing:.13em;text-transform:uppercase;color:#687781;margin-bottom:8px}.product-body h2{font-size:1.55rem;color:var(--navy);margin-bottom:7px}.product-price{display:block;font-size:1.45rem;color:#c01c83;margin-bottom:14px}.product-body p{color:#536776;line-height:1.6}.product-details{padding:13px 0;border-top:1px solid var(--line);color:#667781;font-size:.84rem;line-height:1.55}.product-button{display:flex;justify-content:center;align-items:center;min-height:48px;margin-top:14px;border-radius:13px;background:#dbf901;color:#111;text-decoration:none;font-weight:900}.shop-all{margin-top:22px;padding:24px 20px;border-radius:22px;background:var(--navy);color:#fff;text-align:center}.shop-all strong{font-size:1.25rem}.shop-all p{margin:8px auto 18px;max-width:540px;color:rgba(255,255,255,.78);line-height:1.55}.shop-all a{display:inline-flex;padding:13px 18px;border-radius:999px;background:#dbf901;color:#111;text-decoration:none;font-weight:900}@media(min-width:720px){.product-grid{grid-template-columns:repeat(3,1fr)}.product-image img{height:360px}.product-body{padding:22px}}

/* ===== V5.12 COMPACT HOME CARDS ===== */
/* Keep the 2x2 home grid visible without needing to scroll on typical phones. */
.home-brand-card{
  min-height:220px;
  padding:20px 16px 16px;
}
.home-brand-card .home-icon{
  width:58px;
  height:58px;
  margin-bottom:10px;
}
.home-brand-card h2{
  font-size:clamp(1.45rem,4vw,2rem);
  margin-bottom:7px;
}
.home-brand-card p{
  font-size:.68rem;
  line-height:1.4;
  letter-spacing:.16em;
}
.home-brand-card .circle-arrow{
  width:44px;
  height:44px;
  margin-top:12px;
  font-size:1.35rem;
  flex:0 0 auto;
}
.home-community{
  margin-top:12px;
  padding:18px 14px;
}

@media(max-width:520px){
  .home-brand-card{
    min-height:165px;
    padding:12px 8px 10px;
  }
  .home-brand-card .home-icon{
    width:40px;
    height:40px;
    margin-bottom:5px;
  }
  .home-brand-card h2{
    font-size:1.2rem;
    margin-bottom:4px;
  }
  .home-brand-card p{
    font-size:.49rem;
    line-height:1.28;
    letter-spacing:.08em;
    max-width:180px;
  }
  .home-brand-card .circle-arrow{
    width:34px;
    height:34px;
    margin-top:8px;
    font-size:1.05rem;
  }
  .home-community{
    margin-top:10px;
    padding:13px 10px;
  }
}

@media(min-width:800px){
  .home-brand-card{
    min-height:240px;
    padding-top:22px;
  }
  .home-brand-card .home-icon{
    width:64px;
    height:64px;
  }
}

/* ===== V5.13 HOME TITLE SPACING ===== */
/* Pull RIDE RUN EXPLORE WEAR directly under EVENTS & EXPERIENCES. */
.home-title .motto{margin-top:0 !important}


/* ===== V5.14 MORE MENU BRAND COLOURS ===== */
/* Match the More menu choices to the four brand colours used on the home screen. */
.menu-dialog button[data-menu-nav="home"]{background:#eef2f5;color:#052234}
.menu-dialog button[data-menu-nav="ukvelo"]{background:#052234;color:#fff}
.menu-dialog button[data-menu-nav="veloeurope"]{background:#0866fc;color:#fff}
.menu-dialog button[data-menu-nav="inertia"]{background:#eb296b;color:#fff}
.menu-dialog .menu-shop{background:#dbf901;color:#102536}

/* ===== V5.15 MORE MENU COLOUR FIX ===== */
/* Override the generic dialog button rule, which has higher specificity. */
.menu-dialog > button[data-menu-nav="home"]{background:#eef2f5 !important;color:#052234 !important}
.menu-dialog > button[data-menu-nav="ukvelo"]{background:#052234 !important;color:#fff !important}
.menu-dialog > button[data-menu-nav="veloeurope"]{background:#0866fc !important;color:#fff !important}
.menu-dialog > button[data-menu-nav="inertia"]{background:#eb296b !important;color:#fff !important}
.menu-dialog > a.menu-shop{display:block;width:100%;border:0;border-radius:14px;background:#dbf901 !important;color:#102536 !important;text-align:left;padding:15px;margin:4px 0;font-weight:800;text-decoration:none}

/* ===== V5.16 FIXED HOME VIEWPORT ===== */
/* Keep the home screen inside the visible viewport; inner pages still scroll normally. */
body.home-mode{
  height:100dvh;
  overflow:hidden;
}
body.home-mode .app-shell{
  height:100dvh;
  min-height:100dvh;
  padding-bottom:72px;
  overflow:hidden;
}
body.home-mode #app{
  height:calc(100dvh - 72px);
  overflow:hidden;
}
body.home-mode .home-splash{
  height:100%;
  min-height:0;
  overflow:hidden;
}

/* Slightly tighten vertical spacing on shorter phone screens so every home element remains visible. */
@media (max-width:719px) and (max-height:780px){
  body.home-mode .home-splash{padding-top:0;padding-bottom:8px}
  body.home-mode .home-title{padding:12px 6px 8px}
  body.home-mode .home-title .big-velo{font-size:3.75rem}
  body.home-mode .home-title .sub{font-size:.64rem}
  body.home-mode .home-title .motto{font-size:.52rem;line-height:1.1}
  body.home-mode .home-brand-grid{gap:7px}
  body.home-mode .home-brand-card{min-height:138px;padding:8px 7px 7px}
  body.home-mode .home-brand-card .home-icon{width:32px;height:32px;margin-bottom:3px}
  body.home-mode .home-brand-card h2{font-size:1.05rem;margin-bottom:2px}
  body.home-mode .home-brand-card p{font-size:.44rem;line-height:1.18}
  body.home-mode .home-brand-card .circle-arrow{width:28px;height:28px;margin-top:5px;font-size:.92rem}
  body.home-mode .home-community{margin-top:7px;padding:9px 8px}
  body.home-mode .home-community strong{font-size:.68rem}
  body.home-mode .home-community span{margin-top:5px;font-size:.49rem}
}

/* ===== V5.17 HOME SCREEN FILL ===== */
/* Fill the available home viewport without allowing the home screen to scroll. */
body.home-mode .home-splash{
  display:flex;
  flex-direction:column;
  padding-top:0;
  padding-bottom:10px;
}
body.home-mode .home-title{
  flex:0 0 auto;
  padding-top:18px;
  padding-bottom:12px;
}
body.home-mode .home-brand-grid{
  flex:1 1 auto;
  min-height:0;
  width:100%;
  grid-template-rows:repeat(2,minmax(0,1fr));
}
body.home-mode .home-brand-card{
  min-height:0 !important;
  height:100%;
  justify-content:center;
}
body.home-mode .home-brand-card .circle-arrow{
  margin-top:8px;
}
body.home-mode .home-community{
  flex:0 0 auto;
  width:100%;
  margin-top:10px;
  padding-top:14px;
  padding-bottom:14px;
}
@media(max-width:719px){
  body.home-mode .home-title .big-velo{font-size:clamp(3.9rem,18vw,5.25rem)}
  body.home-mode .home-title .sub{margin-top:9px}
  body.home-mode .home-brand-card{padding:12px 9px 10px}
  body.home-mode .home-brand-card .home-icon{width:42px;height:42px;margin-bottom:5px}
  body.home-mode .home-brand-card h2{font-size:clamp(1.08rem,5vw,1.45rem);margin-bottom:4px}
  body.home-mode .home-brand-card p{font-size:.5rem;line-height:1.25}
  body.home-mode .home-brand-card .circle-arrow{width:34px;height:34px;font-size:1.05rem}
}
@media(max-width:719px) and (max-height:700px){
  body.home-mode .home-title{padding-top:8px;padding-bottom:6px}
  body.home-mode .home-title .big-velo{font-size:3.35rem}
  body.home-mode .home-title .sub{margin-top:5px;font-size:.58rem}
  body.home-mode .home-title .motto{font-size:.46rem}
  body.home-mode .home-brand-grid{gap:6px}
  body.home-mode .home-brand-card{padding:6px}
  body.home-mode .home-brand-card .home-icon{width:28px;height:28px;margin-bottom:2px}
  body.home-mode .home-brand-card h2{font-size:.96rem;margin-bottom:1px}
  body.home-mode .home-brand-card p{font-size:.4rem;line-height:1.1}
  body.home-mode .home-brand-card .circle-arrow{width:25px;height:25px;margin-top:3px;font-size:.82rem}
  body.home-mode .home-community{margin-top:5px;padding:7px 8px}
  body.home-mode .home-community strong{font-size:.62rem}
  body.home-mode .home-community span{margin-top:3px;font-size:.44rem}
}


/* ===== V5.18 HOME ICON REFINEMENT ===== */
/* Larger, bolder brand-card icons while preserving the fixed no-scroll home layout. */
body.home-mode .home-brand-card .home-icon{
  width:58px;
  height:58px;
  margin-bottom:5px;
}
body.home-mode .home-brand-card .home-icon svg{
  stroke-width:3.4;
}
body.home-mode .home-brand-card.veloeurope .home-icon svg{
  color:#fff;
  stroke:#fff;
}

/* Bottom navigation uses the same bike and T-shirt outline icons as the home cards. */
.bottom-nav .nav-icon{
  width:24px;
  height:24px;
  display:block;
  font-size:0;
}
.bottom-nav .nav-icon svg{
  display:block;
  width:100%;
  height:100%;
  fill:none;
  stroke:currentColor;
  stroke-width:3;
  stroke-linecap:round;
  stroke-linejoin:round;
}

@media(max-width:719px) and (max-height:780px){
  body.home-mode .home-brand-card .home-icon{width:48px;height:48px;margin-bottom:3px}
}
@media(max-width:719px) and (max-height:700px){
  body.home-mode .home-brand-card .home-icon{width:38px;height:38px;margin-bottom:1px}
}


/* ===== V5.21 CLOTHING BRAND UPDATE ===== */
.clothing-head{align-items:flex-start}
.all-clothing-button{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;min-height:38px;padding:9px 13px;border-radius:999px;background:#dbf901;color:#102536;text-decoration:none;font-size:.72rem;font-weight:900;letter-spacing:.06em;white-space:nowrap;box-shadow:0 6px 16px rgba(5,34,52,.08)}
@media(max-width:520px){
  .clothing-head{display:grid;grid-template-columns:1fr auto;align-items:start;gap:10px}
  .clothing-head p{grid-column:1 / -1}
  .all-clothing-button{margin-top:2px;padding:8px 11px;font-size:.66rem}
}


/* ===== V5.22 SIMPLIFIED CLOTHING CARDS ===== */
.clothing-page .product-grid{gap:14px}
.product-card-simple .product-image{padding:10px}
.product-card-simple .product-image img{width:100%;max-height:none;aspect-ratio:4/5;object-fit:contain}
.product-card-simple .product-body{padding:14px 16px 16px;text-align:center}
.product-card-simple .product-body h2{margin:0 0 5px;font-size:1.12rem;line-height:1.18;text-transform:uppercase}
.product-card-simple .product-price{margin:0 0 11px;font-size:1.12rem}
.product-card-simple .product-button{min-height:42px;margin-top:0;font-size:.82rem}
@media(min-width:720px){
  .product-card-simple .product-image img{height:330px}
  .product-card-simple .product-body{padding:16px 18px 18px}
}


/* ===== V5.23 CLOTHING SHOP PROMPTS ===== */
.clothing-shop-prompt{
  margin:0 0 18px;
  padding:14px 16px;
  border-radius:16px;
  background:#fff;
  text-align:center;
}
.clothing-shop-prompt p{
  margin:0 0 10px;
  color:var(--muted);
  font-size:.9rem;
  line-height:1.45;
}
.clothing-page .product-grid + .clothing-shop-prompt{margin:20px 0 4px}
.clothing-shop-prompt .all-clothing-button{display:inline-flex}

/* V5.42: clearer global back control */
.topbar{grid-template-columns:88px 1fr 52px}
.back-btn{
  width:82px;
  height:42px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  padding:0 11px;
  font-size:1rem;
}
.back-btn strong{
  font-size:.68rem;
  letter-spacing:.08em;
  font-weight:900;
}
@media(max-width:420px){
  .topbar{grid-template-columns:74px 1fr 46px;padding:0 8px}
  .back-btn{width:70px;padding:0 8px;gap:5px}
  .back-btn strong{font-size:.62rem}
}


/* V5.42 — separate individual and private group Velo Europe experiences */
.experience-group{margin-bottom:32px}
.experience-divider{
  margin:6px 0 16px;
  padding:15px 16px;
  border-radius:18px;
  background:#fff;
  border:1px solid var(--line);
  box-shadow:0 8px 24px rgba(5,34,52,.05);
}
.experience-divider div{display:grid;gap:4px}
.experience-divider span{
  color:var(--navy);
  font-size:.82rem;
  line-height:1;
  font-weight:950;
  letter-spacing:.09em;
}
.experience-divider small{
  color:var(--muted);
  font-size:.78rem;
  line-height:1.4;
  font-weight:650;
}
.group-divider{
  border-left:5px solid #0866fc;
  background:linear-gradient(135deg,#f7faff,#eef5ff);
}
.individual-divider{border-left:5px solid #39b56b}
.group-pill{background:#0866fc;color:#fff}
.group-experience-note{
  display:grid;
  gap:5px;
  margin-bottom:18px;
  padding:16px 17px;
  border-radius:18px;
  background:#eef5ff;
  border-left:5px solid #0866fc;
}
.group-experience-note strong{
  color:var(--navy);
  font-size:.78rem;
  letter-spacing:.08em;
}
.group-experience-note span{
  color:#536776;
  line-height:1.45;
  font-size:.88rem;
  font-weight:650;
}


/* V5.42 — UK Velo event timings: important information */
.important-timings{
  border:2px solid var(--navy);
}
.important-timings > button{
  font-weight:950 !important;
  text-transform:uppercase;
  letter-spacing:.045em;
}
.important-timing-line{
  font-weight:900 !important;
  text-transform:uppercase;
  color:var(--navy);
}

/* ===== V5.44 NAVIGATION / BACK BUTTON / EVENT DISTANCES ===== */

/* Keep a clear BACK button on every inner page. */
.back-btn{
  width:82px !important;
  min-width:82px;
  height:42px !important;
  border-radius:999px !important;
  display:flex !important;
  align-items:center;
  justify-content:center;
  gap:7px;
  padding:0 11px !important;
  background:rgba(255,255,255,.12) !important;
  color:#fff !important;
}
.back-btn.hidden{
  visibility:hidden !important;
}
.back-btn .back-arrow{
  font-size:1.2rem;
  line-height:1;
}
.back-btn strong{
  display:block;
  color:#fff;
  font-size:.68rem;
  letter-spacing:.08em;
  font-weight:900;
}

/* Events bottom-nav icon: cycling + running together. */
.bottom-nav .events-combo-icon{
  display:block;
  font-size:1.15rem;
  line-height:1;
  letter-spacing:-.16em;
  padding-right:.12em;
}

/* Distances shown directly on UK Velo and Inertia event cards. */
.event-card-distances{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  margin:0 0 11px;
}
.event-card-distances span{
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:5px 9px;
  border-radius:999px;
  background:#eef3ff;
  color:#3157c8;
  font-size:.74rem;
  font-weight:900;
  line-height:1;
}

/* Inertia remains the approved pink throughout event cards. */
.event-card.brand-inertia{
  border:1px solid rgba(235,41,107,.20);
}
.event-card.brand-inertia .pill{
  background:#eb296b;
  color:#fff;
}
.event-card.brand-inertia .event-card-distances span{
  background:rgba(235,41,107,.11);
  color:#d3195b;
  border:1px solid rgba(235,41,107,.20);
}

/* UK Velo keeps its blue/navy identity. */
.event-card.brand-ukvelo .pill{
  background:#052234;
  color:#fff;
}
.event-card.brand-ukvelo .event-card-distances span{
  background:#eef3ff;
  color:#3157c8;
}

@media(max-width:420px){
  .back-btn{
    width:70px !important;
    min-width:70px;
    padding:0 8px !important;
    gap:5px;
  }
  .back-btn strong{font-size:.62rem}
  .event-card-distances{gap:5px}
  .event-card-distances span{font-size:.69rem;padding:5px 8px}
}

/* ===== V5.45 BRAND HEADERS + EVENTS ICON ===== */

.brand-section-head{
  align-items:flex-start;
}
.brand-heading-copy{
  width:100%;
}
.brand-title-row{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:14px;
  flex-wrap:wrap;
  margin-top:3px;
}
.brand-title-row h1{
  margin:0 !important;
}
.inline-back-btn{
  flex:0 0 auto;
  min-height:38px;
  padding:8px 14px;
  border:0;
  border-radius:999px;
  background:#052234;
  color:#fff;
  font-size:.70rem;
  font-weight:900;
  letter-spacing:.08em;
  cursor:pointer;
  box-shadow:0 7px 18px rgba(5,34,52,.14);
}
.inline-back-btn:hover,
.inline-back-btn:focus-visible{
  transform:translateY(-1px);
}

/* Keep the company back button visually tied to each brand. */
.brand-section-head .eyebrow{
  margin-bottom:5px;
}
.brand-section-head p{
  margin-top:10px;
}

/* Two matching line icons, side by side, instead of coloured emoji. */
.bottom-nav .events-dual-icon{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:2px;
  width:38px;
  height:23px;
  color:currentColor;
}
.bottom-nav .events-dual-icon svg{
  width:20px;
  height:20px;
  fill:none;
  stroke:currentColor;
  stroke-width:3;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.bottom-nav .events-dual-icon .events-runner{
  width:18px;
  height:18px;
}

/* On the dark app title/header treatment, icons remain white where inherited. */
.home-splash .events-dual-icon,
.topbar .events-dual-icon{
  color:#fff;
}

@media(max-width:480px){
  .brand-title-row{
    gap:9px;
  }
  .inline-back-btn{
    min-height:34px;
    padding:7px 11px;
    font-size:.64rem;
  }
}

