/* 2026-11-09: mobile horizontal overflow repair.
   Fit intrinsic-width components instead of clipping their content. */
@media(max-width: 780px){
  html{width:100%;max-width:100%;overflow-x:clip}
  body.oy-theme{width:100%;max-width:100%;overflow-x:clip}
  .oy-header,.oy-main,.oy-footer,.oy-hero,.oy-home,
  .oy-home-stream,.oy-daily-hub,.oy-discovery,.oy-forest-lux-v2{
    max-width:100%;min-width:0;
  }
  .oy-shell,.oy-header-inner,.oy-footer-main,.oy-home-grid,
  .oy-home-stream-list,.oy-daily-grid,.oy-daily-card,
  .oy-daily-card-body,.oy-question-card,.oy-mood-strip,
  .oy-mood-links,.oy-stream-card,.oy-stream-copy,
  .oy-home-trees-grid,.oy-home-trees-card,.oy-forest-lux-content,
  .oy-categories,.oy-sidebar,.oy-today-quote{
    min-width:0;max-width:100%;box-sizing:border-box;
  }
  .oy-shell{width:calc(100% - 32px);margin-inline:auto}
  .oy-mobile-panel{width:100%!important;max-width:100%!important;left:0!important;right:0!important;box-sizing:border-box}
  .oy-mobile-nav,.oy-mobile-links,.oy-mobile-links li{min-width:0;max-width:100%}
  body.home .oy-compact-navigation{width:100%;max-width:100%;min-width:0;flex-wrap:wrap}
  body.home .oy-compact-navigation a{min-width:0;white-space:normal}
  body.home .oy-hero-actions{max-width:100%;flex-wrap:wrap}
  body.home .oy-hero-actions>.oy-btn{min-width:0;max-width:100%}
  body.home .oy-hero h1,body.home .oy-hero h1 span{max-width:100%;overflow-wrap:anywhere}
  body.home .oy-daily-hub>.oy-shell>.oy-discovery>.oy-shell,
  body.home .oy-daily-hub>.oy-shell>.oy-shell{width:100%;max-width:100%}
  body.home .oy-daily-grid,
  body.home .oy-home-trees-grid,
  body.home .oy-home-grid,
  body.home .oy-sidebar,
  body.home .oy-mood-strip{grid-template-columns:minmax(0,1fr)!important}
  body.home .oy-daily-hub .oy-mood-strip{display:grid!important}
  body.home .oy-daily-hub .oy-mood-links{display:flex;flex-wrap:wrap;flex-basis:auto;min-width:0;gap:8px}
  body.home .oy-daily-hub .oy-mood-links>a{max-width:100%;overflow-wrap:anywhere}
  body.home .oy-question-foot{min-width:0}
  body.home .oy-question-foot>a{max-width:100%;overflow-wrap:anywhere}
  body.home .oy-daily-card img,.oy-home-stream img{max-width:100%;height:auto}
  body.home .oy-daily-more,body.home .oy-daily-more summary{max-width:100%;min-width:0}
  body.home .oy-home .oy-categories{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body.home .oy-home .oy-cat{min-width:0;overflow-wrap:anywhere}
  body.home .oy-forest-lux-v2 .oy-home-trees-heading h2{overflow-wrap:break-word!important}
  .oy-tree-page,.oy-tree-panel,.oy-tree-canvas,.oy-tree-bottom,
  .oy-forest-page,.oy-forest-landscape{max-width:100%;min-width:0}
  .oy-tree-page .oy-tree-metrics>div{min-width:0}
}
@media(max-width:380px){
  body.home .oy-home .oy-categories{grid-template-columns:minmax(0,1fr)!important}
  body.home .oy-compact-navigation a{font-size:11px}
}
