/* FMT public mobile-first UI. Desktop remains unchanged. */
.fmt-mobile-search-intro,.fmt-mobile-category-tabs,.fmt-public-app-nav{display:none}
@media(max-width:767px){
 :root{--fmt-mobile-navy:#102e43;--fmt-mobile-teal:#007d77}
 html{scroll-padding-top:76px}
 body:not(.fmt-dashboard-page):not(.fmt-student-page){background:#f7fafb!important;padding-bottom:calc(76px + env(safe-area-inset-bottom,0px))!important}
 body:not(.fmt-dashboard-page):not(.fmt-student-page) .site-header{position:sticky!important;top:0!important;z-index:900!important;background:#fff!important;box-shadow:0 1px 10px rgba(12,45,55,.07)!important}
 body:not(.fmt-dashboard-page):not(.fmt-student-page) .site-header .header-inner{min-height:66px!important;padding-block:5px!important}
 body:not(.fmt-dashboard-page):not(.fmt-student-page) .site-header .brand img{width:auto!important;max-width:124px!important;max-height:49px!important;object-fit:contain!important}
 body:not(.fmt-dashboard-page):not(.fmt-student-page) .fmt-social-float,
 body:not(.fmt-dashboard-page):not(.fmt-student-page) .fmt-mobile-actions,
 body:not(.fmt-dashboard-page):not(.fmt-student-page) .fmt-callback-tab{display:none!important}
 .hero{padding:0!important;background:linear-gradient(180deg,#f3fbff 0%,#f8fbfb 100%)!important}
 .hero>.container.hero-grid{display:none!important}
 .fmt-mobile-search-intro{display:block!important;padding-top:22px!important;padding-bottom:16px!important}
 .fmt-mobile-eyebrow{display:block;font-size:10px;font-weight:800;letter-spacing:.2em;color:#007f80;margin-bottom:10px}
 .fmt-mobile-search-intro h2{font-size:clamp(25px,7.3vw,33px)!important;line-height:1.18!important;letter-spacing:-.035em!important;color:#102c40!important;margin:0 0 9px!important;font-weight:800!important}
 .fmt-mobile-search-intro h2 em{color:#007e7b;font-style:normal}
 .fmt-mobile-search-intro p{font-size:12px!important;line-height:1.5!important;color:#536b79!important;margin:0!important}
 #fmt-home-search.search-panel{position:static!important;transform:none!important;display:block!important;width:100%!important;max-width:100%!important;margin:0 auto 18px!important;padding:15px 14px 17px!important;border:1px solid #e4ebef!important;border-radius:18px!important;background:#fff!important;box-shadow:0 8px 28px rgba(16,45,60,.075)!important}
 #fmt-home-search .panel-head{display:none!important}
 #fmt-home-search .fmt-mobile-category-tabs{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;margin:0 0 14px}
 #fmt-home-search .fmt-mobile-category-tabs button{border:0;border-radius:22px;padding:10px 2px;min-width:0;min-height:41px;background:#f0f4f7;color:#334b5c;font-size:12px;font-weight:650;cursor:pointer}
 #fmt-home-search .fmt-mobile-category-tabs button.is-active{background:#007e79;color:#fff;box-shadow:0 2px 6px rgba(0,126,121,.16)}
 #fmt-home-search .search-fields{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:11px!important}
 #fmt-home-search .search-fields>label{display:flex!important;flex-direction:column!important;min-width:0!important;width:100%!important;gap:5px!important;margin:0!important}
 #fmt-home-search .search-fields>label>span{font-size:12px!important;font-weight:700!important;color:#334d5c!important}
 #fmt-home-search :is(input,select){display:block!important;width:100%!important;max-width:100%!important;min-height:46px!important;padding:10px 13px!important;font-size:16px!important;color:#193b4c!important;background:#fff!important;border:1px solid #dbe7e9!important;border-radius:11px!important;box-shadow:none!important}
 #fmt-home-search :is(input,select):focus-visible{outline:2px solid #078b84!important;outline-offset:1px}
 #fmt-home-search .search-fields>button[type=submit]{display:block!important;width:100%!important;min-height:50px!important;margin-top:4px!important;background:linear-gradient(115deg,#078f89,#006e6a)!important;border-radius:12px!important;font-size:15px!important;font-weight:800!important;color:#fff!important;box-shadow:0 5px 12px rgba(0,126,121,.16)!important}
 #categories{padding:22px 0 36px!important;background:#fff!important}
 #categories .section-head{margin-bottom:14px!important}
 #categories .section-head .eyebrow,#categories .section-head p{display:none!important}
 #categories .section-head h2{font-size:21px!important;line-height:1.2!important;letter-spacing:-.025em!important}
 #categories .section-head h2 br{display:none!important}
 #categories .category-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:9px 7px!important}
 #categories .category-card{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:flex-start!important;text-align:center!important;min-width:0!important;min-height:0!important;gap:6px!important;padding:9px 2px!important;background:transparent!important;border:0!important;box-shadow:none!important}
 #categories .category-card>img{width:52px!important;height:52px!important;max-width:52px!important;padding:11px!important;border-radius:50%!important;background:#e6f5fa!important;object-fit:contain!important}
 #categories .category-card:nth-child(4n+2)>img{background:#fbe8f1!important}
 #categories .category-card:nth-child(4n+3)>img{background:#fff0e4!important}
 #categories .category-card:nth-child(4n+4)>img{background:#e2f7ed!important}
 #categories .category-card .category-info{padding:0!important;margin:0!important;min-width:0!important}
 #categories .category-card h3{font-size:11px!important;line-height:1.2!important;font-weight:700!important;overflow-wrap:anywhere!important;margin:0!important}
 #categories .category-card p,#categories .category-card .category-info>span{display:none!important}
 .fmt-public-app-nav{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));position:fixed;left:0;right:0;bottom:0;z-index:990;height:calc(64px + env(safe-area-inset-bottom,0px));padding:5px 8px env(safe-area-inset-bottom,0px);background:#fff;border-top:1px solid #e2eaee;box-shadow:0 -5px 18px rgba(17,48,67,.06)}
 .fmt-public-app-nav a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-width:0;text-decoration:none;color:#415b70!important;font-size:11px!important;font-weight:650!important;border-radius:9px}
 .fmt-public-app-nav a.active{color:#007f80!important}
 .fmt-public-app-nav svg{width:23px;height:23px;flex:0 0 23px}
 .fmt-public-app-nav a.active:after{content:'';position:absolute;bottom:env(safe-area-inset-bottom,0px);width:37px;height:3px;border-radius:4px;background:#007f80}
 .footer{padding-bottom:24px!important}
}
@media(min-width:768px){.fmt-public-app-nav,.fmt-mobile-search-intro,.fmt-mobile-category-tabs{display:none!important}}

/* Social shortcuts: mobile viewport centre; messaging remains icon-free. */
@media(max-width:767px){
 body .fmt-social-float{position:fixed!important;left:6px!important;right:auto!important;top:50%!important;bottom:auto!important;transform:translateY(-50%)!important;display:flex!important;flex-direction:column!important;gap:7px!important;z-index:90!important}
 body .fmt-social-float a{width:34px!important;height:34px!important}
 body.fmt-messages-page .fmt-social-float{display:none!important}
}
