/* MC03 1.1.22 — approved responsive 3/2/1 master profile; all permissions stay in PHP. */
/* Keep the original layout owned only by Section 03 and retain responsive site header. */
body .mc-bp.mc03-master-profile{position:relative!important;box-sizing:border-box!important;max-width:none!important;width:min(1480px,calc(100vw - 48px))!important;padding:0 8px!important;margin:22px auto 54px!important;left:50%!important;transform:translateX(-50%)!important;min-width:0!important;}
body .mc-bp.mc03-master-profile .mc-bp__layout{display:grid!important;grid-template-columns:minmax(0,2.25fr) minmax(272px,.85fr)!important;gap:16px!important;align-items:start!important;}
body .mc-bp.mc03-master-profile .mc-bp__layout > main.mc03-profile-primary{display:grid!important;grid-template-columns:minmax(0,.97fr) minmax(0,1.03fr)!important;gap:16px!important;min-width:0!important;align-items:start!important;}
body .mc-bp.mc03-master-profile .mc-bp__layout > main.mc03-profile-primary > .mc03-profile-column{display:flex!important;flex-direction:column!important;gap:14px!important;min-width:0!important;align-items:stretch!important;}
body .mc-bp.mc03-master-profile .mc-bp__layout > main.mc03-profile-primary > .mc03-profile-column > .mc-bp__card{width:100%!important;box-sizing:border-box!important;margin:0!important;min-width:0!important;grid-column:auto!important;grid-row:auto!important;}
body .mc-bp.mc03-master-profile .mc-bp__layout > aside.mc03-profile-sidebar{display:flex!important;flex-direction:column!important;gap:14px!important;position:static!important;min-width:0!important;}
body .mc-bp.mc03-master-profile .mc-bp__layout > aside.mc03-profile-sidebar > .mc-bp__card{margin:0!important;min-width:0!important;}
/* Photo tiles must control aspect ratio themselves, not inherit former 240px link height. */
body .mc-bp.mc03-master-profile #mc-profile-gallery .mc-bp__gallery{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;margin-top:14px!important;align-items:start!important;}
body .mc-bp.mc03-master-profile #mc-profile-gallery .mc-bp__gallery-link{display:block!important;position:relative!important;aspect-ratio:4/3!important;width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:hidden!important;grid-column:auto!important;grid-row:auto!important;background:#e9f0f7!important;border-radius:11px!important;}
body .mc-bp.mc03-master-profile #mc-profile-gallery .mc-bp__gallery-link:first-child{grid-column:1/-1!important;aspect-ratio:16/9!important;}
body .mc-bp.mc03-master-profile #mc-profile-gallery .mc-bp__gallery-link > img{display:block!important;position:absolute!important;inset:0!important;max-width:none!important;width:100%!important;height:100%!important;min-height:0!important;max-height:none!important;object-fit:cover!important;object-position:center!important;border:0!important;border-radius:0!important;margin:0!important;}
body .mc-bp.mc03-master-profile #mc-profile-gallery .mc-bp__gallery-expand{z-index:1!important;}
body .mc-bp.mc03-master-profile .mc03-profile-column--details .mc03-services-grid{grid-template-columns:repeat(auto-fit,minmax(135px,1fr))!important;}
body .mc-bp.mc03-master-profile .mc03-profile-sidebar .mc-bp__contact-actions,body .mc-bp.mc03-master-profile .mc03-profile-sidebar .mc03-qa-contact-methods{grid-template-columns:1fr!important;}
/* Brand icons use local icon font if present and always retain visible text labels. */
body .mc-bp.mc03-master-profile .mc03-social-canonical__grid{grid-template-columns:repeat(auto-fit,minmax(130px,1fr))!important;gap:8px!important;}
body .mc-bp.mc03-master-profile .mc03-social-canonical__link{display:flex!important;justify-content:flex-start!important;gap:10px!important;min-height:48px!important;}
body .mc-bp.mc03-master-profile .mc03-social-icon{display:inline-grid;place-items:center;flex:0 0 32px;width:32px;height:32px;background:#16446d;color:white;border-radius:9px;font-size:16px!important;}
body .mc-bp.mc03-master-profile .mc03-social-icon--facebook{background:#1877f2;}
body .mc-bp.mc03-master-profile .mc03-social-icon--instagram{background:#c13584;}
body .mc-bp.mc03-master-profile .mc03-social-icon--youtube{background:#f00;}
body .mc-bp.mc03-master-profile .mc03-social-icon--tiktok{background:#101010;}
body .mc-bp.mc03-master-profile .mc03-social-icon--linkedin{background:#0a66c2;}
body .mc-bp.mc03-master-profile .mc03-social-icon--x{background:#111;}
body .mc-bp.mc03-master-profile .mc03-social-icon--website{background:#174563;}
body .mc-bp.mc03-master-profile .mc03-social-canonical__link > span:last-child:not(.mc03-social-icon){margin-left:auto;}
/* Hero/service strip and anchored tab nav use the full available width. */
body .mc-bp.mc03-master-profile .mc-bp__hero{min-height:210px!important;}
body .mc-bp.mc03-master-profile [id^="mc-profile-"]{scroll-margin-top:115px!important;}
@media(min-width:1100px){body .mc-bp.mc03-master-profile .mc-bp__layout{grid-template-columns:minmax(0,2.23fr) minmax(278px,.84fr)!important;}}
@media(min-width:768px) and (max-width:1099px){
  body .mc-bp.mc03-master-profile{width:calc(100vw - 32px)!important;padding:0!important;}
  body .mc-bp.mc03-master-profile .mc-bp__layout{grid-template-columns:minmax(0,1fr) minmax(250px,.54fr)!important;gap:12px!important;}
  body .mc-bp.mc03-master-profile .mc-bp__layout > main.mc03-profile-primary{grid-template-columns:minmax(0,1fr)!important;gap:13px!important;}
  body .mc-bp.mc03-master-profile .mc03-profile-column--media .mc-bp__gallery{grid-template-columns:repeat(3,minmax(0,1fr))!important;}
  body .mc-bp.mc03-master-profile .mc03-profile-column--media .mc-bp__gallery-link:first-child{grid-column:1 / -1!important;}
}
@media(max-width:767px){
  body .mc-bp.mc03-master-profile{width:calc(100vw - 22px)!important;padding:0!important;left:auto!important;transform:none!important;margin:12px auto 42px!important;}
  body .mc-bp.mc03-master-profile .mc-bp__layout{grid-template-columns:minmax(0,1fr)!important;gap:13px!important;}
  body .mc-bp.mc03-master-profile .mc-bp__layout > main.mc03-profile-primary{grid-template-columns:minmax(0,1fr)!important;gap:13px!important;}
  body .mc-bp.mc03-master-profile .mc-bp__layout > main.mc03-profile-primary > .mc03-profile-column{gap:12px!important;}
  body .mc-bp.mc03-master-profile .mc-bp__hero{padding:20px 15px!important;min-height:0!important;}
  body .mc-bp.mc03-master-profile .mc-bp__hero h1{font-size:clamp(23px,6vw,34px)!important;overflow-wrap:anywhere!important;}
  body .mc-bp.mc03-master-profile .mc-bp__brand{flex-wrap:wrap!important;}
  body .mc-bp.mc03-master-profile .mc-profile-v112-tabs{display:flex!important;flex-wrap:nowrap!important;overflow-x:auto!important;overscroll-behavior-x:contain!important;scroll-snap-type:x proximity!important;}
  body .mc-bp.mc03-master-profile .mc-profile-v112-tabs a{flex:0 0 auto!important;min-height:44px!important;scroll-snap-align:start!important;}
  body .mc-bp.mc03-master-profile .mc-bp__contact-actions{grid-template-columns:1fr!important;}
  body .mc-bp.mc03-master-profile .mc03-social-canonical__grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}
@media(max-width:390px){
  body .mc-bp.mc03-master-profile .mc03-social-canonical__grid{grid-template-columns:1fr!important;}
  body .mc-bp.mc03-master-profile #mc-profile-gallery .mc-bp__gallery{gap:7px!important;}
  body .mc-bp.mc03-master-profile .mc-bp__card{padding:15px!important;}
}
@media(prefers-reduced-motion:reduce){body .mc-bp.mc03-master-profile *{scroll-behavior:auto!important;}}
