/* Medex corporate pages extend the first design's shared typography and palette. */
.medex-home .hero-copy h1 {
  font-size: clamp(2.65rem, 5.45vw, 5.85rem);
  line-height: .98;
  overflow-wrap: break-word;
}
.medex-home .hero-copy h1 em { font-style: normal; color: #587744; }
.medex-home .hero-copy { min-width: 0; }
.medex-facts { background: var(--ink); color: var(--cream); padding-block: 22px; }
.medex-facts .container { display: flex; justify-content: space-between; gap: 15px 28px; flex-wrap: wrap; }
.medex-facts span { font-weight: 650; }
.medex-page-hero h1 { max-width: 20ch; overflow-wrap: break-word; }
.medex-section { padding-block: clamp(42px, 6vw, 88px); }
.medex-section + .medex-section { border-top: 1px solid var(--line); }
.medex-prose { max-width: 75ch; font-size: 1.04rem; line-height: 1.8; }
.medex-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.medex-card { border: 1px solid var(--line); border-radius: 18px; background: #fffdfa; padding: clamp(21px, 3vw, 36px); min-width: 0; }
.medex-card h3 { margin: 0 0 12px; font-size: clamp(1.34rem, 2vw, 1.75rem); }
.medex-card p { margin: 0 0 9px; line-height: 1.62; font-size: .93rem; }
.medex-product { overflow: hidden; padding: 0; display: flex; flex-direction: column; }
.medex-product-photo { background: #e8ebe0; aspect-ratio: 16 / 8; overflow: hidden; }
.medex-product-photo img, .medex-detail-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.medex-product-photo img { transition: transform .35s ease; }
.medex-product:hover .medex-product-photo img { transform: scale(1.035); }
.medex-card-body { padding: clamp(21px, 3vw, 36px); position: relative; flex: 1; padding-bottom: 68px; }
.medex-product-link { position: absolute; bottom: 18px; right: 20px; padding: 7px; border: 1px solid var(--line); border-radius: 50%; }
.medex-product-link:hover { background: var(--yellow); }
.medex-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.medex-detail, .medex-split { display: grid; align-items: start; gap: 32px; }
.medex-detail.with-image, .medex-split { grid-template-columns: 1fr 1fr; }
.medex-detail-photo { aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; background: #e8ebe0; }
.medex-chips { display: flex; gap: 8px; flex-wrap: wrap; padding: 0; margin: 0 0 20px; list-style: none; }
.medex-chips li { background: #eef0e8; border-radius: 100px; padding: 6px 13px; font-size: .9rem; }
.medex-list { padding-inline-start: 1.3em; display: grid; gap: 12px; line-height: 1.45; }
.medex-contact dl { margin: 24px 0; }
.medex-contact dl div { margin-bottom: 15px; }
.medex-contact dt { font-size: .85rem; color: var(--muted); }
.medex-contact dd { margin-left: 0; font-weight: 700; }
.medex-email { overflow-wrap: anywhere; margin-top: 12px; }
.medex-footer .footer-brand p { color: inherit; }
.header-inner .language { gap: 6px; }
.header-inner .language a { padding-inline: 3px; }
@media (max-width: 960px) { .medex-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .medex-detail.with-image, .medex-split { grid-template-columns: 1fr; }
  .medex-home .hero-copy h1 { font-size: clamp(2.4rem, 8vw, 4rem); }
}
@media (max-width: 540px) { .medex-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .medex-product-photo img { transition: none; } }
