/* Isolated presentation overrides. Original site and backend remain untouched. */
body.home-polished .hero{height:auto;min-height:0}
body .hero-content.has-rider-mockup{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr);align-items:center;justify-content:initial;gap:48px;padding-block:56px 76px;min-height:900px}
body .has-rider-mockup .hero-copy{width:auto;padding:0;max-width:650px}
body .has-rider-mockup .hero-copy h1{font-size:clamp(48px,5vw,76px);line-height:1.04;letter-spacing:-2px}
body .rider-hero-mockup{width:min(100%,440px);max-width:none;justify-self:center;align-self:center}
body .rider-hero-mockup img{max-height:none}
body .rider-hero-mockup .dashboard-caption{max-width:420px;margin:20px auto 0}
body .rider-hero-mockup .dashboard-caption h2{font-size:21px}
body .rider-hero-mockup .dashboard-caption p{font-size:14px;line-height:1.6;max-width:390px;margin-inline:auto}
body.home-polished :is(#features,#community,#themes,.share-grid,#get-app){padding-block:80px}
body.home-polished .product-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:72px}
body.home-polished .product-visual{padding:28px;background:var(--cream);border:1px solid var(--line);border-radius:28px}
body.home-polished .product-visual>img{height:650px;width:100%;max-width:none;object-fit:contain}
body.home-polished .feature{padding:26px 16px}
body.home-polished .feature strong{font-size:24px;line-height:1.25}
body.home-polished .feature span span{font-size:16px;line-height:1.7}
body.home-polished .community-art{padding:44px 28px 70px}
body.home-polished .community-art>img{height:590px;width:100%;max-width:none;object-fit:contain}
body.home-polished .theme-stage>img:not(.rider-night-portrait){height:580px;width:auto;max-width:60%;object-fit:contain}
body.home-polished .theme-stage{padding:48px;gap:48px}
body.home-polished #get-app .rider-dashboard-phone{height:600px;width:auto;max-width:100%}
body.home-polished .share-grid{grid-template-columns:1fr;gap:36px}
body.home-polished .home-story-copy{order:-1;max-width:780px}
body.home-polished .home-story-copy h2{font-size:clamp(38px,4vw,56px)}
body.home-polished .home-story-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));max-width:960px;width:100%;gap:28px;margin:auto;align-items:start}
.preview-owner-card{margin:0;min-width:0}
.preview-original-archive[hidden]{display:none!important}
.preview-owner-card>img{display:block;width:100%;height:auto;border-radius:26px;border:1px solid var(--line)}
.preview-owner-card figcaption{font-size:13px;line-height:1.6;color:var(--muted);padding:14px 2px}
body.home-polished .home-story-moments{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;max-width:1040px;width:100%;margin:0 auto}
body.home-polished .home-story-moments>figure.preview-story-art{width:100%;height:auto;min-height:0;max-height:none;max-width:none;aspect-ratio:9/16}
body.home-polished .home-story-moments .preview-story-layer img.preview-logo{width:24%;height:auto;max-width:none;aspect-ratio:1;object-fit:contain;border-radius:16%}
.preview-story-art{position:relative;isolation:isolate;overflow:hidden;min-width:0;background:#06151b;color:white;border-radius:22px;aspect-ratio:9/16;margin:0}
body.home-polished .home-story-moments>.preview-story-art>img{height:100%;width:100%;object-fit:cover;display:block}
.preview-story-layer{position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(180deg,rgba(2,15,20,.18),transparent 35%,rgba(2,15,20,.88));padding:7%;display:flex;flex-direction:column;align-items:flex-start}
.preview-story-layer .preview-logo{width:24%;height:auto;aspect-ratio:1;object-fit:contain;border-radius:16%;background:#eaf4ef}
.preview-story-route{width:76%;height:40%;margin:8% auto 0;filter:drop-shadow(0 2px 3px #00141a);overflow:visible}
.preview-story-stats{margin-top:auto;display:grid;gap:8px;width:100%}
.preview-story-stats b{font-size:clamp(20px,2.5vw,32px);line-height:1.15;color:#57f3e1}
.preview-story-stats span{display:block;font-size:12px;line-height:1.4;color:white;margin-top:3px}
.preview-story-sample{font-size:10px;font-weight:600;letter-spacing:.4px;line-height:1.5;margin-top:12px;padding:5px 8px;background:#06151bd9;border-radius:6px}
body[data-resource=stories] .story-showcase-row{grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
body[data-resource=stories] .story-showcase-row>.preview-owner-card{aspect-ratio:auto;background:transparent;border:0;border-radius:0;overflow:visible}
body[data-resource=stories] .preview-owner-card>img{height:auto;object-fit:contain;aspect-ratio:9/16}
body[data-resource=stories] .story-editorial-photo .preview-story-layer{bottom:110px}
body[data-resource=stories] .story-editorial-photo .preview-story-stats b{font-size:24px}
body[data-resource=stories] .story-editorial-photo .preview-logo{width:20%}
body[data-resource=stories] .story-editorial-photo .preview-story-route{height:32%;margin-top:10%}
@media(max-width:1000px){body .hero-content.has-rider-mockup{gap:20px;min-height:780px}body .rider-hero-mockup{width:360px;max-width:100%}body.home-polished .product-grid{gap:30px}body.home-polished .product-visual>img{height:530px}body.home-polished .theme-stage>img:not(.rider-night-portrait){height:460px}body.home-polished .community-art>img{height:480px}}
@media(max-width:760px){body .hero-content.has-rider-mockup{display:grid;grid-template-columns:1fr;gap:36px;padding-block:100px 60px;min-height:0}body .has-rider-mockup .hero-copy{width:100%;padding:0}body .has-rider-mockup .hero-copy h1{font-size:clamp(40px,10vw,60px)}body .rider-hero-mockup{width:min(100%,370px);max-width:none;align-self:center;justify-self:center}body .rider-hero-mockup .dashboard-caption{width:100%;margin:16px 0 0}body.home-polished :is(#features,#community,#themes,.share-grid,#get-app){padding-block:48px}body.home-polished .product-grid{grid-template-columns:1fr;gap:28px}body.home-polished .product-visual{padding:16px}body.home-polished .product-visual>img{height:auto;max-height:none;width:100%}body.home-polished .community-art>img{height:auto;max-height:none;width:100%}body.home-polished .theme-stage{display:flex;flex-direction:column;padding:24px}body.home-polished .theme-stage>img:not(.rider-night-portrait){height:auto;max-width:100%;width:100%}body.home-polished .home-story-gallery{grid-template-columns:1fr;max-width:470px;gap:26px}body.home-polished .home-story-moments{grid-template-columns:1fr;max-width:470px;gap:24px}body.home-polished #get-app .get-art{display:block}body.home-polished #get-app .rider-dashboard-phone{height:auto;width:min(100%,360px)}body[data-resource=stories] .story-showcase-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.preview-story-stats b{font-size:30px}}
@media(max-width:500px){body[data-resource=stories] .story-showcase-row{grid-template-columns:1fr;max-width:430px;margin-inline:auto}.preview-owner-card figcaption{font-size:12px}}
/* Fit image boxes to their natural ratio: no letterbox gap or mismatched corners. */
body.home-polished .product-visual{min-height:0;align-self:start;padding:24px 24px 48px;overflow:hidden}
body.home-polished .product-visual>img{display:block;width:100%;height:auto;max-width:420px;max-height:none;border-radius:18px;box-shadow:none}
body.home-polished .community-art{min-height:0;overflow:hidden;align-self:start}
body.home-polished .community-art>img{width:100%;height:auto;max-height:none;max-width:400px;border-radius:18px;box-shadow:none}
body.home-polished .theme-stage>img:not(.rider-night-portrait){width:100%;height:auto;max-height:none;max-width:430px;border-radius:18px;box-shadow:none}
.preview-owner-card>img{border:0;border-radius:8.8% / 4.95%;overflow:hidden}
body.home-polished .share-grid{row-gap:24px}
body.home-polished .home-story-moments>figure.preview-story-art:after{display:none}
.preview-story-art,.preview-story-layer{border-radius:inherit}
body.home-polished .home-story-moments>figure.preview-story-art{border-radius:20px}
/* Compact gallery: do not stretch figures to the height of a neighbouring caption. */
body[data-resource=stories] .story-showcase-row{grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;align-items:start}
body[data-resource=stories] .story-showcase-row>.preview-owner-card{height:auto;align-self:start}
body[data-resource=stories] .preview-owner-card figcaption{font-size:11px;line-height:1.4;padding:8px 0 0}
body[data-resource=stories] .preview-owner-card figcaption span{display:none}
body[data-resource=stories] .story-editorial-photo .preview-story-layer{bottom:68px;padding:7%;background:linear-gradient(180deg,rgba(2,15,20,.1),transparent 35%,rgba(2,15,20,.8))}
body[data-resource=stories] .story-editorial-photo .preview-story-stats{gap:5px}
body[data-resource=stories] .story-editorial-photo .preview-story-stats b{font-size:21px}
body[data-resource=stories] .story-editorial-photo .preview-story-stats span{font-size:10px}
body[data-resource=stories] .story-editorial-photo .preview-story-sample{font-size:8px;margin-top:8px;padding:3px 5px}
body[data-resource=stories] .story-editorial-photo figcaption{padding:24px 10px 10px}
body[data-resource=stories] .story-editorial-photo figcaption p{font-size:11px;line-height:1.35;margin:5px 0 0}
body[data-resource=stories] .story-editorial-identity img{width:24px;height:24px;flex-basis:24px}
body[data-resource=stories] .story-editorial-identity strong{font-size:11px}
@media(max-width:1050px){body[data-resource=stories] .story-showcase-row{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){body.home-polished .product-visual{padding:16px 16px 42px}body.home-polished .product-visual>img,body.home-polished .community-art>img,body.home-polished .theme-stage>img:not(.rider-night-portrait){height:auto;max-height:none;max-width:100%}body[data-resource=stories] .story-showcase-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;max-width:none}body[data-resource=stories] .story-editorial-photo .preview-story-stats b{font-size:18px}body[data-resource=stories] .story-editorial-photo .preview-story-layer{bottom:55px}body[data-resource=stories] .story-editorial-photo figcaption p{display:none}body[data-resource=stories] .preview-story-sample{font-size:7px}body[data-resource=stories] .story-editorial-photo .preview-logo{width:24%}body[data-resource=stories] .story-editorial-photo .preview-story-route{height:26%;margin-top:7%}body[data-resource=stories] .story-editorial-photo .preview-story-stats span{font-size:9px}}
body[data-resource=stories] .story-editorial-photo .preview-story-layer{inset:0;padding:8%;border-radius:inherit;background:linear-gradient(180deg,rgba(2,15,20,.12),transparent 40%,rgba(2,15,20,.88))}
body[data-resource=stories] .story-editorial-photo .preview-story-stats{flex-shrink:0;gap:10px;margin-top:auto;padding-bottom:2px}
body[data-resource=stories] .story-editorial-photo .preview-story-route{flex:0 1 38%;min-height:0;width:80%;margin:8% auto 12%}
.preview-story-stats b{display:block;white-space:nowrap}
.preview-story-stats span{white-space:normal}
@media(max-width:760px){body[data-resource=stories] .story-editorial-photo .preview-story-stats{gap:9px}body[data-resource=stories] .story-editorial-photo .preview-story-stats b{font-size:clamp(15px,4.5vw,21px)}body[data-resource=stories] .story-editorial-photo .preview-story-route{flex-basis:32%;margin-block:6%}body[data-resource=stories] .story-editorial-photo .preview-story-stats span{font-size:9px;line-height:1.35}}
/* Restore the original compact Story presentation, retaining current photos. */
body.home-polished .home-story-gallery{max-width:500px;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;justify-self:start;margin:0}
body.home-polished .home-story-moments{max-width:660px;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:0}
body.home-polished .home-story-moments .preview-story-stats{gap:6px}
body.home-polished .home-story-moments .preview-story-stats b{font-size:21px}
body.home-polished .home-story-moments .preview-story-stats span{font-size:10px}
body.home-polished .home-story-moments .preview-story-route{flex:0 1 30%;min-height:0;margin-block:5%}
body[data-resource=stories] .story-showcase-row{grid-template-columns:repeat(6,minmax(0,1fr));gap:18px}
body[data-resource=stories] .story-editorial-photo .preview-story-stats{gap:5px}
body[data-resource=stories] .story-editorial-photo .preview-story-stats b{font-size:18px}
body[data-resource=stories] .story-editorial-photo .preview-story-stats span{font-size:9px}
body[data-resource=stories] .story-editorial-photo .preview-story-route{flex-basis:26%;margin-block:5%}
@media(max-width:1100px){body[data-resource=stories] .story-showcase-row{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:760px){body.home-polished .home-story-gallery{max-width:500px;width:100%;gap:12px}body.home-polished .home-story-moments{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;max-width:500px}body.home-polished .home-story-moments .preview-story-stats b{font-size:18px}body.home-polished .home-story-moments .preview-story-stats span{font-size:9px}body[data-resource=stories] .story-showcase-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}body[data-resource=stories] .story-editorial-photo .preview-story-stats b{font-size:17px}}
/* Home Story section: compact editorial composition, not oversized poster rows. */
body.home-polished .share-grid{grid-template-columns:minmax(0,1fr) minmax(0,480px);column-gap:64px;row-gap:24px;align-items:start}
body.home-polished .share-grid>.home-story-copy{grid-column:1;grid-row:1 / span 2;order:0;max-width:540px;align-self:center}
body.home-polished .share-grid>.home-story-copy h2{font-size:clamp(32px,3.4vw,46px);line-height:1.12;letter-spacing:-1.4px}
body.home-polished .share-grid>.home-story-copy .intro{font-size:16px;line-height:1.7}
body.home-polished .share-grid>.home-story-gallery{grid-column:2;grid-row:1;max-width:352px;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;justify-self:center}
body.home-polished .share-grid>.home-story-gallery figcaption{font-size:11px;line-height:1.35;padding-top:8px}
body.home-polished .share-grid>.home-story-moments{grid-column:2;grid-row:2;grid-template-columns:repeat(3,minmax(0,1fr));max-width:460px;gap:12px;justify-self:center;align-items:start}
body.home-polished .home-story-moments .preview-story-layer{padding:8%}
body.home-polished .home-story-moments .preview-story-stats{gap:5px;flex-shrink:0}
body.home-polished .home-story-moments .preview-story-stats b{font-size:14px;line-height:1.1}
body.home-polished .home-story-moments .preview-story-stats span{font-size:8px;line-height:1.3;margin-top:2px}
body.home-polished .home-story-moments .preview-story-route{flex:0 1 24%;min-height:0;margin-block:4%}
@media(max-width:1000px) and (min-width:761px){body.home-polished .share-grid{grid-template-columns:minmax(0,1fr) minmax(0,360px);column-gap:32px}body.home-polished .share-grid>.home-story-moments{gap:10px}body.home-polished .home-story-moments .preview-story-stats b{font-size:12px}body.home-polished .home-story-moments .preview-story-stats span{font-size:7px}}
@media(max-width:760px){body.home-polished .share-grid{grid-template-columns:minmax(0,1fr);gap:22px}body.home-polished .share-grid>.home-story-copy{grid-column:1;grid-row:1;align-self:start;max-width:540px}body.home-polished .share-grid>.home-story-copy h2{font-size:34px}body.home-polished .share-grid>.home-story-gallery{grid-column:1;grid-row:2;max-width:332px;justify-self:center;width:100%;gap:12px}body.home-polished .share-grid>.home-story-moments{grid-column:1;grid-row:3;grid-template-columns:repeat(3,145px);justify-content:start;justify-self:center;max-width:100%;width:332px;gap:12px;overflow-x:auto;overscroll-behavior-inline:contain;scroll-snap-type:x proximity;padding-bottom:10px}body.home-polished .home-story-moments>figure.preview-story-art{scroll-snap-align:start}body.home-polished .home-story-moments .preview-story-stats b{font-size:14px}body.home-polished .home-story-moments .preview-story-stats span{font-size:8px}}
