/* Scoped map and elevation styles reused from the runners app v14. */
.course-map-page{--ink:#252326;--muted:#767277;--paper:#f8f7f3;--line:#e7e4dd;--gold:#a98932;--pink:#cf206e;--dark:#211e20;--white:#fff;--radius:18px;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}
.course-map-page svg.icon{width:21px;height:21px;flex-shrink:0;vertical-align:middle;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.course-map-page .hero .button{margin-top:10px}
.course-map-page .button{display:inline-flex;justify-content:center;align-items:center;gap:8px;background:var(--dark);color:#fff;border:1px solid var(--dark);border-radius:9px;min-height:43px;padding:11px 17px;font-size:12px;font-weight:650;line-height:1.35}
.course-map-page .button svg{width:17px;height:17px}
.course-map-page .button:hover{filter:brightness(1.12)}
.course-map-page .button.pink{background:var(--pink);border-color:var(--pink)}
.course-map-page .button.white{background:#fff;color:var(--ink);border-color:var(--line)}
.course-map-page .button.soft{background:#f1ede5;color:#776022;border-color:#f1ede5}
.course-map-page .button.danger{background:#b92f3e;border-color:#b92f3e}
.course-map-page .button.small{min-height:35px;padding:8px 12px;font-size:11px}
.course-map-page .button-row{display:flex;flex-wrap:wrap;gap:10px}
.course-map-page .panel{background:white;border:1px solid var(--line);border-radius:var(--radius);padding:23px}
.course-map-page .panel h2{font-size:18px;margin:0 0 5px;letter-spacing:-.4px}
.course-map-page .panel .subtext{font-size:12px;color:var(--muted);line-height:1.65}
.course-map-page .badge{font-size:10px;border-radius:5px;padding:5px 7px;display:inline-flex;align-items:center;gap:5px;font-weight:650;line-height:1.2}
.course-map-page .badge.race{color:var(--race);background:color-mix(in srgb,var(--race) 10%,white)}
.course-map-page .badge.neutral{background:#f1efe9;color:#736d65}
.course-map-page .stats-row{display:grid;grid-template-columns:repeat(3,1fr);margin:22px 0;gap:10px}
.course-map-page .stat small{display:block;font-size:10px;color:var(--muted);margin-bottom:8px}
.course-map-page .stat strong{font-size:24px;font-weight:750;letter-spacing:-.8px}
.course-map-page .stat strong em{font-size:11px;font-weight:500;font-style:normal;margin-left:3px}
.course-map-page .race-hero{position:relative;border:1px solid var(--line);border-radius:16px;background:#fff;padding:25px 28px;border-top:4px solid var(--race)}
.course-map-page .race-hero-top{display:flex;justify-content:space-between;gap:20px;align-items:center}
.course-map-page .race-hero h2{font-size:30px;margin:7px 0;letter-spacing:-1px}
.course-map-page .race-hero .stats-row{grid-template-columns:repeat(4,1fr);margin:27px 0 0}
.course-map-page .race-hero .stat{border-left:1px solid var(--line);padding-left:20px}
.course-map-page .race-hero .stat:first-child{border:0;padding-left:0}
.course-map-page .elevation .profile-fill{fill:var(--race);opacity:.15}
.course-map-page .elevation .profile-line{stroke:var(--race);stroke-width:2;fill:none}
.course-map-page .body-copy{font-size:12px;line-height:1.8;color:#69646b}
.course-map-page .walk-card .button{width:100%;margin-top:12px}
.course-map-page .map-image{width:100%;display:block;border-radius:12px;margin-top:16px}
.course-map-page .map-container{height:410px;border-radius:12px;margin:15px 0;z-index:1;background:#eeeae1;position:relative}
.course-map-page .map-container .map-placeholder{padding:35px;color:var(--muted);font-size:12px}
.course-map-page .leaflet-container{font:12px system-ui}
.course-map-page .map-number{background:var(--race);color:#fff;border:2px solid white;border-radius:50%;display:flex;justify-content:center;align-items:center;font-weight:750;font-size:11px;box-shadow:0 1px 5px #0004}
.course-map-page .guide-card .button{width:100%}
.course-map-page .location-result{padding:15px;border:1px solid var(--line);border-radius:10px;margin:15px 0;word-break:break-word;font-size:12px}
.course-map-page .location-result p{line-height:1.7}
.course-map-page .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(min-width:1450px){.course-map-page .panel{padding:25px}}
@media(max-width:900px){.course-map-page .race-hero .stat{padding-left:12px}
.course-map-page .stat strong{font-size:22px}}
@media(max-width:650px){.course-map-page .hero .button{font-size:11px;padding:11px 13px}
.course-map-page .panel{padding:20px}
.course-map-page .stats-row{margin:20px 0}
.course-map-page .stat strong{font-size:26px}
.course-map-page .race-hero{padding:20px}
.course-map-page .race-hero h2{font-size:24px}
.course-map-page .race-hero-top{align-items:flex-start}
.course-map-page .race-hero-top>.button{font-size:0;padding:10px;min-height:38px}
.course-map-page .race-hero-top>.button svg{width:18px;height:18px}
.course-map-page .race-hero .stats-row{grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;margin-top:16px}
.course-map-page .race-hero .stat{padding-left:13px}
.course-map-page .race-hero .stat:nth-child(3){border-left:1px solid var(--line);padding-left:7px}
.course-map-page .race-hero .stat small{font-size:9px}
.course-map-page .event-badges .badge{font-size:8px;padding:3px 5px}
.course-map-page .walk-card .button{margin-top:15px}
.course-map-page .guide-card .button{align-self:start;font-size:11px}
.course-map-page .map-container{height:350px}
.course-map-page .button-row .button{font-size:11px}
.course-map-page .body-copy{font-size:11px}}
.course-map-page .hero-actions .button{margin:0}
.course-map-page .map-workspace{scroll-margin-top:20px;min-width:0}
.course-map-page .map-toolbar,.course-map-page .map-secondary{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.course-map-page .map-toolbar .button,.course-map-page .map-secondary .button{font-size:11px;padding:10px 12px}
.course-map-page .map-workspace .map-container{background:#eeeade;touch-action:none}
.course-map-page .map-secondary{margin-top:16px}
.course-map-page .map-state{font-size:12px;line-height:1.6;color:var(--muted);margin:12px 0 0}
.course-map-page .map-state:empty{display:none}
.course-map-page .offline-map-label{font-size:11px;line-height:1.3;white-space:normal;text-align:center;color:#4a493d;font-weight:650;text-shadow:0 1px 2px #fff,0 -1px 2px #fff,1px 0 2px #fff,-1px 0 2px #fff}
.course-map-page .offline-map-label.peak{font-size:9px;font-weight:500;color:#6b695d}
.course-map-page .offline-map-label small{display:block;font-size:8px}
.course-map-page .map-profile{border-top:1px solid var(--line);padding-top:15px}
.course-map-page .map-profile-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:8px}
.course-map-page .map-profile-heading h2{font-size:16px;letter-spacing:-.4px;margin:0}
.course-map-page .map-profile-heading>span{font-size:10px;color:var(--muted)}
.course-map-page #map-elevation{position:relative;padding-left:32px}
.course-map-page .interactive-profile{width:100%;height:135px;display:block;overflow:visible;touch-action:none;cursor:crosshair}
.course-map-page .profile-gridline{stroke:#ccc5b8;stroke-width:.8;stroke-dasharray:4 6;vector-effect:non-scaling-stroke}
.course-map-page .interactive-profile .profile-line{stroke-width:1.6;vector-effect:non-scaling-stroke}
.course-map-page .interactive-profile .profile-fill{fill:var(--race);opacity:.12}
.course-map-page .profile-cursor{stroke:var(--ink);stroke-width:1;stroke-dasharray:4 3;vector-effect:non-scaling-stroke}
.course-map-page #profile-dot{fill:var(--race);stroke:white;stroke-width:2;vector-effect:non-scaling-stroke}
.course-map-page .profile-altitudes{position:absolute;top:8px;bottom:50px;left:0;display:flex;flex-direction:column;justify-content:space-between;font-size:8px;color:var(--muted)}
.course-map-page .profile-axis{display:flex;justify-content:space-between;gap:5px;font-size:9px;color:var(--muted);margin-top:4px}
.course-map-page #profile-range{display:block;width:100%;margin:7px 0 0;accent-color:var(--race);height:22px;cursor:ew-resize}
.course-map-page .profile-readout{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin-top:8px}
.course-map-page .profile-readout>div{min-width:0;background:var(--paper);padding:9px 10px;border-radius:7px}
.course-map-page .profile-readout small{display:block;font-size:9px;color:var(--muted);margin-bottom:5px}
.course-map-page .profile-readout strong{font-size:14px;font-weight:650;white-space:nowrap}
.course-map-page .support-card>.button-row:last-child{margin-top:18px}
.course-map-page .support-card .button{font-size:10px;padding:9px 11px}
.course-map-page .support-rules .body-copy{margin:9px 0 0;padding-left:31px}
body.course-map-expanded{overflow:hidden}
.course-map-page .map-workspace.is-fullscreen{position:fixed;inset:0;z-index:1000;display:flex;flex-direction:column;gap:0;width:100%;height:100vh;height:100dvh;margin:0;border:0;border-radius:0;overflow:auto;background:var(--paper);padding:max(12px,env(safe-area-inset-top)) max(14px,env(safe-area-inset-right)) max(10px,env(safe-area-inset-bottom)) max(14px,env(safe-area-inset-left))}
.course-map-page .map-workspace.is-fullscreen .map-container{height:auto;min-height:120px;flex:1 0 120px;margin:10px 0}
.course-map-page .map-workspace.is-fullscreen .map-profile,.course-map-page .map-workspace.is-fullscreen .map-toolbar,.course-map-page .map-workspace.is-fullscreen .map-secondary{flex-shrink:0}
.course-map-page .map-workspace.is-fullscreen .map-secondary{margin-top:10px}
.course-map-page .map-workspace.is-fullscreen .map-footnotes,.course-map-page .map-workspace.is-fullscreen #map-basemap-label{display:none}
.course-map-page .map-workspace.is-fullscreen .interactive-profile{height:100px}
.course-map-page .map-workspace.is-fullscreen .profile-readout>div{padding:6px 9px}
.course-map-page .map-workspace.is-fullscreen .location-result{margin:8px 0;padding:10px}
.course-map-page .map-workspace.is-fullscreen .section-head{margin-bottom:5px}
.course-map-page .map-workspace:fullscreen{width:100%;height:100%}
@media(max-width:1050px){.course-map-page .support-card>.button-row:last-child{margin-top:12px}}
@media(max-width:650px){.course-map-page .map-workspace{padding:16px}
.course-map-page .map-toolbar .button,.course-map-page .map-secondary .button{font-size:10px;min-height:38px;padding:8px 10px;gap:6px}
.course-map-page .map-toolbar .button .icon,.course-map-page .map-secondary .button .icon{width:15px;height:15px}
.course-map-page .map-toolbar{gap:7px}
.course-map-page .map-profile-heading h2{font-size:15px}
.course-map-page .map-profile-heading>span{font-size:9px}
.course-map-page .interactive-profile{height:120px}
.course-map-page .profile-readout{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.course-map-page .profile-readout small{font-size:8px}
.course-map-page .profile-readout strong{font-size:12px}
.course-map-page .profile-readout>div{padding:7px 8px}
.course-map-page .profile-axis{font-size:8px}
.course-map-page #map-elevation{padding-left:28px}
.course-map-page .map-state{font-size:10px}
.course-map-page .map-workspace.is-fullscreen .profile-readout{grid-template-columns:repeat(5,minmax(0,1fr));gap:4px}
.course-map-page .map-workspace.is-fullscreen .profile-readout>div{padding:6px 4px}
.course-map-page .map-workspace.is-fullscreen .profile-readout small{font-size:7px}
.course-map-page .map-workspace.is-fullscreen .profile-readout strong{font-size:10px}
.course-map-page .map-workspace.is-fullscreen .interactive-profile{height:95px}
.course-map-page .map-workspace.is-fullscreen .map-state{margin-top:8px}}
@media(max-width:360px){.course-map-page .map-toolbar .button,.course-map-page .map-secondary .button{font-size:9px;padding:8px}
.course-map-page .profile-axis span:nth-child(2),.course-map-page .profile-axis span:nth-child(4){display:none}}
.course-map-page .offline-map-label.peak{display:none}
.course-map-page .show-peak-labels .offline-map-label.peak{display:block}
.course-map-page .interactive-profile{display:block;width:100%;height:220px;overflow:visible;fill:none;stroke:none;touch-action:none}
.course-map-page .interactive-profile .profile-line{fill:none!important;stroke:var(--race)!important;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}
.course-map-page .interactive-profile .profile-fill{fill:var(--race);fill-opacity:.13;opacity:1;stroke:none}
.course-map-page .profile-gridline{stroke:#ded8cc;stroke-width:1;stroke-dasharray:4 5}
.course-map-page .profile-axis-label{fill:#827c74;stroke:none;font:10px ui-sans-serif,system-ui,sans-serif}
.course-map-page .profile-aid line{stroke:var(--race);stroke-width:1;stroke-dasharray:2 2}
.course-map-page .profile-aid circle{fill:var(--race);stroke:white;stroke-width:1.5}
.course-map-page .profile-aid text{fill:white;stroke:none;font:700 10px ui-sans-serif,system-ui,sans-serif}
.course-map-page .profile-cursor{stroke:#625c56;stroke-width:1;stroke-dasharray:4 3}
.course-map-page .profile-source-note{font-size:9px;color:var(--muted);line-height:1.5;margin:4px 0 0}
.course-map-page #map-elevation{padding-left:0}
.course-map-page .profile-readout{margin-top:12px}
.course-map-page .map-toolbar{margin-bottom:12px;gap:8px}
.course-map-page .map-toolbar .button{font-size:11px;line-height:1.35;min-height:40px}
.course-map-page .map-toolbar .button small{font-size:9px;margin-left:3px}
.course-map-page .map-workspace .map-container{height:450px;touch-action:none}
.course-map-page .map-profile{margin-top:16px}
.course-map-page .map-navigation-info:empty{display:none}
.course-map-page .map-navigation-info{display:flex;align-items:center;gap:9px;padding:10px 13px;background:#edf4e8;border:1px solid #d5e2c9;border-radius:8px;margin-top:10px;font-size:12px}
.course-map-page .map-navigation-info small{color:#53654b}
.course-map-page .map-navigation-info strong{font-weight:650}
.course-map-page .map-inside-controls{background:white;overflow:hidden}
.course-map-page .map-inside-controls button{display:flex;align-items:center;justify-content:center;gap:3px;border:0;border-bottom:1px solid #ccc;width:38px;height:38px;padding:5px;background:white;color:#29252a;cursor:pointer;line-height:1;font-size:12px}
.course-map-page .map-inside-controls button:last-child{border-bottom:0}
.course-map-page .map-inside-controls button:hover{background:#f3f0e8}
.course-map-page .map-inside-controls button .icon{width:20px;height:20px}
.course-map-page #map-compass-arrow{display:inline-block;color:#cf206e;font-size:20px;line-height:1}
.course-map-page .shared-coordinates{user-select:all;word-break:break-word}
.course-map-page .map-workspace.is-fullscreen .map-container{height:auto;flex:1 0 120px;min-height:120px}
.course-map-page .map-workspace.is-fullscreen .interactive-profile{height:165px}
.course-map-page .map-workspace.is-fullscreen .profile-source-note{display:none}
.course-map-page .map-workspace.is-fullscreen .map-profile{padding-top:10px;margin-top:8px}
.course-map-page .map-workspace.is-fullscreen .map-navigation-info{padding:6px 10px;margin-top:6px}
.course-map-page .map-workspace.is-fullscreen .map-toolbar{margin-bottom:0}
.course-map-page .map-workspace.is-fullscreen .profile-readout{margin-top:4px}
@media(max-width:650px){.course-map-page .map-toolbar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.course-map-page .map-toolbar .button{font-size:10px;padding:9px 7px;min-height:41px;min-width:0}
.course-map-page .map-toolbar .button .icon{width:15px;height:15px}
.course-map-page .map-workspace .map-container{height:370px}
.course-map-page .interactive-profile{height:195px}
.course-map-page .profile-source-note{font-size:8px}
.course-map-page .map-navigation-info{font-size:10px;flex-wrap:wrap;gap:4px 8px}
.course-map-page .map-inside-controls button{width:35px;height:35px}
.course-map-page .map-workspace.is-fullscreen .map-toolbar{display:flex;flex-wrap:wrap;gap:5px}
.course-map-page .map-workspace.is-fullscreen .map-toolbar .button{font-size:9px;min-height:33px;padding:7px}
.course-map-page .map-workspace.is-fullscreen .map-toolbar .button small{display:none}
.course-map-page .map-workspace.is-fullscreen .interactive-profile{height:145px}
.course-map-page .map-workspace.is-fullscreen .map-profile-heading>span{display:none}
.course-map-page .map-workspace.is-fullscreen .map-state{font-size:9px}
.course-map-page .map-workspace.is-fullscreen .map-navigation-info{font-size:9px;padding:5px 8px}
.course-map-page .map-workspace.is-fullscreen .map-container{height:auto;min-height:120px}}
.course-map-page .food-card-complete .body-copy{margin-bottom:0}
.course-map-page .map-toolbar+#location-result:empty{display:none}
@media(max-width:650px){.course-map-page .stations-table .badge{font-size:9px;padding:4px 5px;white-space:normal}
.course-map-page .map-toolbar+#location-result .location-result{margin:0 0 12px}}
.course-map-page{margin-bottom:20px}.course-map-page .race-hero{margin:12px 0 18px}.course-map-page .map-profile h2{margin:0}.course-map-page .map-workspace .leaflet-container{font-family:inherit}.course-map-page #course-map-toast{background:#211e20;color:#fff;border-radius:9px;padding:10px 14px;position:fixed;z-index:1200;bottom:95px;left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100vw - 28px);font-size:13px}

/* Four course facts and three map actions stay on one row, including phones. */
.course-map-page .race-hero .stats-row{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.course-map-page .race-hero .stat{min-width:0}
.course-map-page .race-hero .stat strong{white-space:nowrap}
.course-map-page .map-toolbar,.course-map-page .map-workspace.is-fullscreen .map-toolbar{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;align-items:stretch}
.course-map-page .map-toolbar .button{width:100%;min-width:0;text-decoration:none}
.course-map-page .course-action-label{min-width:0;white-space:normal;overflow-wrap:normal;word-break:normal;text-align:center}
@media(max-width:650px){
 .course-map-page .race-hero{padding:16px 12px}
 .course-map-page .race-hero .stats-row{gap:4px;margin-top:16px}
 .course-map-page .race-hero .stat{padding-left:7px;border-left:1px solid var(--line)}
 .course-map-page .race-hero .stat:first-child{padding-left:0;border:0}
 .course-map-page .race-hero .stat small{font-size:8px;line-height:1.2;min-height:20px;margin-bottom:4px}
 .course-map-page .race-hero .stat strong{font-size:clamp(13px,3.6vw,19px);letter-spacing:-.4px;line-height:1.2}
 .course-map-page .map-workspace{padding:12px}
 .course-map-page .map-toolbar,.course-map-page .map-workspace.is-fullscreen .map-toolbar{gap:5px;grid-template-columns:repeat(3,minmax(0,1fr))}
 .course-map-page .map-toolbar .button,.course-map-page .map-workspace.is-fullscreen .map-toolbar .button{gap:4px;padding:7px 4px;font-size:10px;line-height:1.2;min-height:44px}
 .course-map-page .map-toolbar .button .icon{width:14px;height:14px}
}
@media(max-width:360px){
 .course-map-page .map-toolbar .button,.course-map-page .map-workspace.is-fullscreen .map-toolbar .button{font-size:9px}
 .course-map-page .map-toolbar .button .icon{width:12px;height:12px}
}
.sweep-waypoint{position:relative;overflow:visible;z-index:10!important}
.sweep-waypoint>span{display:block}
.sweep-waypoint>b{position:absolute;left:30px;top:0;width:max-content;max-width:155px;padding:3px 5px;border:1px solid #b9982d;border-radius:3px;background:#fff;color:#231f20;font:600 10px/1.25 sans-serif;text-align:left;white-space:normal;box-shadow:0 1px 3px #0002}
.sweep-waypoints{padding:10px 12px;background:#fff;border:1px solid #ddd;border-radius:6px;margin:8px 0}
.sweep-waypoints h3{font-size:13px;margin:0 0 8px}
.sweep-waypoint-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.sweep-waypoint-list button{display:flex;align-items:center;gap:8px;text-align:left;min-height:34px;padding:6px 8px;background:#fff;color:#231f20;border:1px solid #ddd;border-radius:4px;font-size:11px}
.sweep-waypoint-list button>span{display:grid;place-items:center;flex:0 0 22px;height:22px;border-radius:50%;background:#231f20;color:#fff}
.sweep-waypoint-list button>strong{flex:1;overflow-wrap:anywhere}
.sweep-waypoint-list button>small{white-space:nowrap}
.terrain-races button[aria-pressed="true"]{background:#ce007f;color:#fff;border-color:#ce007f}
@media(max-width:600px){.sweep-waypoint-list{grid-template-columns:1fr}.sweep-waypoint-list button{min-height:40px}.sweep-waypoint>b{max-width:115px;font-size:9px}.sweep-map-page{min-width:0}}
