/* Phone layout: wrap text and keep fixed-width desktop grids out of the viewport. */
@media (max-width: 760px) {
 html,body{min-width:0;width:100%;margin:0}
 .site-header{position:relative;height:auto;display:grid;grid-template-columns:minmax(0,1fr);gap:12px;padding:16px;min-width:0}
 .brand{min-width:0;max-width:100%}.brand-name{font-size:20px}.brand-name small{font-size:11px}
 .main-nav{order:3;height:40px;gap:24px;min-width:0;flex-wrap:wrap}.nav-link{font-size:13px}
 .header-actions{min-width:0;max-width:100%;display:flex;flex-wrap:wrap;gap:10px;justify-content:flex-start}.header-actions>a{font-size:12px}.header-actions form{margin:0}.header-actions .button{white-space:normal}
 .announcement{height:auto;min-height:30px;padding:7px 12px;flex-wrap:wrap;gap:4px 7px;text-align:center;font-size:10px}
 .marketplace-category-nav{width:100%;max-width:100%;padding:0 16px;gap:20px;overflow-x:auto;flex-wrap:nowrap}.marketplace-category-nav a{flex-shrink:0}
 .page-shell{width:100%;max-width:100%;min-width:0;padding:16px 12px 32px}
 .page-shell>*{min-width:0;max-width:100%}
 .hero{padding:22px 16px 16px;min-height:0;margin-bottom:18px;max-width:100%}
 .hero:after{display:none}.hero-copy{width:100%;max-width:100%;min-width:0}
 .hero h1{font-size:clamp(25px,7vw,34px);line-height:1.15;white-space:normal;max-width:100%;overflow-wrap:break-word;margin-bottom:12px}
 .hero-copy p{max-width:100%;font-size:13px;line-height:1.65}.hero-stamp{display:none}
 .hero .search-bar{position:relative;left:auto;right:auto;bottom:auto;width:100%;height:auto;min-height:0;margin-top:20px;padding:8px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;border-radius:10px}
 .hero .search-bar>*{min-width:0;max-width:100%}
 .hero .search-bar .search-category{display:flex!important;grid-column:1;grid-row:1;border:1px solid #dfe7e2;border-radius:6px;min-height:46px;padding:0 8px}
 .hero .search-bar .location-picker{grid-column:2;grid-row:1;height:46px}
 .hero .search-bar .location-input-wrap{padding:0 5px;gap:4px;border:1px solid #dfe7e2;min-width:0}
 .hero .search-bar .location-input-wrap>svg{width:18px;height:18px}.hero .search-bar .location-input-wrap input{font-size:13px;width:100%;min-width:0}
 .hero .search-bar .search-query{grid-column:1/-1;grid-row:2;border:1px solid #dfe7e2;border-radius:6px;min-height:48px;padding:0 9px}
 .hero .search-bar input,.hero .search-bar select{min-width:0;max-width:100%;font-size:13px}
 .hero .search-bar .search-submit{grid-column:1/-1;grid-row:3;width:100%;height:46px;font-size:14px}
 .hero .location-panel{width:min(360px,calc(100vw - 64px));right:0;left:auto}
 .marketplace-layout,.right-sidebar{grid-template-columns:minmax(0,1fr);min-width:0}
 .section-heading,.jobs-heading,.job-ads-heading,.jobs-bottom-actions{flex-wrap:wrap;gap:12px}.section-heading>div,.jobs-heading>div{min-width:0}
 .section-heading h2,.jobs-heading h2{font-size:21px}.section-heading p,.jobs-heading p{font-size:12px}
 .listing-toolbar{flex-wrap:wrap;font-size:12px;gap:12px}.listing-toolbar>span{min-width:0}
 .medical-category-tiles{margin:16px 0;padding:12px}.category-tile-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.category-tile{min-width:0;padding:10px 8px;min-height:86px}.category-tile strong{font-size:11px;white-space:normal;overflow-wrap:anywhere}.category-tile small{font-size:9px;white-space:normal}
 .product-grid{grid-template-columns:minmax(0,1fr)}.product-image{height:200px}.product-info{padding:14px}.product-info h3{font-size:16px}.product-price{font-size:18px}
 .results-product-actions,.product-actions{flex-wrap:wrap}.results-product-actions .button{min-height:40px}
 .owner-panel,.featured-panel{min-width:0}.store-panel-search{width:100%;min-width:0}.store-panel-search input{min-width:0;font-size:14px}
 .people-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.person-card{min-width:0;overflow-wrap:anywhere}.person-card h3{font-size:14px}.person-card p{font-size:12px}.person-card .button{white-space:normal;font-size:11px;padding:8px}
 .footer-columns{grid-template-columns:repeat(2,minmax(0,1fr))}.site-footer{padding-left:16px;padding-right:16px}.footer-columns>div{min-width:0;overflow-wrap:anywhere}
 .profile-editor,.auth-card{min-width:0;max-width:100%}.profile-form-actions{flex-wrap:wrap}
}
@media(max-width:360px){.hero .search-bar{grid-template-columns:minmax(0,1fr)}.hero .search-bar .search-category{grid-column:1;grid-row:1}.hero .search-bar .location-picker{grid-column:1;grid-row:2}.hero .search-bar .search-query{grid-row:3}.hero .search-bar .search-submit{grid-row:4}.people-grid{grid-template-columns:minmax(0,1fr)}}
