/* Shared device layouts, loaded after the original theme layers. */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
.wp-header .header-inner{min-width:0}
.wp-header .brand{flex-shrink:0}
.feature,.feature>div,.tour-card,.card-copy,.story-row>div,.section-head>*,
.feature-story-inner>*,.instagram-inner>*,.about-strip>.wrap>*,
.footer-top>*,.footer-bottom>*,#filters>*,.r5-intro-grid>*,.r5-qualities>*,.r5-details>*{min-width:0}
.card-copy h3,.feature h2,.story-row h3,.section-head h2,.feature-story h2,
.selection-heading h2,.info-page h1,.r5-page .wp-entry h1{overflow-wrap:anywhere}
.article-body,.category-list,.footer-brand,.footer-bottom,.instagram-post-copy{overflow-wrap:anywhere}
.button{max-width:100%;white-space:normal;overflow-wrap:anywhere;text-align:center}
.route-linked-plan>.route-day-overlay{margin:0;width:100%;max-width:100%}
.route-widget .elevation img{display:block;width:100%;height:auto}
.article-contents nav,.related-nav{min-width:0;max-width:100%;margin-left:0}
.related-nav a{min-width:0;overflow-wrap:anywhere}
.related-nav a>span{flex-shrink:0}
.wp-entry-content img,.article-body img{max-width:100%;height:auto}
.site-footer a{display:inline-flex;align-items:center;min-height:44px}
.footer-top .footer-brand{display:block}

@media(min-width:1101px){
 .wp-header .header-inner{flex-wrap:nowrap}
 .wp-header #navigation{flex-wrap:nowrap;gap:18px}
 .wp-header #navigation a{white-space:nowrap}
}
@media(max-width:1100px){
 .wp-header .header-inner{flex-direction:row;align-items:center;flex-wrap:wrap;padding:12px 0;min-height:70px;gap:12px}
 .wp-header .menu-toggle{display:inline-flex;align-items:center;justify-content:center;margin-left:auto;min-height:44px;flex-shrink:0}
 .wp-header #navigation{width:100%;flex-basis:100%;margin:0;flex-direction:column;gap:0}
 .js .wp-header #navigation:not(.is-open){display:none}
 .wp-header #navigation.is-open{max-height:calc(100vh - 100px);max-height:calc(100dvh - 100px);overflow-y:auto;overscroll-behavior-y:contain}
 .wp-header #navigation a{padding:11px 4px;border-bottom:1px solid var(--line);font-size:.9rem;min-height:44px}
 .feature-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .feature{min-height:230px;padding:22px}
 .feature-story-inner{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr)}
 .instagram-inner{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr)}
 #filters{grid-template-columns:minmax(0,1.5fr) minmax(0,1fr) minmax(0,1.2fr) minmax(0,1fr)}
}
@media(max-width:850px){
 #filters{grid-template-columns:repeat(2,minmax(0,1fr))}
 .instagram-inner{grid-template-columns:minmax(0,1fr)}
 .section-head{flex-wrap:wrap;gap:18px}
 .section-head>div{flex:1 1 350px}
 .section-head>p{flex:1 1 220px}
 .article-body h2{overflow-wrap:anywhere}
}
@media(max-width:600px){
 .wp-header .brand{font-size:clamp(1.05rem,4.7vw,1.65rem)}
 .wp-header .menu-toggle{font-size:.75rem;padding:8px 10px}
 input[type=search],#filters input[type=search],#filters select{font-size:16px}
 #filters .sort-label{white-space:normal;flex-wrap:wrap}
 #filters .sort-label select{flex:1 1 140px;min-width:0;font-size:16px}
 .filter-bottom{flex-wrap:wrap}
 #filters .check-label,.filter-bottom .text-button,.save{min-height:44px}
 .card-copy{padding:20px}
 .card-bottom{flex-wrap:wrap;padding:10px 18px}
 .image-distance{max-width:calc(100% - 120px);font-size:clamp(1.1rem,5.5vw,1.6rem);line-height:1.25;overflow-wrap:anywhere}
 .image-treatment{max-width:100px;text-align:right}
 .feature-story-inner{grid-template-columns:minmax(0,1fr);gap:28px}
 .race-facts{grid-template-columns:repeat(3,minmax(0,1fr));padding-left:0;border-left:0;gap:12px}
 .race-facts dd{font-size:clamp(1.6rem,6.5vw,2.2rem)}
 .race-facts dd span{display:block;font-size:.85rem;margin-top:5px}
 .race-facts dt{overflow-wrap:anywhere;letter-spacing:.04em}
 .instagram-profile>span:last-child{min-width:0;overflow-wrap:anywhere}
 #instagram .avatar{flex-shrink:0}
 #instagram .instagram-profile{width:100%;max-width:100%;padding:16px;gap:12px}
 #instagram .instagram-profile strong{font-size:.9rem}
 .whoop-panel-head{flex-wrap:wrap}
 .footer-top,.footer-bottom{flex-wrap:wrap;gap:12px 24px}
 .footer-top>div{flex-wrap:wrap}
 .footer-bottom{margin-top:24px}
}
@media(max-width:480px){
 .feature-grid{grid-template-columns:minmax(0,1fr)}
 .feature{min-height:190px;padding:22px}
 .feature h2{font-size:1.35rem}
 .feature p{font-size:.8rem}
 .hero.wp-hero h1{font-size:clamp(3rem,14.5vw,4.35rem)}
 .hero.wp-hero .hero-inner{padding:54px 0}
 .wp-entry h1,.r5-page .wp-entry h1{font-size:clamp(1.9rem,8vw,2.4rem)}
 .info-page h1{font-size:clamp(1.9rem,8vw,2.4rem)}
 .article-contents{padding-inline:14px}
 .whoop-rings{gap:8px}
 .whoop-metric dd>span{font-size:clamp(20px,6.8vw,32px)}
 .whoop-metric dd:before{inset:5px}
 .whoop-sleep-summary{padding:14px 10px;gap:10px}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
