/* STRYDLY public race network — unified with STRYDLY homepage */
.race-page{background:#070c16;color:#f7f9fd}.race-page [hidden],.race-page .hidden{display:none!important}
.race-hero{position:relative;overflow:hidden;border-bottom:1px solid #a5c5ff1c;background:radial-gradient(ellipse 48% 65% at 73% 50%,#1c4b9c59,transparent),linear-gradient(135deg,#0a1221,#101c32 80%)}
.race-hero:after{content:"";position:absolute;inset:0;pointer-events:none;background-image:linear-gradient(#ffffff05 1px,transparent 1px),linear-gradient(90deg,#ffffff05 1px,transparent 1px);background-size:78px 78px;mask-image:linear-gradient(to bottom,#000c,transparent 80%)}
.race-hero-grid{position:relative;z-index:1;min-height:600px;display:grid;align-items:center;grid-template-columns:1.1fr .9fr;gap:38px;padding-top:75px;padding-bottom:80px}
.race-hero-copy h1{font-size:clamp(53px,6vw,85px);line-height:1.03;letter-spacing:-.068em;font-weight:900;margin:20px 0 23px}
.race-hero-copy h1 em{font-style:normal;color:#79a4ff}.race-hero-copy>p{color:#b8c8e1;font-size:17px;line-height:1.75;max-width:570px}
.race-hero-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:29px}
#status{min-height:16px;margin:13px 0 0;color:#c4d6f7;font-size:13px}
.race-hero-visual{display:flex;justify-content:center;align-items:center;min-height:405px}
.race-globe{position:relative;height:380px;width:380px;display:grid;place-items:center}
.race-globe:before{content:"";position:absolute;inset:16px;border-radius:50%;background:radial-gradient(circle,#18458eb5 0%,#10234a65 39%,#10213a27 68%,transparent 72%);box-shadow:0 0 84px #3274fc19}
.race-globe .orbit{position:absolute;border:1px solid #659dfc49;border-radius:50%;width:310px;height:310px}
.race-globe .orbit.o1{transform:rotate(20deg) scaleX(.7)}.race-globe .orbit.o2{transform:rotate(-25deg) scaleY(.75)}
.race-globe .pulse{position:absolute;inset:60px;border:1px solid #5891ef57;border-radius:50%;animation:race-pulse 4.2s ease-in-out infinite}.race-globe .pulse.p2{animation-delay:1.8s}
.race-pin{position:absolute;display:grid;place-items:center;border:1px solid #add0ff96;border-radius:50%;width:45px;height:45px;font-size:24px;color:#fff;background:linear-gradient(145deg,#448aff,#1943a5);box-shadow:0 8px 25px #143a8c99}
.race-pin.pin1{top:56px;left:90px}.race-pin.pin2{bottom:79px;left:45px}.race-pin.pin3{top:114px;right:33px}
.race-map-chip{position:relative;z-index:1;display:flex;align-items:center;gap:14px;border:1px solid #8caffd72;border-radius:16px;padding:18px;background:#152b4de0;box-shadow:0 25px 50px #0008;backdrop-filter:blur(12px)}
.race-map-chip>span{width:45px;height:45px;display:grid;place-items:center;background:#285fd4;border-radius:12px;font-size:28px}
.race-map-chip strong{display:block;font-size:13px;letter-spacing:.04em}.race-map-chip small{display:block;font-size:12px;color:#b2c9e9;margin-top:4px}
.race-content{background:#0b121f}.race-section-head{margin-bottom:33px}
.race-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px}
.race-card{display:flex;flex-direction:column;gap:13px;min-height:250px;padding:27px;border:1px solid #a0bff428;border-radius:24px;background:linear-gradient(150deg,#1b2e4a,#121d30 78%);transition:transform .2s,border-color .2s,box-shadow .2s}
.race-card:hover{transform:translateY(-4px);border-color:#729efa;box-shadow:0 16px 40px #0005}
.race-card .tag{color:#8fb5ff;font-size:10px;font-weight:900;letter-spacing:.16em}
.race-card h3{font-size:29px;letter-spacing:-.05em;line-height:1.1;margin:20px 0 0}
.race-card p{font-size:13px;color:#aebed7;line-height:1.7}.race-card .arrow{margin-top:auto;margin-left:auto;font-size:26px;color:#8db2ff}
.race-empty{grid-column:1/-1;display:grid;grid-template-columns:1fr auto;align-items:center;gap:23px;padding:38px;border:1px solid #82a5e835;background:linear-gradient(115deg,#182d4f,#101b2d);border-radius:25px;min-height:250px}
.race-empty-mark{width:85px;height:85px;display:grid;place-items:center;font-size:38px;border:1px solid #96beff5e;border-radius:22px;background:#3373e524;box-shadow:0 0 35px #3372e51f}
.race-empty h3{font-size:clamp(25px,3vw,35px);letter-spacing:-.05em;line-height:1.16;margin:10px 0}
.race-empty p{font-size:14px;line-height:1.75;color:#b2c0d8;max-width:550px;margin:0}
.race-empty .eyebrow26{color:#a6c6ff}.loading{grid-column:1/-1;padding:38px;color:#a8bad3;border:1px solid #b4cbff2a;border-radius:23px}
.race-view{background:#080f1b;border-top:1px solid #9ebcff1e}
.race-head{display:flex;justify-content:space-between;align-items:flex-end;gap:22px;margin-bottom:27px}
.race-head h2{font-size:clamp(31px,4vw,54px);line-height:1.11;letter-spacing:-.06em;margin:13px 0}
.race-head p{color:#aebbd3;font-size:14px;margin:0}
.actions{display:flex;align-items:center;gap:17px;flex-wrap:wrap}
.actions a{font-size:13px;font-weight:800;color:#9abaff!important}
.outline{cursor:pointer;border:1px solid #86acfb6b;color:white;background:#1e3351;border-radius:12px;padding:13px 18px;font-weight:760;font-size:13px}
.map-shell{position:relative;overflow:hidden;border-radius:26px;border:1px solid #7599cb62;background:#1a273d}
#map{height:min(69vh,710px);min-height:390px;z-index:1;background:#182032}
.map-info{position:absolute;z-index:600;bottom:16px;left:16px;right:16px;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:17px 20px;border:1px solid #ffffff2d;border-radius:17px;background:#09142aeb;backdrop-filter:blur(14px);pointer-events:none}
.map-info strong{font-size:20px;display:block;margin-top:4px}.map-info #legend{font-size:12px;color:#bdd0e8}
.club-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:14px;margin-top:20px}
.club{display:flex;align-items:center;gap:13px;padding:15px;border:1px solid #a9c5f824;border-radius:18px;background:#14213a}
.club img{height:52px;width:52px;object-fit:cover;border-radius:50%;border:3px solid #407aff}
.club .mark{height:52px;width:52px;display:grid;place-items:center;border-radius:50%;background:#2257bc;font-weight:900;font-size:22px}
.club strong{display:block;font-size:15px}.club small{display:block;font-size:12px;color:#b2c2da;margin-top:3px}
.disclaimer{font-size:12px;color:#93a5c0;max-width:790px;line-height:1.75;margin:22px 0 0}
.cz-marker{display:grid;place-items:center;border-radius:50%;border:3px solid #3981ff;background:#152439;overflow:hidden;position:relative;box-shadow:0 2px 14px #0009}.cz-marker img{width:100%;height:100%;object-fit:cover}
.cz-marker .tint{position:absolute;inset:0;background:#236fff24}.cz-marker svg{position:absolute;width:21px;height:21px;filter:drop-shadow(0 1px 2px #000a)}.leaflet-div-icon{border:0!important;background:transparent!important}
.race-bottom-cta{padding:80px 0;background:linear-gradient(120deg,#13294f,#101a2b);border-top:1px solid #a2bbff2d}
.race-bottom-inner{display:flex;align-items:end;justify-content:space-between;gap:20px}.race-bottom-inner h2{font-size:clamp(31px,4vw,50px);line-height:1.14;letter-spacing:-.055em;margin:17px 0 0}
@keyframes race-pulse{0%,100%{transform:scale(.9);opacity:.25}50%{transform:scale(1.23);opacity:.86}}
@media(max-width:950px){.race-hero-grid{grid-template-columns:1fr;padding-top:62px;gap:0}.race-hero-visual{min-height:290px}.race-globe{transform:scale(.8)}.race-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:670px){.race-hero-grid{padding-top:48px;padding-bottom:53px}.race-hero-copy h1{font-size:50px}.race-hero-copy>p{font-size:15px}.race-hero-visual{display:none}.race-grid{grid-template-columns:1fr}.race-card{min-height:187px}.race-card h3{margin:7px 0}.race-empty{padding:24px;grid-template-columns:1fr}.race-empty-mark{display:none}.race-head{flex-direction:column;align-items:flex-start}.map-info{left:10px;right:10px;bottom:10px;padding:11px}#map{height:65vh;min-height:440px}.map-info #legend{max-width:125px}.race-bottom-inner{align-items:start;flex-direction:column}}
@media(prefers-reduced-motion:reduce){.race-globe .pulse{animation:none!important}}
/* STRYDLY race course + approved activation layer controls */
:root{--route-blue:#2688ff;--route-cyan:#60caff}
.map-toolbar{display:flex;justify-content:space-between;align-items:center;gap:18px;flex-wrap:wrap;padding:14px 0 16px}
.map-toolbar-label{display:flex;flex-direction:column;gap:4px;min-width:210px;max-width:630px}
.map-toolbar-label .eyebrow{color:var(--route-cyan)}
.map-toolbar-label #course-summary{font-size:13px;font-weight:650;color:#c1d2e8;overflow-wrap:anywhere}
.map-toggles{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.map-toggle{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid #3d4b61;background:#101b2a;color:#a8b7cb;border-radius:999px;font-size:12px;font-weight:750;padding:10px 13px;transition:border-color .15s,color .15s,background .15s}
.map-toggle:hover,.map-toggle:focus-visible{border-color:#66b3ff;color:white}
.map-toggle.selected{background:#19304c;border-color:#397bd4;color:#fff}
.map-toggle:focus-visible{outline:2px solid #86caff;outline-offset:3px}
.layer-swatch{display:inline-block;flex:none;width:12px;height:12px;border-radius:50%;background:#94a3b8}
.line-swatch{width:18px;height:4px;border-radius:999px;background:var(--route-blue)}
.route-swatch{background:#fff;border:3px solid var(--route-blue)}
.club-swatch{background:var(--gold)}
.activation-swatch{background:#ffc85c;border:2px solid #fff}
.map-info{pointer-events:none}
.map-info>div{min-width:0}
.map-info .eyebrow{font-size:10px;letter-spacing:1.3px}
.map-info strong{font-size:16px;margin-top:4px;white-space:nowrap}
.course-state{margin:14px 0 0;font-size:12px;line-height:1.5;color:#aec3dc}
.geo-state{margin:9px 0 33px}
.route-point{display:grid;place-items:center;width:31px;height:31px;border-radius:50%;font-size:16px;font-weight:900;color:#fff;background:#183e73;border:2px solid #c3e3ff;box-shadow:0 0 0 3px #0d224b60,0 4px 11px #071022a6}
.route-start{background:#1261c5;border-color:white}
.route-finish{background:#141e31;border-color:white}
.route-checkpoint{width:24px;height:24px;margin:3px;border-color:#72caff;background:#1c4069;font-size:23px}
.leaflet-popup-content-wrapper{background:#101c2e;color:white;border:1px solid #36577e;border-radius:13px}
.leaflet-popup-tip{background:#101c2e}
.leaflet-popup-close-button{color:#fff!important}
@media(max-width:740px){
 .map-toolbar{align-items:flex-start;gap:13px}
 .map-toggles{width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
 .map-toggle{padding:11px 9px;min-width:0}
 .map-info{padding:11px;gap:6px;bottom:8px;left:8px;right:8px}
 .map-info strong{font-size:12px;white-space:normal;line-height:1.25}
 .map-info .eyebrow{font-size:8px}
 #map{height:min(68vh,625px);min-height:430px}
}

/* Course layers and activation details, matching STRYDLY's blue design */
.map-toolbar-label .eyebrow26{font-size:10px;letter-spacing:1.6px;color:#7bb3ff}
.map-toggle.selected{background:#143665;border-color:#428fff}
.club-grid{margin-bottom:28px}
.race-pin-heading{margin-top:34px;margin-bottom:15px}
.race-pin-heading h2{margin:9px 0 0;letter-spacing:-.045em;font-size:clamp(25px,3vw,35px)}
.race-pin-heading>p{color:#a7b9d6;font-size:13px;max-width:325px;line-height:1.6}
.activation-dot{width:38px;height:38px;display:grid;place-items:center;border-radius:50%;background:#ffc663;color:#182139;border:3px solid #1b2d4b;box-shadow:0 0 0 3px #ffc66355,0 6px 16px #0009;font-weight:900;font-size:22px}
.map-locate{position:absolute;z-index:650;right:16px;top:16px;background:#1b4ba0;border:1px solid #8cbcff;color:#fff;border-radius:999px;padding:11px 15px;font-size:13px;font-weight:800;box-shadow:0 3px 17px #0009;cursor:pointer}
.geo-state{color:#b3c3db;font-size:13px;line-height:1.6}
.race-modal{position:fixed;inset:0;z-index:9999;background:#030912dc;display:grid;place-items:center;padding:18px;backdrop-filter:blur(11px)}
.race-modal.hidden{display:none!important}
.race-modal-card{position:relative;background:#111f35;border:1px solid #5f89cc80;border-radius:23px;padding:30px;width:min(100%,480px);box-shadow:0 24px 75px #000a}
.race-modal-card h3{font-size:clamp(22px,4vw,35px);line-height:1.1;margin:16px 0}
.race-modal-card p{color:#bdcde5;font-size:14px;line-height:1.7}
.race-modal-card .btn26{display:inline-flex;margin-top:16px}
.race-modal-close{position:absolute;right:14px;top:11px;color:white;background:transparent;border:0;font-size:30px;cursor:pointer}
@media(max-width:740px){.race-pin-heading{margin-top:28px}.map-locate{right:10px;top:10px}}
