/* HeuMed v1.0.11 — selective density adjustments, preserve typography and tap targets */
:root{--hm-density-section:clamp(44px,5vw,70px)}
/* Homepage and shared headings */
.sec{padding-block:var(--hm-density-section)}
.sec-head{margin-bottom:clamp(20px,2.6vw,34px)}
.sec-head .eyebrow{margin-bottom:9px}
.sec-head h2{margin-block:0 10px}
.sec-head>p:last-child{margin-bottom:0}
.hero-grid{padding-top:clamp(38px,5vw,64px)}
.hero-copy{padding-bottom:clamp(32px,5vw,68px)}
#services{padding-top:clamp(44px,5vw,70px)}
.svc-detail,.panel{padding:clamp(22px,3vw,32px);gap:clamp(14px,2vw,22px);min-height:0}
.svc-btn{padding-block:16px}
#method .steps,#serve .serve-grid,#about .about{margin-top:0}
.mstep,.pcard{min-height:0}
#knowledge.hm-knowledge-v104{padding-block:clamp(42px,5vw,68px)}
#knowledge .hm-k-intro{margin-bottom:clamp(18px,2.5vw,30px)}
#knowledge .hm-k-card{min-height:0}
#knowledge .hm-k-card.hm-k-featured{min-height:0}
#knowledge .hm-k-editorial-grid{gap:clamp(12px,1.5vw,20px)}
#knowledge .hm-k-footer{margin-top:clamp(18px,2vw,28px)}
#faq .faq{margin-top:0}
#request{padding-block:clamp(40px,4.5vw,64px)}
#request .hm-contact-layout{margin-top:0}
#request .hm-contact-form,#request .hm-contact-aside{min-height:0}
.cta.hm-contact-compact{padding-block:clamp(26px,3.5vw,44px)}
.footer{padding-top:clamp(34px,4vw,58px)}
.footer .ft-grid{gap:clamp(18px,2.5vw,32px)}
.footer .ft-bottom{margin-top:clamp(22px,3vw,40px)}
/* Seven service details: natural card height, compact sections */
body.hm-service-v108 .detail-hero{padding-top:20px;padding-bottom:clamp(28px,3.5vw,44px)}
body.hm-service-v108 .detail-body,body.hm-service-v108 .detail-features,body.hm-service-v108 .detail-steps,body.hm-service-v108 .related{padding-block:clamp(34px,4vw,54px)}
body.hm-service-v108 .features li{min-height:0;padding:clamp(18px,2vw,24px);gap:12px;justify-content:flex-start}
body.hm-service-v108 .mini-steps li{min-height:0;padding:16px}
body.hm-service-v108 .detail-cta{padding-block:clamp(32px,4vw,54px)}
/* Knowledge internal hub: compress empty shelves without hiding category information */
.k-hero{padding-block:clamp(38px,5vw,60px)}
.hm-k-topics{margin-block:clamp(24px,3vw,40px)}
.lib{padding-block:clamp(32px,4vw,54px);gap:clamp(20px,3vw,38px)}
body.hm-knowledge-empty .shelf{padding-bottom:18px;margin-bottom:18px}
body.hm-knowledge-empty .shelf-head{margin-bottom:10px}
body.hm-knowledge-empty .empty{margin-bottom:12px;padding-block:12px}
.k-cta{padding-block:clamp(32px,4vw,54px)}
/* Tablet and phone: independently tuned spacing, no font shrinking */
@media(max-width:900px){:root{--hm-density-section:clamp(34px,5vw,52px)}.hero-grid{padding-top:32px}.hero-copy{padding-bottom:24px}.lib{gap:24px}}
@media(max-width:600px){:root{--hm-density-section:34px}.sec-head{margin-bottom:20px}.hero-grid{padding-top:26px}.hero-copy{padding-bottom:18px}.svc-detail,.panel{padding:20px;gap:14px}#knowledge.hm-knowledge-v104{padding-block:34px}#knowledge .hm-k-intro{margin-bottom:20px}#knowledge .hm-k-editorial-grid{gap:12px}#request{padding-block:34px}.cta.hm-contact-compact{padding-block:26px}.footer{padding-top:30px}body.hm-service-v108 .detail-hero{padding-bottom:26px}body.hm-service-v108 .detail-body,body.hm-service-v108 .detail-features,body.hm-service-v108 .detail-steps,body.hm-service-v108 .related{padding-block:32px}.k-hero{padding-block:34px}.lib{padding-block:28px}.k-cta{padding-block:30px}}
