/* MEDIPHARM Clinical Suite v12.0.1 — Responsive Readability Typography Hotfix
 * Typography-only overlay. No layout, clinical data, navigation, personalization,
 * dark-mode palette, or calculation behavior changes.
 */

/* General app readability floor */
.nah-clinical-app,
.mcs-app-shell{font-size:16px}
.nah-clinical-app button,
.nah-clinical-app input,
.nah-clinical-app select,
.nah-clinical-app textarea{font-family:inherit}

/* Homepage section hierarchy */
.mcs-home-section-head h3{font-size:clamp(20px,1.35vw,23px)!important;line-height:1.24!important}
.mcs-home-section-head p{font-size:15px!important;line-height:1.5!important}
.mcs-home-section-more{font-size:14px!important;line-height:1.25!important;min-height:38px!important;padding:7px 10px!important}
.mcs-home-section-kicker{font-size:11.5px!important;line-height:1.2!important}
.mcs-home-priority-guard{font-size:14px!important;line-height:1.45!important}

/* Homepage tool cards */
.mcs-home-tool-copy strong{font-size:16px!important;line-height:1.34!important}
.mcs-home-tool-copy>span{font-size:14px!important;line-height:1.48!important}
.mcs-home-tool-copy small{font-size:13px!important;line-height:1.35!important}
.mcs-home-editorial-badge{font-size:11px!important;line-height:1.15!important;min-height:20px!important;padding:3px 7px!important}

/* Specialty/task cards */
.mcs-home-specialty-copy strong,
.mcs-home-specialty-card strong{font-size:14.5px!important;line-height:1.35!important}
.mcs-home-specialty-copy small,
.mcs-home-specialty-card small{font-size:12.5px!important;line-height:1.35!important}
.mcs-home-specialty-card>em{font-size:11.5px!important}
.mcs-home-task-card>strong{font-size:14.5px!important;line-height:1.35!important}
.mcs-home-task-detail h4{font-size:17px!important;line-height:1.3!important}
.mcs-home-task-detail p,.mcs-home-task-note{font-size:13.5px!important;line-height:1.5!important}

/* Topic filters / compact controls remain compact, but readable */
.mcs-topic-filter-label{font-size:11px!important}
.mcs-topic-filter button{font-size:12.5px!important;min-height:34px!important}
.mcs-topic-filter button b{font-size:11px!important}

/* Common catalogue/list readability */
.nah-clinical-section-title span,.nah-clinical-main-head span{font-size:14px!important;line-height:1.45!important}
.quick-item strong{font-size:16px!important;line-height:1.35!important}

/* Inputs: prevent small text and mobile browser zoom while improving legibility */
@media(max-width:900px){
  .nah-clinical-app input,
  .nah-clinical-app select,
  .nah-clinical-app textarea{font-size:16px!important}
}

/* Mobile/tablet: preserve single-column density while raising text floor. */
@media(max-width:760px){
  .mcs-home-section-head h3{font-size:20px!important;line-height:1.28!important}
  .mcs-home-section-head p{font-size:14px!important;line-height:1.48!important}
  .mcs-home-section-more{font-size:13.5px!important;min-height:36px!important;padding:6px 9px!important}
  .mcs-home-section .mcs-home-section-kicker{font-size:10.5px!important;line-height:1.2!important}
  .mcs-home-priority-guard{font-size:13.5px!important;line-height:1.45!important}

  .mcs-home-tool-card{min-height:86px!important;padding:10px!important}
  .mcs-home-tool-copy strong{font-size:15.5px!important;line-height:1.36!important}
  .mcs-home-tool-copy>span{font-size:13.5px!important;line-height:1.45!important;-webkit-line-clamp:2!important}
  .mcs-home-tool-copy small{font-size:12.5px!important;line-height:1.35!important}
  .mcs-home-editorial-badge{font-size:10.5px!important;min-height:19px!important;padding:2px 6px!important}

  .mcs-home-task-card>strong{font-size:14px!important;line-height:1.35!important}
  .mcs-home-specialty-copy strong,.mcs-home-specialty-card strong{font-size:14px!important;line-height:1.35!important}
  .mcs-home-specialty-copy small,.mcs-home-specialty-card small{font-size:12px!important;line-height:1.35!important}
  .mcs-home-specialty-card>em{font-size:11px!important}
  .mcs-topic-filter-label{font-size:10.5px!important}
  .mcs-topic-filter button{font-size:12px!important;min-height:34px!important}
}

/* Small phones: do not shrink typography further; allow cards to grow vertically. */
@media(max-width:390px){
  .mcs-home-tool-card{min-height:88px!important}
  .mcs-home-tool-copy strong{font-size:15px!important}
  .mcs-home-section-head h3{font-size:19px!important}
  .mcs-home-specialty-card{min-height:68px!important}
}

/* v12.0.2 — Sticky header compatibility hardening.
 * Preserve the v12.0.1 typography while ensuring the canonical app bar remains
 * anchored to the viewport. `overflow:hidden` on the root creates a scroll
 * container in some mobile/desktop engines and can disable descendant sticky.
 * `overflow:clip` preserves edge clipping without creating that scroll container.
 */
html,body{overflow-x:clip!important}
.mcs-shell,.mcs-app-frame{overflow:visible!important}
.mcs-app-frame>.nah-clinical-tools,
.nah-clinical-tools[data-nah-clinical-root]{overflow:clip!important}
.mcs-v323-header{
  position:-webkit-sticky!important;
  position:sticky!important;
  top:0!important;
  z-index:5000!important;
  align-self:stretch!important;
  transform:none!important;
  will-change:auto!important;
}
