/* THE YARD — fuller, wider web layout on laptops and big screens (phones are unchanged). */
@media (min-width:1200px){
  .yard-app .app,.app{width:min(100% - 56px,1600px);grid-template-columns:250px minmax(0,1fr) 360px;gap:44px}
  .yard-app .site-head .wrap{width:min(100% - 56px,1600px)}
  .app-main{max-width:720px}
  /* pages without the right-hand column use the whole middle */
  .app:not(:has(.app-rail)) .app-main{max-width:1160px}
  .app-rail{gap:18px}

  /* profile: bigger, bolder header */
  .pf-row{gap:56px;padding:8px 0 4px}
  .pf-avatar .pf-av{width:160px!important;height:160px!important;font-size:3.2rem}
  .pf-name{font-size:1.7rem!important;letter-spacing:-.01em}
  .pf-stats{justify-content:start!important;gap:44px!important;margin-top:6px}
  .pf-stats>*{font-size:1rem!important}
  .pf-stats b{font-size:1.45rem!important}
  .pf-bio{font-size:1.02rem;line-height:1.55;max-width:640px}
  .pf-actions{max-width:640px}
  .pf-btn{min-height:44px;font-size:.98rem}
  .pf-grid{gap:4px!important}
  .pf-tile{border-radius:6px!important}
  .tg-row{gap:26px}.tg{width:86px}.tg-disc{width:82px;height:82px}.tg small{font-size:.82rem;max-width:90px}
  .md-card{width:180px}
}
@media (min-width:1600px){
  .yard-app .app,.app{grid-template-columns:270px minmax(0,1fr) 380px;gap:52px}
  .app-main{max-width:780px}
  .app:not(:has(.app-rail)) .app-main{max-width:1240px}
}

/* Phone ☰ menu: scrolls on its own, nothing covers the bottom items */
@media (max-width:1240px){
  details.menu[open] nav{max-height:none!important;height:calc(100dvh - var(--menu-top,60px))!important;overflow-y:auto!important;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding-bottom:calc(40px + env(safe-area-inset-bottom))!important}
  body:has(details.menu[open]){overflow:hidden}
  body:has(details.menu[open]) .tabbar,body:has(details.menu[open]) .ask-fab,body:has(details.menu[open]) [class*="ai-fab"]{display:none!important}
}
