.leaflet-image-layer,.leaflet-layer,.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-pane,.leaflet-pane>canvas,.leaflet-pane>svg,.leaflet-tile,.leaflet-tile-container,.leaflet-zoom-box{position:absolute;left:0;top:0}.leaflet-container{overflow:hidden}.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-tile{-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-user-drag:none}.leaflet-tile::selection{background:transparent}.leaflet-safari .leaflet-tile{image-rendering:-webkit-optimize-contrast}.leaflet-safari .leaflet-tile-container{width:1600px;height:1600px;-webkit-transform-origin:0 0}.leaflet-marker-icon,.leaflet-marker-shadow{display:block}.leaflet-container .leaflet-overlay-pane svg{max-width:none!important;max-height:none!important}.leaflet-container .leaflet-marker-pane img,.leaflet-container .leaflet-shadow-pane img,.leaflet-container .leaflet-tile,.leaflet-container .leaflet-tile-pane img,.leaflet-container img.leaflet-image-layer{max-width:none!important;max-height:none!important;width:auto;padding:0}.leaflet-container img.leaflet-tile{mix-blend-mode:plus-lighter}.leaflet-container.leaflet-touch-zoom{touch-action:pan-x pan-y}.leaflet-container.leaflet-touch-drag{touch-action:none;touch-action:pinch-zoom}.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom{touch-action:none}.leaflet-container{-webkit-tap-highlight-color:transparent}.leaflet-container a{-webkit-tap-highlight-color:rgba(51,181,229,.4)}.leaflet-tile{filter:inherit;visibility:hidden}.leaflet-tile-loaded{visibility:inherit}.leaflet-zoom-box{width:0;height:0;box-sizing:border-box;z-index:800}.leaflet-overlay-pane svg{-moz-user-select:none}.leaflet-pane{z-index:400}.leaflet-tile-pane{z-index:200}.leaflet-overlay-pane{z-index:400}.leaflet-shadow-pane{z-index:500}.leaflet-marker-pane{z-index:600}.leaflet-tooltip-pane{z-index:650}.leaflet-popup-pane{z-index:700}.leaflet-map-pane canvas{z-index:100}.leaflet-map-pane svg{z-index:200}.leaflet-vml-shape{width:1px;height:1px}.lvml{behavior:url(#default#VML);display:inline-block;position:absolute}.leaflet-control{position:relative;z-index:800;pointer-events:visiblePainted;pointer-events:auto}.leaflet-bottom,.leaflet-top{position:absolute;z-index:1000;pointer-events:none}.leaflet-top{top:0}.leaflet-right{right:0}.leaflet-bottom{bottom:0}.leaflet-left{left:0}.leaflet-control{float:left;clear:both}.leaflet-right .leaflet-control{float:right}.leaflet-top .leaflet-control{margin-top:10px}.leaflet-bottom .leaflet-control{margin-bottom:10px}.leaflet-left .leaflet-control{margin-left:10px}.leaflet-right .leaflet-control{margin-right:10px}.leaflet-fade-anim .leaflet-popup{opacity:0;transition:opacity .2s linear}.leaflet-fade-anim .leaflet-map-pane .leaflet-popup{opacity:1}.leaflet-zoom-animated{transform-origin:0 0}svg.leaflet-zoom-animated{will-change:transform}.leaflet-zoom-anim .leaflet-zoom-animated{transition:transform .25s cubic-bezier(0,0,.25,1)}.leaflet-pan-anim .leaflet-tile,.leaflet-zoom-anim .leaflet-tile{transition:none}.leaflet-zoom-anim .leaflet-zoom-hide{visibility:hidden}.leaflet-interactive{cursor:pointer}.leaflet-grab{cursor:-webkit-grab;cursor:grab}.leaflet-crosshair,.leaflet-crosshair .leaflet-interactive{cursor:crosshair}.leaflet-control,.leaflet-popup-pane{cursor:auto}.leaflet-dragging .leaflet-grab,.leaflet-dragging .leaflet-grab .leaflet-interactive,.leaflet-dragging .leaflet-marker-draggable{cursor:move;cursor:-webkit-grabbing;cursor:grabbing}.leaflet-image-layer,.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-pane>svg path,.leaflet-tile-container{pointer-events:none}.leaflet-image-layer.leaflet-interactive,.leaflet-marker-icon.leaflet-interactive,.leaflet-pane>svg path.leaflet-interactive,svg.leaflet-image-layer.leaflet-interactive path{pointer-events:visiblePainted;pointer-events:auto}.leaflet-container{background:#ddd;outline-offset:1px}.leaflet-container a{color:#0078A8}.leaflet-zoom-box{border:2px dotted #38f;background:rgba(255,255,255,.5)}.leaflet-container{font-family:Helvetica Neue,Arial,Helvetica,sans-serif;font-size:12px;font-size:.75rem;line-height:1.5}.leaflet-bar{box-shadow:0 1px 5px rgba(0,0,0,.65);border-radius:4px}.leaflet-bar a{background-color:#fff;border-bottom:1px solid #ccc;width:26px;height:26px;line-height:26px;display:block;text-align:center;text-decoration:none;color:black}.leaflet-bar a,.leaflet-control-layers-toggle{background-position:50% 50%;background-repeat:no-repeat;display:block}.leaflet-bar a:focus,.leaflet-bar a:hover{background-color:#f4f4f4}.leaflet-bar a:first-child{border-top-left-radius:4px;border-top-right-radius:4px}.leaflet-bar a:last-child{border-bottom-left-radius:4px;border-bottom-right-radius:4px;border-bottom:none}.leaflet-bar a.leaflet-disabled{cursor:default;background-color:#f4f4f4;color:#bbb}.leaflet-touch .leaflet-bar a{width:30px;height:30px;line-height:30px}.leaflet-touch .leaflet-bar a:first-child{border-top-left-radius:2px;border-top-right-radius:2px}.leaflet-touch .leaflet-bar a:last-child{border-bottom-left-radius:2px;border-bottom-right-radius:2px}.leaflet-control-zoom-in,.leaflet-control-zoom-out{font:700 18px Lucida Console,Monaco,monospace;text-indent:1px}.leaflet-touch .leaflet-control-zoom-in,.leaflet-touch .leaflet-control-zoom-out{font-size:22px}.leaflet-control-layers{box-shadow:0 1px 5px rgba(0,0,0,.4);background:#fff;border-radius:5px}.leaflet-control-layers-toggle{background-image:url(/_next/static/media/layers.ef6db872.png);width:36px;height:36px}.leaflet-retina .leaflet-control-layers-toggle{background-image:url(/_next/static/media/layers-2x.9859cd12.png);background-size:26px 26px}.leaflet-touch .leaflet-control-layers-toggle{width:44px;height:44px}.leaflet-control-layers .leaflet-control-layers-list,.leaflet-control-layers-expanded .leaflet-control-layers-toggle{display:none}.leaflet-control-layers-expanded .leaflet-control-layers-list{display:block;position:relative}.leaflet-control-layers-expanded{padding:6px 10px 6px 6px;color:#333;background:#fff}.leaflet-control-layers-scrollbar{overflow-y:scroll;overflow-x:hidden;padding-right:5px}.leaflet-control-layers-selector{margin-top:2px;position:relative;top:1px}.leaflet-control-layers label{display:block;font-size:13px;font-size:1.08333em}.leaflet-control-layers-separator{height:0;border-top:1px solid #ddd;margin:5px -10px 5px -6px}.leaflet-default-icon-path{background-image:url(/_next/static/media/marker-icon.d577052a.png)}.leaflet-container .leaflet-control-attribution{background:#fff;background:rgba(255,255,255,.8);margin:0}.leaflet-control-attribution,.leaflet-control-scale-line{padding:0 5px;color:#333;line-height:1.4}.leaflet-control-attribution a{text-decoration:none}.leaflet-control-attribution a:focus,.leaflet-control-attribution a:hover{text-decoration:underline}.leaflet-attribution-flag{display:inline!important;vertical-align:baseline!important;width:1em;height:.6669em}.leaflet-left .leaflet-control-scale{margin-left:5px}.leaflet-bottom .leaflet-control-scale{margin-bottom:5px}.leaflet-control-scale-line{border:2px solid #777;border-top:none;line-height:1.1;padding:2px 5px 1px;white-space:nowrap;box-sizing:border-box;background:rgba(255,255,255,.8);text-shadow:1px 1px #fff}.leaflet-control-scale-line:not(:first-child){border-top:2px solid #777;border-bottom:none;margin-top:-2px}.leaflet-control-scale-line:not(:first-child):not(:last-child){border-bottom:2px solid #777}.leaflet-touch .leaflet-bar,.leaflet-touch .leaflet-control-attribution,.leaflet-touch .leaflet-control-layers{box-shadow:none}.leaflet-touch .leaflet-bar,.leaflet-touch .leaflet-control-layers{border:2px solid rgba(0,0,0,.2);background-clip:padding-box}.leaflet-popup{position:absolute;text-align:center;margin-bottom:20px}.leaflet-popup-content-wrapper{padding:1px;text-align:left;border-radius:12px}.leaflet-popup-content{margin:13px 24px 13px 20px;line-height:1.3;font-size:13px;font-size:1.08333em;min-height:1px}.leaflet-popup-content p{margin:1.3em 0}.leaflet-popup-tip-container{width:40px;height:20px;position:absolute;left:50%;margin-top:-1px;margin-left:-20px;overflow:hidden;pointer-events:none}.leaflet-popup-tip{width:17px;height:17px;padding:1px;margin:-10px auto 0;pointer-events:auto;transform:rotate(45deg)}.leaflet-popup-content-wrapper,.leaflet-popup-tip{background:white;color:#333;box-shadow:0 3px 14px rgba(0,0,0,.4)}.leaflet-container a.leaflet-popup-close-button{position:absolute;top:0;right:0;border:none;text-align:center;width:24px;height:24px;font:16px/24px Tahoma,Verdana,sans-serif;color:#757575;text-decoration:none;background:transparent}.leaflet-container a.leaflet-popup-close-button:focus,.leaflet-container a.leaflet-popup-close-button:hover{color:#585858}.leaflet-popup-scrolled{overflow:auto}.leaflet-oldie .leaflet-popup-content-wrapper{-ms-zoom:1}.leaflet-oldie .leaflet-popup-tip{width:24px;margin:0 auto;-ms-filter:"progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";filter:progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678,M12=0.70710678,M21=-0.70710678,M22=0.70710678)}.leaflet-oldie .leaflet-control-layers,.leaflet-oldie .leaflet-control-zoom,.leaflet-oldie .leaflet-popup-content-wrapper,.leaflet-oldie .leaflet-popup-tip{border:1px solid #999}.leaflet-div-icon{background:#fff;border:1px solid #666}.leaflet-tooltip{position:absolute;padding:6px;background-color:#fff;border:1px solid #fff;border-radius:3px;color:#222;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:none;box-shadow:0 1px 3px rgba(0,0,0,.4)}.leaflet-tooltip.leaflet-interactive{cursor:pointer;pointer-events:auto}.leaflet-tooltip-bottom:before,.leaflet-tooltip-left:before,.leaflet-tooltip-right:before,.leaflet-tooltip-top:before{position:absolute;pointer-events:none;border:6px solid transparent;background:transparent;content:""}.leaflet-tooltip-bottom{margin-top:6px}.leaflet-tooltip-top{margin-top:-6px}.leaflet-tooltip-bottom:before,.leaflet-tooltip-top:before{left:50%;margin-left:-6px}.leaflet-tooltip-top:before{bottom:0;margin-bottom:-12px;border-top-color:#fff}.leaflet-tooltip-bottom:before{top:0;margin-top:-12px;margin-left:-6px;border-bottom-color:#fff}.leaflet-tooltip-left{margin-left:-6px}.leaflet-tooltip-right{margin-left:6px}.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{top:50%;margin-top:-6px}.leaflet-tooltip-left:before{right:0;margin-right:-12px;border-left-color:#fff}.leaflet-tooltip-right:before{left:0;margin-left:-12px;border-right-color:#fff}@media print{.leaflet-control{-webkit-print-color-adjust:exact;print-color-adjust:exact}}:root{color-scheme:light;--ink:#17231f;--muted:#5d6861;--paper:#fbf7ef;--paper-strong:#fffdf8;--line:#dfd7c8;--green:#16443c;--green-soft:#dfe8d8;--rust:#d6512a;--blue:#276070;--gold:#c59843;--shadow:0 24px 80px rgba(28,38,32,0.14)}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:var(--ink);background:var(--paper);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}button,input,select,textarea{font:inherit}a{color:inherit;text-decoration:none}main{min-height:100vh}.hero{min-height:92vh;padding:24px clamp(18px,5vw,72px) 48px;background:linear-gradient(90deg,rgba(251,247,239,.96),rgba(251,247,239,.66) 62%,rgba(251,247,239,.2)),url(/assets/pyrenees-route-placeholder.svg) 100% /cover no-repeat}.nav{align-items:center;display:flex;justify-content:space-between;gap:24px;margin:0 auto;max-width:1180px}.brand,.button,.navLinks,.rideTopline span{align-items:center;display:inline-flex}.brand{gap:10px;color:var(--green);font-weight:800}.brand svg{width:28px;height:28px}.navLinks{gap:22px;color:var(--muted);font-size:.95rem;font-weight:700}.heroGrid{align-items:center;display:grid;grid-gap:clamp(32px,6vw,84px);gap:clamp(32px,6vw,84px);grid-template-columns:minmax(0,1.02fr) minmax(320px,.78fr);margin:0 auto;max-width:1180px;min-height:calc(92vh - 78px);padding:42px 0}.heroCopy{max-width:720px}.eyebrow{color:var(--rust);font-size:.78rem;font-weight:900;letter-spacing:.14em;margin:0 0 14px;text-transform:uppercase}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(3rem,8vw,6.4rem);line-height:.94;margin-bottom:26px;max-width:820px}h1,h2{letter-spacing:0}h2{font-size:clamp(2.1rem,5vw,4.2rem);line-height:1;margin-bottom:16px}h3{font-size:1.1rem;letter-spacing:0;margin-bottom:8px}.lede{color:#39453f;font-size:clamp(1.1rem,2vw,1.38rem);line-height:1.55;margin-bottom:32px;max-width:650px}.heroActions{display:flex;flex-wrap:wrap;gap:12px}.button{border:1px solid transparent;border-radius:8px;cursor:pointer;font-weight:850;gap:8px;justify-content:center;min-height:48px;padding:12px 18px}.button svg{height:19px;width:19px}.primary{background:var(--green);color:#fffdf8}.ghost{background:rgba(255,253,248,.78);border-color:rgba(22,68,60,.18);color:var(--green)}.heroMedia{align-self:stretch;display:flex;min-height:440px}.videoPlate{align-items:center;background:linear-gradient(145deg,rgba(22,68,60,.88),rgba(39,96,112,.8)),url(/assets/pyrenees-route-placeholder.svg) 50% /cover;border:1px solid rgba(255,255,255,.3);border-radius:8px;box-shadow:var(--shadow);color:#fffdf8;display:flex;flex:1 1;flex-direction:column;justify-content:center;min-height:360px;overflow:hidden;padding:32px;position:relative}.videoPlate:after{background:linear-gradient(transparent,rgba(0,0,0,.28));content:"";inset:0;position:absolute}.playMark,.videoPlate p{position:relative;z-index:1}.videoPlate p{font-size:1.05rem;font-weight:850;margin:18px 0 0}.playMark{border-bottom:34px solid transparent;border-left:54px solid #fffdf8;border-top:34px solid transparent;filter:drop-shadow(0 12px 20px rgba(0,0,0,.2));height:0;margin-left:14px;width:0}.statsBand{background:var(--green);color:#fffdf8;display:grid;grid-gap:1px;gap:1px;grid-template-columns:repeat(4,1fr)}.statsBand div{padding:clamp(20px,4vw,34px)}.statsBand span,.statsBand strong{display:block}.statsBand strong{font-size:clamp(1.45rem,3vw,2.2rem);line-height:1;margin-bottom:8px}.statsBand span{color:rgba(255,253,248,.76)}.routeSection,.training{padding:clamp(56px,8vw,104px) clamp(18px,5vw,72px)}.sectionHeading{margin:0 auto 28px;max-width:1180px}.routeVisual{margin:0 auto;max-width:1180px}.routeVisual img{aspect-ratio:16/8.2;border:1px solid var(--line);border-radius:8px;box-shadow:var(--shadow);display:block;object-fit:cover;width:100%}.principles{background:#eef1e6;display:grid;grid-gap:1px;gap:1px;grid-template-columns:repeat(3,1fr);padding:1px}.principles>div{background:var(--paper-strong);min-height:220px;padding:clamp(26px,5vw,54px)}.principles svg{color:var(--rust);height:32px;margin-bottom:24px;width:32px}.principles p,.rideItem p{color:var(--muted);line-height:1.55;margin-bottom:0}.training{background:#f8f4eb}.trackerPage{min-height:100vh;padding-top:clamp(18px,5vw,42px)}.trackHeader{align-items:center;display:flex;gap:16px;justify-content:space-between;margin:0 auto 40px;max-width:1180px}.trackHeader .button{min-height:42px}.liveTracker{background:var(--green);border-radius:8px;box-shadow:var(--shadow);color:#fffdf8;margin:0 auto 22px;max-width:1180px;padding:clamp(18px,4vw,30px)}.liveTrackerTop{align-items:flex-start;display:flex;gap:18px;justify-content:space-between;margin-bottom:18px}.liveTracker h2{color:#fffdf8;font-size:clamp(2rem,7vw,4rem);margin-bottom:0}.compactSwitch{background:rgba(255,253,248,.12);flex:0 0 min(260px,45%);margin-bottom:0}.compactSwitch button.active{background:#fffdf8}.trackerMetrics{display:grid;grid-gap:10px;gap:10px;grid-template-columns:repeat(3,1fr)}.trackerMetrics div{background:rgba(255,253,248,.1);border:1px solid rgba(255,253,248,.16);border-radius:8px;min-height:116px;padding:16px}.trackerMetrics svg{height:22px;margin-bottom:18px;width:22px}.trackerMetrics span,.trackerMetrics strong{display:block}.trackerMetrics strong{font-size:clamp(1.32rem,5vw,2.15rem);line-height:1;margin-bottom:6px}.trackerMetrics span{color:rgba(255,253,248,.72);font-size:.9rem;font-weight:800}.gpsStatus{align-items:center;background:rgba(255,253,248,.1);border-radius:8px;display:flex;gap:10px;margin:12px 0;min-height:48px;padding:11px 13px}.gpsStatus svg{height:18px;width:18px}.gpsStatus span{color:rgba(255,253,248,.78);flex:1 1;font-weight:750}.trackSaveStatus{background:rgba(255,253,248,.12);border-radius:8px;color:#fffdf8;font-weight:850;margin:0 0 12px;padding:10px 12px}.trackerControls{display:flex;gap:10px}.startButton{flex:1 1}.trainingGrid{align-items:flex-start;display:grid;grid-gap:22px;gap:22px;grid-template-columns:minmax(280px,.42fr) minmax(0,.58fr);margin:0 auto;max-width:1180px}.buddyStrip,.logPanel,.rideForm{background:var(--paper-strong);border:1px solid var(--line);border-radius:8px;box-shadow:0 16px 54px rgba(28,38,32,.08)}.rideForm{display:grid;grid-gap:16px;gap:16px;padding:22px}.buddyStrip,.combinedProgress,.formHeader,.rideTopline{align-items:center;display:flex;justify-content:space-between;gap:16px}.formHeader h3{margin-bottom:0}.iconButton{align-items:center;background:#f2eadc;border:1px solid var(--line);border-radius:8px;color:var(--green);cursor:pointer;display:inline-flex;height:40px;justify-content:center;width:40px}.iconButton svg{height:18px;width:18px}.iconButton.compact{height:34px;width:34px}.iconButton.compact svg{height:15px;width:15px}button:disabled{cursor:wait;opacity:.68}.dataNotice{align-items:center;background:#f2eadc;border:1px solid var(--line);border-radius:8px;color:var(--muted);display:flex;font-size:.88rem;font-weight:800;gap:8px;min-height:42px;padding:9px 11px}.dataNotice svg{color:var(--blue);flex:0 0 auto;height:17px;width:17px}.dataNotice.supabase{background:var(--green-soft);color:var(--green)}.dataNotice.local{background:#fff3dd;color:#6d5121}.emptyState,.formError{border-radius:8px;font-size:.9rem;line-height:1.45;margin:0;padding:12px}.formError{background:#fae6df;color:#81351e}.emptyState{background:#f3eadb;color:var(--muted)}label{color:#34413b;display:grid;font-size:.88rem;font-weight:800;grid-gap:7px;gap:7px}input,select,textarea{background:#fffefa;border:1px solid #d9cfbf;border-radius:8px;color:var(--ink);min-height:46px;padding:10px 12px;width:100%}textarea{line-height:1.45;resize:vertical}a:focus-visible,button:focus-visible,input:focus,select:focus,textarea:focus{outline:3px solid rgba(214,81,42,.34);outline-offset:2px}.formRow{display:grid;grid-gap:12px;gap:12px;grid-template-columns:1fr 1fr}.submitButton{border:0;width:100%}.logPanel{padding:22px}.riderSwitch{background:#f2eadc;border-radius:8px;display:grid;grid-template-columns:1fr 1fr;margin-bottom:18px;padding:4px}.riderSwitch button{background:transparent;border:0;border-radius:6px;color:var(--muted);cursor:pointer;font-weight:850;min-height:42px}.riderSwitch button.active{background:var(--paper-strong);box-shadow:0 8px 18px rgba(28,38,32,.1);color:var(--green)}.summaryGrid{display:grid;grid-gap:12px;gap:12px;grid-template-columns:repeat(3,1fr);margin-bottom:14px}.summaryGrid div{background:#f7f0e4;border-radius:8px;min-height:118px;padding:16px}.summaryGrid svg{color:var(--blue);height:22px;margin-bottom:18px;width:22px}.summaryGrid span,.summaryGrid strong{display:block}.summaryGrid strong{font-size:clamp(1.25rem,2.4vw,1.8rem);line-height:1.05;margin-bottom:5px}.summaryGrid span{color:var(--muted);font-size:.88rem;font-weight:750}.combinedProgress{background:var(--green-soft);border-radius:8px;margin-bottom:18px;padding:16px}.combinedProgress p{color:var(--muted);font-size:.85rem;font-weight:850;margin-bottom:4px;text-transform:uppercase}.combinedProgress strong{color:var(--green)}.combinedProgress svg{color:var(--rust);height:26px;flex:0 0 auto;width:26px}.rideList{display:grid;grid-gap:12px;gap:12px}.rideItem{border:1px solid var(--line);border-radius:8px;padding:16px}.rideTopline{margin-bottom:10px}.rideActions{align-items:center;display:flex;gap:10px}.rideTopline span{color:var(--muted);gap:8px;font-size:.92rem;font-weight:750}.rideTopline svg{height:16px;width:16px}.rideTopline strong{color:var(--green);font-size:1.2rem}.rideMetrics{color:#6c5d48;display:flex;flex-wrap:wrap;font-size:.9rem;font-weight:800;gap:8px;margin-bottom:10px}.rideMetrics span{background:#f3eadb;border-radius:999px;padding:5px 9px}.buddyStrip{margin:22px auto 0;max-width:1180px;padding:22px}.buddyStrip h3{margin-bottom:0}.buddyRides{display:grid;grid-gap:10px;gap:10px;grid-template-columns:repeat(3,minmax(132px,1fr))}.buddyRides article{background:#f3eadb;border-radius:8px;min-width:132px;padding:13px 14px}.buddyRides span,.buddyRides strong{display:block}.buddyRides span{color:var(--muted);font-size:.86rem;margin-top:4px}.homeStudio{min-height:100vh;padding:clamp(18px,4vw,36px)}.homeStudioNav{margin-bottom:clamp(20px,4vw,34px)}.homeStudioGrid{align-items:start;display:grid;grid-gap:clamp(18px,3vw,28px);gap:clamp(18px,3vw,28px);grid-template-columns:minmax(300px,420px) minmax(0,1fr);margin:0 auto;max-width:1480px}.homepageEditor,.homepagePreview{background:var(--paper-strong);border:1px solid var(--line);border-radius:8px;box-shadow:0 16px 54px rgba(28,38,32,.08)}.homepageEditor{display:grid;grid-gap:16px;gap:16px;padding:clamp(16px,2.5vw,24px)}.editorHeader h1{font-size:clamp(2rem,4.5vw,3.2rem);line-height:.98;margin-bottom:0}.homepageActions{display:grid;grid-gap:8px;gap:8px;grid-template-columns:1fr}.homepageActions .button{min-height:44px}.homepageForm,.mediaFields{display:grid;grid-gap:13px;gap:13px}.homepagePreview{overflow:hidden}.publishedHome{background:linear-gradient(130deg,rgba(251,247,239,.97),rgba(255,253,248,.88) 46%,rgba(223,232,216,.7)),url(/assets/pyrenees-route-placeholder.svg) 100% /cover no-repeat;min-height:calc(100vh - 112px);padding:clamp(18px,4vw,42px)}.publishedTopline{align-items:center;display:flex;flex-wrap:wrap;gap:10px;justify-content:space-between;margin-bottom:clamp(30px,7vw,72px)}.publishedTopline span{align-items:center;background:rgba(255,253,248,.82);border:1px solid rgba(22,68,60,.14);border-radius:999px;color:var(--green);display:inline-flex;font-size:.88rem;font-weight:850;gap:8px;min-height:36px;padding:7px 12px}.publishedTopline svg{color:var(--rust);height:16px;width:16px}.publishedHero{align-items:center;display:grid;grid-gap:clamp(22px,4vw,44px);gap:clamp(22px,4vw,44px);grid-template-columns:minmax(0,.92fr) minmax(320px,.8fr)}.publishedCopy h1,.publishedCopy h2{font-size:clamp(2.45rem,6vw,5.5rem);line-height:.94;margin-bottom:22px;overflow-wrap:anywhere}.publishedCopy .lede{color:#33423a;max-width:720px}.publishedMedia{display:grid;grid-gap:12px;gap:12px}.photoGrid{display:grid;grid-gap:8px;gap:8px;grid-template-columns:repeat(2,minmax(0,1fr))}.photoGrid img{aspect-ratio:4/3;background:#e7dfcf;border:1px solid rgba(255,253,248,.64);border-radius:8px;box-shadow:0 18px 42px rgba(28,38,32,.18);display:block;object-fit:cover;width:100%}.photoGrid img:first-child{grid-column:1/-1}.mediaPlaceholder,.videoFrame{align-items:center;background:rgba(22,68,60,.86);border:1px solid rgba(255,253,248,.36);border-radius:8px;box-shadow:0 18px 42px rgba(28,38,32,.18);color:#fffdf8;display:flex;justify-content:center;min-height:220px;overflow:hidden}.mediaPlaceholder{flex-direction:column;gap:12px}.mediaPlaceholder svg{height:34px;width:34px}.mediaPlaceholder span{font-weight:850}.videoPlaceholder{min-height:160px}.videoFrame{aspect-ratio:16/9;min-height:0}.videoFrame iframe,.videoFrame video{border:0;display:block;height:100%;width:100%}.videoFrame a{align-items:center;display:inline-flex;font-weight:850;gap:10px;min-height:64px;padding:18px}.videoFrame a svg{height:19px;width:19px}.publishedStory{background:rgba(255,253,248,.88);border:1px solid rgba(22,68,60,.14);border-radius:8px;margin-top:clamp(24px,5vw,54px);max-width:840px;padding:clamp(18px,3vw,28px)}.publishedStory div{align-items:center;display:flex;gap:10px;margin-bottom:10px}.publishedStory h3{margin-bottom:0}.publishedStory svg{color:var(--rust);height:22px;width:22px}.publishedStory p{color:var(--muted);font-size:1rem;line-height:1.62;margin-bottom:0;white-space:pre-wrap}.appShell,.authPage,.onboardingPage{min-height:100vh;padding:clamp(18px,4vw,42px)}.authPage{align-items:center;display:flex;justify-content:center}.authCard,.dashboardPanel,.emptyDashboard,.onboardingChecklist,.onboardingForm,.projectCard,.projectEditorForm,.projectSharePanel,.setupPanel{background:var(--paper-strong);border:1px solid var(--line);border-radius:8px;box-shadow:0 16px 54px rgba(28,38,32,.08)}.authCard{display:grid;grid-gap:18px;gap:18px;max-width:520px;padding:clamp(20px,4vw,34px);width:100%}.authCard h1,.dashboardPanel h1,.onboardingHero h1,.projectEditorForm h1,.setupPanel h1{font-size:clamp(2.1rem,5vw,4rem);line-height:.98;margin-bottom:14px}.authForm,.onboardingForm,.projectEditorForm{display:grid;grid-gap:14px;gap:14px}.compactAuthForm{border-top:1px solid var(--line);padding-top:14px}.authSwitch{color:var(--muted);font-size:.92rem;font-weight:800;margin:0}.authSwitch a{color:var(--green);text-decoration:underline;text-underline-offset:3px}.emailNotice{align-items:flex-start;display:flex;gap:16px}.emailNotice>svg{color:var(--rust);flex:0 0 auto;height:32px;width:32px}.appShell,.onboardingPage{margin:0 auto;max-width:1480px}.onboardingHero{display:grid;grid-gap:clamp(24px,5vw,52px);gap:clamp(24px,5vw,52px);margin-bottom:clamp(22px,4vw,34px);max-width:980px}.dashboardGrid,.onboardingGrid,.projectEditorShell{align-items:start;display:grid;grid-gap:clamp(16px,3vw,24px);gap:clamp(16px,3vw,24px)}.onboardingGrid,.projectEditorShell{grid-template-columns:minmax(0,.68fr) minmax(280px,.32fr)}.dashboardPanel,.onboardingChecklist,.onboardingForm,.projectEditorForm,.projectSharePanel,.setupPanel{padding:clamp(18px,3vw,28px)}.onboardingChecklist{display:grid;grid-gap:18px;gap:18px}.checklistPanel div,.entitlementPanel,.onboardingChecklist>div{align-items:center;display:flex;gap:12px}.checklistPanel svg,.entitlementPanel svg,.onboardingChecklist svg{color:var(--rust);flex:0 0 auto;height:24px;width:24px}.checklistPanel h2,.onboardingChecklist h2,.projectCard h2,.projectSharePanel h2{font-size:clamp(1.45rem,3vw,2.2rem);line-height:1.02;margin-bottom:0}.onboardingChecklist ul{color:var(--muted);display:grid;font-weight:800;grid-gap:10px;gap:10px;margin:0;padding-left:20px}.appHeader{align-items:center;display:flex;gap:16px;justify-content:space-between;margin-bottom:clamp(18px,3vw,28px)}.setupPanel{margin:0 auto;max-width:760px}.dashboardGrid{grid-template-columns:minmax(280px,340px) minmax(0,1fr)}.dashboardPanel{display:grid;grid-gap:18px;gap:18px}.entitlementPanel{background:var(--green-soft);border-radius:8px;padding:14px}.entitlementPanel span,.entitlementPanel strong{display:block}.entitlementPanel strong{color:var(--green);font-size:1.05rem;margin-bottom:3px;text-transform:capitalize}.entitlementPanel span{color:var(--muted);font-size:.9rem;font-weight:800}.checklistPanel{border-top:1px solid var(--line);display:grid;grid-gap:10px;gap:10px;padding-top:16px}.checklistPanel div{color:var(--muted);font-weight:850}.checklistPanel div.complete,.checklistPanel div.complete svg{color:var(--green)}.projectList{display:grid;grid-gap:14px;gap:14px}.emptyDashboard,.projectCard{display:grid;grid-gap:16px;gap:16px;padding:clamp(18px,3vw,24px)}.emptyDashboard p,.projectCard p,.projectSharePanel p{color:var(--muted);line-height:1.5;margin-bottom:0}.projectActions,.projectMeta{display:flex;flex-wrap:wrap;gap:8px}.projectMeta span{background:#f3eadb;border-radius:999px;color:var(--green);font-size:.82rem;font-weight:850;padding:6px 10px}.projectActions .button{min-height:44px}.projectEditorForm h1{margin-bottom:0}.projectSharePanel{display:grid;grid-gap:14px;gap:14px}.projectSharePanel .button{overflow-wrap:anywhere}.publishedRoutePage{border:0;border-radius:0;box-shadow:none}.planPage{min-height:100vh;padding:clamp(14px,3vw,26px)}.planHeader{align-items:center;display:flex;gap:16px;justify-content:space-between;margin:0 auto 18px;max-width:1480px}.mapToolbar,.planNav,.plannerActions{align-items:center;display:flex;gap:10px}.planNav{flex-wrap:wrap;justify-content:flex-end}.plannerShell{display:grid;grid-gap:14px;gap:14px;grid-template-columns:minmax(230px,300px) minmax(360px,1fr) minmax(260px,300px);margin:0 auto;max-width:1480px}.detailsPanel,.plannerPanel{align-self:start;background:var(--paper-strong);border:1px solid var(--line);border-radius:8px;box-shadow:0 16px 54px rgba(28,38,32,.08);display:grid;grid-gap:16px;gap:16px;padding:clamp(16px,2.2vw,22px)}.detailsPanel h2,.plannerPanel h1{font-size:clamp(1.75rem,4vw,2.65rem);line-height:1;margin-bottom:10px;overflow-wrap:anywhere}.detailsPanel h2{font-size:clamp(1.55rem,3vw,2.25rem);overflow-wrap:break-word}.panelIntro{color:var(--muted);line-height:1.5;margin:0}.tripManager{border-top:1px solid var(--line);display:grid;grid-gap:12px;gap:12px;padding-top:14px}.tripActions{display:grid;grid-gap:8px;gap:8px;grid-template-columns:1fr 1fr}.tripActions .button,.tripManager>.button{min-height:42px;padding:9px 11px}.planStats{display:grid;grid-gap:10px;gap:10px;grid-template-columns:1fr 1fr}.planStats div{background:#f3eadb;border-radius:8px;min-height:104px;padding:14px}.planStats svg{color:var(--blue);height:21px;margin-bottom:12px;width:21px}.planStats span,.planStats strong{display:block}.planStats strong{color:var(--green);font-size:1.35rem;line-height:1;margin-bottom:5px}.planStats span{color:var(--muted);font-size:.85rem;font-weight:800}.profilePicker{background:#f2eadc;border-radius:8px;display:grid;grid-template-columns:repeat(3,1fr);padding:4px}.profilePicker button{background:transparent;border:0;border-radius:6px;color:var(--muted);cursor:pointer;font-weight:850;min-height:40px}.profilePicker button.active{background:var(--paper-strong);box-shadow:0 8px 18px rgba(28,38,32,.1);color:var(--green)}.profileNote{color:var(--muted);font-size:.88rem;font-weight:750;line-height:1.45;margin:-4px 0 0}.plannerActions{flex-wrap:wrap}.planNav .button,.plannerActions .button{flex:1 1;min-height:44px;padding:10px 13px}.hiddenFile{display:none}.toggleRow{align-items:center;background:#f7f0e4;border-radius:8px;display:flex;gap:10px;min-height:46px;padding:10px 12px}.toggleRow input{min-height:auto;width:auto}.toggleRow span{color:var(--green);font-size:.88rem;font-weight:850}.mapStatus{background:#fff3dd;border:1px solid #ead9b9;border-radius:8px;color:#6d5121;font-size:.9rem;font-weight:800;line-height:1.45;margin:0;padding:12px}.mapWorkspace{background:var(--paper-strong);border:1px solid var(--line);border-radius:8px;box-shadow:var(--shadow);min-height:min(760px,calc(100vh - 98px));overflow:hidden;position:relative}.mapToolbar{background:rgba(255,253,248,.94);border:1px solid rgba(22,68,60,.14);border-radius:8px;box-shadow:0 10px 28px rgba(28,38,32,.12);flex-wrap:wrap;left:12px;max-width:calc(100% - 24px);padding:8px 10px;position:absolute;top:12px;z-index:500}.mapToolbar span{align-items:center;color:var(--green);display:inline-flex;font-size:.84rem;font-weight:850;gap:7px;min-height:26px}.mapToolbar span+span{color:var(--muted)}.mapToolbar span:last-child{background:var(--green-soft);border-radius:999px;color:var(--green);padding:3px 8px}.mapToolbar svg{color:var(--rust);height:17px;width:17px}.planningMap{height:min(760px,calc(100vh - 98px));min-height:560px;width:100%}.planningMap .leaflet-control-attribution{font-size:.68rem}.planMarker{align-items:center;background:var(--blue);border:3px solid #fffdf8;border-radius:999px;box-shadow:0 8px 20px rgba(28,38,32,.28);color:#fffdf8;display:flex;font-size:.84rem;font-weight:900;justify-content:center}.planMarker span{line-height:1}.planMarker.type-start{background:var(--green)}.planMarker.type-finish{background:var(--rust)}.planMarker.type-camp{background:#6b5b95}.planMarker.type-food{background:var(--gold)}.planMarker.type-risk{background:#8b2f20}.planMarker.selected{outline:4px solid rgba(214,81,42,.34);outline-offset:2px}.coordinateGrid{display:grid;grid-gap:10px;gap:10px;grid-template-columns:1fr 1fr}.insightPanel{display:grid;grid-gap:8px;gap:8px;grid-template-columns:1fr 1fr}.insightPanel div{background:#f3eadb;border-radius:8px;min-height:76px;padding:12px}.insightPanel span,.insightPanel strong{display:block}.insightPanel strong{color:var(--green);font-size:1.15rem;line-height:1.05;margin-bottom:4px}.insightPanel span{color:var(--muted);font-size:.78rem;font-weight:850}.elevationProfile{border-top:1px solid var(--line);display:grid;grid-gap:10px;gap:10px;padding-top:14px}.profileHeader{align-items:baseline;display:flex;gap:10px;justify-content:space-between}.profileHeader h3{margin-bottom:0}.profileHeader span,.profileScale{color:var(--muted);font-size:.78rem;font-weight:850}.elevationProfile svg{background:#f7f0e4;border:1px solid var(--line);border-radius:8px;display:block;height:132px;overflow:hidden;width:100%}.elevationProfile polygon{fill:rgba(39,96,112,.18)}.elevationProfile polyline{fill:none;stroke:var(--blue);stroke-linecap:round;stroke-linejoin:round;stroke-width:4}.profileScale{display:flex;justify-content:space-between}.dangerButton{border-color:rgba(129,53,30,.22);color:#81351e}.waypointList{border-top:1px solid var(--line);display:grid;grid-gap:8px;gap:8px;padding-top:14px}.waypointList h3{margin-bottom:0}.waypointList article{align-items:center;border:1px solid var(--line);border-radius:8px;display:grid;grid-gap:8px;gap:8px;grid-template-columns:minmax(0,1fr) auto;padding:8px}.waypointList article.active{border-color:rgba(214,81,42,.45);box-shadow:0 0 0 3px rgba(214,81,42,.12)}.waypointSelect{align-items:center;background:transparent;border:0;color:var(--ink);cursor:pointer;display:grid;grid-gap:2px 8px;gap:2px 8px;grid-template-columns:30px minmax(0,1fr);padding:0;text-align:left}.waypointSelect span{align-items:center;background:var(--green);border-radius:999px;color:#fffdf8;display:flex;font-size:.8rem;font-weight:900;grid-row:span 2;height:28px;justify-content:center;width:28px}.waypointSelect strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.waypointSelect em{color:var(--muted);font-size:.78rem;font-style:normal;font-weight:800}.waypointMoves{display:flex;gap:5px}.segmentList{border-top:1px solid var(--line);display:grid;grid-gap:10px;gap:10px;padding-top:14px}.segmentList h3{margin-bottom:0}.segmentList article{background:#f7f0e4;border-radius:8px;display:grid;grid-gap:6px;gap:6px;padding:12px}.segmentList article span{color:var(--muted);font-size:.86rem;font-weight:750;line-height:1.35}.segmentList article strong{color:var(--green)}@media (max-width:900px){.hero{min-height:auto}.dashboardGrid,.heroGrid,.homeStudioGrid,.onboardingGrid,.projectEditorShell,.publishedHero,.trainingGrid{grid-template-columns:1fr}.heroMedia{min-height:320px}.principles,.statsBand{grid-template-columns:repeat(2,1fr)}.buddyStrip{align-items:stretch;flex-direction:column}.liveTrackerTop{display:grid}.compactSwitch{flex-basis:auto;width:100%}.plannerShell{grid-template-columns:1fr}.detailsPanel,.plannerPanel{align-self:stretch}.mapWorkspace,.planningMap{min-height:580px}.planningMap{height:580px}}@media (max-width:620px){.nav{align-items:flex-start;flex-direction:column}.button,.heroActions,.navLinks{width:100%}.buddyRides,.formRow,.photoGrid,.principles,.statsBand,.summaryGrid,.trackerMetrics{grid-template-columns:1fr}.publishedHome{min-height:auto}.publishedTopline{align-items:stretch;flex-direction:column}.publishedTopline span{border-radius:8px;width:100%}.publishedCopy h1,.publishedCopy h2{font-size:clamp(2.15rem,12vw,3.4rem)}.trackHeader,.trackerControls{align-items:stretch;flex-direction:column}.heroMedia{min-height:260px}.routeVisual img{aspect-ratio:1/1}.appHeader,.planHeader,.planNav,.plannerActions{align-items:stretch;flex-direction:column}.appHeader .brand,.planHeader .brand,.planNav,.planNav .button,.plannerActions .button{width:100%}.coordinateGrid,.insightPanel,.planStats,.profilePicker,.tripActions{grid-template-columns:1fr}.mapWorkspace,.planningMap{min-height:520px}.planningMap{height:520px}.mapToolbar{left:8px;right:8px;top:8px}}