/* Mobile layout: shrink content to the viewport rather than clipping the page. */
.wrap{width:100%;min-width:0}
main{min-width:0;max-width:100%}
main :where(img,video,iframe){max-width:100%}
:where(main,.footer) :where(h1,h2,h3,p,a,li){overflow-wrap:anywhere}
.intro>*,.route-grid>*,.cards>*,.band-grid>*,.schedule>*,.foot-grid>*,.item-grid>*,.step-grid>*,.home-featured-card>*,.builder-text-image>*,.builder-cards>*,.station-presentations-grid>*,.partners-grid>*{min-width:0}
.table-wrap{min-width:0;max-width:100%}
.btn{max-width:100%;white-space:normal;overflow-wrap:anywhere;text-align:center}

@media(max-width:1050px){
 .nav{min-width:0;max-width:100%;flex-wrap:wrap}
 .nav .brand{min-width:0;max-width:100%}
 .nav .brand-title{min-width:0;overflow-wrap:anywhere}
 .nav .mobile{display:block;flex:none;min-width:44px;min-height:44px}
 .nav .links{display:none;position:absolute;left:0;right:0;top:100%;width:auto;max-width:100%;max-height:70vh;max-height:70dvh;overflow-y:auto;overscroll-behavior:contain;flex-basis:auto;flex-direction:column;align-items:stretch;background:var(--white);padding:18px 20px;box-shadow:0 12px 15px #12343b20}
 .nav .links.open{display:flex}
 .nav .nav-items,.nav .submenu{min-width:0;max-width:100%}
 .nav .nav-actions,.nav .nav-socials,.nav .site-preferences{min-width:0;max-width:100%;flex-wrap:wrap}
}

@media(max-width:540px){
 .nav{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px 12px;padding-top:12px;padding-bottom:12px}
 .nav .brand{grid-column:1;grid-row:1;width:auto;margin:0;gap:8px}
 .nav .brand-logo{width:48px;height:48px}
 .nav .brand-title{max-width:none}
 .nav .brand small{letter-spacing:.08em;line-height:1.35}
 .nav .mobile{grid-column:2;grid-row:1;justify-self:end;padding:0;width:44px}
 .nav .nav-actions{grid-column:1;grid-row:2;justify-self:start}
 .nav .site-preferences{grid-column:2;grid-row:2;justify-self:end;margin-left:0}
 .nav .nav-socials{grid-column:1/-1;grid-row:3;justify-self:start}
 .nav .links{grid-column:1/-1;padding:18px 20px}
 .carousel-copy :where(h1,p),.page-hero :where(h1,p){overflow-wrap:anywhere}
 .carousel-controls{gap:12px}
 .carousel-arrows,.carousel-dots{gap:6px}
}

/* Keep the launcher and conversation inside the visible mobile viewport.
   vh is the fallback for Chrome versions without dynamic viewport units. */
@media(max-width:680px){
 .help-widget{right:12px;right:max(12px,env(safe-area-inset-right));bottom:12px;bottom:max(12px,env(safe-area-inset-bottom));max-width:calc(100vw - 24px)}
 .help-widget .help-launcher{max-width:100%;min-width:0}
 .help-widget .gentianette-speech{width:min(270px,calc(100vw - 32px));max-width:100%;overflow-wrap:anywhere}
 .help-widget .help-panel{right:0;bottom:0;width:min(400px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px)}
 .help-widget .help-head>div,.help-widget .help-launcher-label{min-width:0;overflow-wrap:anywhere}
 .help-widget .help-head,.help-widget .help-question{flex-shrink:0}
 .help-widget .help-messages{min-height:0;overflow-y:auto}
 .help-widget .help-choices{min-height:0;max-height:28vh;max-height:28dvh;flex-shrink:1}
 .help-widget .help-choices button,.help-widget .help-question button{min-width:0;overflow-wrap:anywhere}
}
