/* Keep text within the available column, including narrow phone screens. */
main,section,.wrap,header .nav{min-width:0}
main :where(h1,h2,h3,p,li,summary){overflow-wrap:anywhere}
:where(.hero-grid,.direction-head,.program-columns,.game-depth-grid,.certificate-grid,.coordinate-detail,.bio-facts,.event-grid,.format-grid)>*{min-width:0}
:where(.direction-head,.page-intro) :where(h1,h2){max-width:100%;text-wrap:balance}
@media(max-width:1100px){
 header .nav .navcta{display:none!important}
 header .nav>nav{left:0;right:0;width:100%;box-sizing:border-box}
 header .nav>nav>*{min-width:0;white-space:normal;overflow-wrap:anywhere}
}
@media(max-width:800px){
 header .nav{gap:8px}
 header .logo{flex-shrink:0}
 .main-menu-toggle{flex-shrink:0;white-space:nowrap}
 .direction-head :where(h1,h2),.expedition-entry .direction-head h1{font-size:clamp(30px,8vw,44px);line-height:1.15}
 .page-intro h1{font-size:clamp(30px,8vw,44px);line-height:1.15}
 .hero h1{font-size:clamp(32px,9vw,46px)}
 .hero-wordmark{max-width:100%}
 .hero-wordmark>span{font-size:clamp(32px,10vw,49px);letter-spacing:clamp(3px,1vw,7px)}
 :where(.hero-grid,.program-columns,.game-depth-grid,.certificate-grid){grid-template-columns:minmax(0,1fr)}
 #inquiry{box-sizing:border-box;width:calc(100% - 24px);max-width:560px;padding:26px 20px}
 #inquiry :where(input,select,textarea){box-sizing:border-box;min-width:0;max-width:100%;width:100%}
}
@media(max-width:360px){header .logo{font-size:20px;letter-spacing:2px}header .logo .brand-compass{width:27px;height:27px}.main-menu-toggle{font-size:10px;padding:9px 6px}}

/* Keep the game entry and deck preview aligned without clipping on phones. */
.expedition-actions{align-items:center;gap:16px 30px}
.expedition-actions>a{box-sizing:border-box;min-width:0;max-width:100%;line-height:1.5;white-space:normal}
.expedition-actions>.textlink{display:inline-flex;align-items:center;gap:9px}
.expedition-actions>.textlink:before{flex:0 0 25px;margin-right:0}
.expedition-actions>.btn:before{flex-shrink:0}
@media(max-width:600px){.expedition-actions{flex-direction:column;align-items:flex-start;gap:14px}.expedition-actions>.btn{width:100%;text-align:center}.expedition-actions>.textlink{align-self:flex-start}}
