/* TPR mobile-first usability layer. Loaded after each page's existing styles. */
*{min-width:0}
html,body{max-width:100%;overflow-x:clip}
img,video,canvas,iframe{max-width:100%}
button,a,input,select,textarea{max-width:100%}
@media(max-width:700px){
 .container,.wrap,.feed-page-main,.feed-page-panels,.feed-page-hero,.page-container,.content,.main-content{width:100%;max-width:100%;min-width:0}
 .feed-page-main{padding-left:12px!important;padding-right:12px!important}
 .feed-page-hero{display:flex!important;flex-direction:column;gap:16px!important;padding:22px 16px!important}
 .feed-page-hero h1{font-size:clamp(42px,12vw,64px)!important;overflow-wrap:anywhere}
 .feed-page-panels{padding:12px!important}
 .feed-head{align-items:flex-start!important;flex-direction:column!important}
 .feed-head h2{font-size:clamp(26px,7vw,34px)!important}
 .feed-list{grid-template-columns:minmax(0,1fr)!important}
 .feed-tabs{display:flex!important;overflow-x:auto!important;gap:8px!important;padding-bottom:12px}
 .feed-tabs button{flex:0 0 auto!important;min-height:42px}
 .feed-card,.feed-consent,.feed-profile{padding:14px!important}
 .topbar,.header{max-width:100vw}
 .hero{grid-template-columns:minmax(0,1fr)!important}
 .hero-art{min-width:0!important}
 .nav{max-width:100%}
}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}


/* TPR mobile-only signature collage background supplied by the owner.
   Desktop styling is intentionally unchanged. */
@media (max-width: 700px){
  html, body{
    background-color:#d99aa8!important;
    background-image:linear-gradient(rgba(255,220,230,.06),rgba(255,220,230,.06)),url('/assets/tpr-mobile-collage-background.jpeg')!important;
    background-size:100% auto!important;
    background-position:center top!important;
    background-repeat:repeat-y!important;
    background-attachment:scroll!important;
  }
  /* Pages with a dedicated outer background layer use the same mobile artwork. */
  .bg{
    background-image:linear-gradient(rgba(255,220,230,.06),rgba(255,220,230,.06)),url('/assets/tpr-mobile-collage-background.jpeg')!important;
    background-size:100% auto!important;
    background-position:center top!important;
    background-repeat:repeat-y!important;
    background-attachment:scroll!important;
  }
}
