/* Public mobile layouts: preserve category-specific content and desktop styling. */
.at-map-jumps,.at-job-filter-jump{display:none}
@media(max-width:899px){
 html[data-at-style] #main-content :is(.at-category-page,.at-search-shell,.page){min-width:0;max-width:100%}
 html[data-at-style] .at-category-page :is(.at-layout,.duo,.tail){display:grid;grid-template-columns:minmax(0,1fr)!important;gap:14px}
 html[data-at-style] .at-category-page .at-main{min-width:0;width:100%;box-sizing:border-box}
 html[data-at-style] .at-category-page .at-side{display:none}
 html[data-at-style] .at-category-page :is(.cards,.cards.list){grid-template-columns:minmax(0,1fr)!important}
 html[data-at-style] .at-category-page :is(.tools,.more,.sf){display:flex;flex-wrap:wrap;gap:8px;align-items:center}
 html[data-at-style] .at-category-page .find{flex:1 0 100%;min-width:0}
 html[data-at-style] .at-category-page .find input{width:100%;min-width:0;font-size:16px}
 html[data-at-style] .at-category-page :is(.tg,.chip,.more a,.btn),html[data-at-style] #main-content :is(.pager a,.community-switch a,.action-row a){min-height:44px;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box}
 html[data-at-style] .at-category-page .chips{display:flex;flex-wrap:nowrap;overflow-x:auto;max-width:100%;padding-block:6px}
 html[data-at-style] .at-category-page .chips a{flex-shrink:0}
 html[data-at-style] .at-search-design :is(.s-bar,.r-tools){display:flex;flex-wrap:wrap;gap:8px}
 html[data-at-style] .at-search-design :is(.s-bar input,.s-bar select){min-width:0;max-width:100%;font-size:16px;flex:1 1 180px}
 html[data-at-style] .at-search-design .r-wrap,html[data-at-style] #main-content .page :is(.detail-grid,.result-grid,.filter-grid,.hero-grid,.map-layout){grid-template-columns:minmax(0,1fr)!important;gap:12px}
 html[data-at-style] #main-content .page :is(.detail-main,.detail-side,.result-card,.job,.map-list){min-width:0;max-width:100%;box-sizing:border-box}
 html[data-at-style] #main-content .page :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea){max-width:100%;font-size:16px;box-sizing:border-box}
 html[data-at-style] #main-content .page :is(.pager,.community-switch,.action-row){display:flex;flex-wrap:wrap;gap:8px}
 html[data-at-style] .community-events .calendar-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px}
 html[data-at-style] .community-jobs .job{display:flex;flex-wrap:wrap;gap:10px}
 html[data-at-style] .community-jobs .jobs-flex-main{flex:1 1 180px;min-width:0}
 html[data-at-style] .community-jobs .job>.btn{flex:1 0 100%}
 html[data-at-style] .map-view-page .local-map{min-height:300px;height:48vh;max-height:440px}
 html[data-at-style] .map-view-page .map-list{border:1px solid var(--line);border-radius:18px 18px 8px 8px;background:var(--surface);padding:16px;max-height:none;overflow:visible}
 html[data-at-style] .map-view-page .map-list ol{max-height:none;overflow:visible}
 html[data-at-style] :is(.at-map-jumps,.at-job-filter-jump){display:flex;gap:12px;padding:10px 0;color:var(--green)}
 html[data-at-style] .at-map-jumps a{display:inline-flex;align-items:center;min-height:44px;color:var(--green)}
 html[data-at-style] #main-content :is(#atMap,#map-places,#job-filters){scroll-margin-top:90px}
 html[data-at-style] #main-content :is(.page,.profile) img{max-width:100%}
 html[data-at-style] #main-content :is(.page,.profile) :is(a,button,input,select,textarea):focus-visible{outline:2px solid var(--green);outline-offset:3px}
}

/* Map list enhancement; server-rendered list remains available without JS. */
.at-map-sheet-toggle[hidden],.at-map-place-focus[hidden],#map-sheet-content[hidden]{display:none!important}
.at-map-place-enhanced>.at-map-place-number{display:none}
.at-map-place-focus{min-width:44px;min-height:44px;border:1px solid var(--line);border-radius:50%;background:var(--surface);color:var(--ink);font:inherit;font-weight:700;cursor:pointer}
.map-list li.at-map-place-enhanced{grid-template-columns:44px minmax(0,1fr)}
.map-list li.at-map-selected{outline:2px solid var(--green);outline-offset:-2px}
@media(max-width:899px){
 .map-view-page .map-layout{gap:0!important}
 .map-view-page .map-list{position:relative;margin-top:-12px;z-index:1;border-radius:18px 18px 12px 12px;box-shadow:0 -4px 14px #0002}
 .at-map-sheet-heading{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px}
 .at-map-sheet-heading h2{margin:0;flex:1 1 140px}
 .at-map-sheet-toggle{min-height:44px;padding:8px 12px;border:1px solid var(--line);border-radius:10px;background:var(--surface-2);color:var(--ink);font:inherit}
 .map-view-page #map-sheet-content ol{max-height:42vh;overflow:auto;overscroll-behavior:contain;padding:3px}
 .map-view-page .map-list li>div{min-width:0;overflow-wrap:break-word}
 .map-view-page .map-list li a{display:inline-block;padding-block:6px}
}

/* Public information forms and comparison: scoped to the affected templates. */
@media(max-width:899px){
 .phase7-compare-page .compare-picker{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
 .phase7-compare-page .compare-picker label{display:grid;gap:6px;min-width:0}
 .phase7-compare-page .compare-picker select{width:100%;min-width:0;max-width:100%;font-size:16px;min-height:44px}
 .phase7-compare-page .compare-grid article{min-width:0;overflow-wrap:anywhere}
 .phase6-business-register .form-row{grid-template-columns:minmax(0,1fr)}
 .phase6-business-register .field{min-width:0}
 .phase6-business-register .field :is(input:not([type=checkbox]),select,textarea){max-width:100%;min-width:0;font-size:16px}
 #main-content .page .tablewrap{max-width:100%;overflow-x:auto}
}
