/*!
 * UNIMED design system layer — 2026-10-08
 * Scoped to body.unimed-ds (added by the plugin). Deactivate the plugin and every rule here disappears.
 * The live Additional CSS uses !important widely, so overrides below use it where they must win.
 * Rules: #003A8C headings / #003A8C panels untouched; teal #3FB1C0 is never text on light grounds;
 * footer untouched.
 */

/* ------------------------------------------------------------------ 0. Tokens */
body.unimed-ds {
  --uds-slate: #1E2937;
  --uds-navy: #003A8C;
  --uds-blue: #1060A1;
  --uds-teal: #3FB1C0;
  --uds-teal-text: #237A86;
  --uds-grey: #F2F5F7;
  --uds-line: #D5DDE5;
  --uds-muted: #5B6878;
  --uds-field: #94A3B8;
  --uds-radius: 6px;
  --uds-card-radius: 8px;
  --uds-font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --uds-font-head: "Montserrat", "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --uds-news-title: #1E2937;
  --theme-font-family: var(--uds-font-body);
  --theme-link-initial-color: #1060A1;
  --theme-form-field-border-initial-color: #94A3B8;
  --theme-form-field-border-focus-color: #1060A1;
  --theme-form-field-height: 48px;
  --theme-form-field-border-radius: 6px;
  font-family: var(--uds-font-body) !important;
}

/* ------------------------------------------------------------------ 1. Typography */
body.unimed-ds,
body.unimed-ds .entry-content,
body.unimed-ds button,
body.unimed-ds input,
body.unimed-ds select,
body.unimed-ds textarea {
  font-family: var(--uds-font-body) !important;
}
body.unimed-ds .entry-content {
  font-size: 17px;
  line-height: 1.65;
}
body.unimed-ds h1, body.unimed-ds h2, body.unimed-ds h3,
body.unimed-ds h4, body.unimed-ds h5, body.unimed-ds h6,
body.unimed-ds .entry-content summary {
  font-family: var(--uds-font-head) !important;
  letter-spacing: -0.01em;
}
body.unimed-ds .entry-content h1 {
  font-size: 48px !important;
  line-height: 1.15 !important;
  font-weight: 700 !important;
  margin: 0 0 20px;
}
body.unimed-ds .entry-content h2 {
  font-size: 36px !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
}
body.unimed-ds .entry-content h3 {
  font-size: 22px !important;
  line-height: 1.3 !important;
  font-weight: 600 !important;
}
body.unimed-ds .entry-content h4 { font-size: 18px !important; font-weight: 600 !important; }
/* Home H1 (inside the untouched hero layout) */
body.unimed-ds .entry-content .unimed-hero-warm h1 {
  font-size: 64px !important;
  line-height: 1.08 !important;
  letter-spacing: -0.02em;
  max-width: 16ch;
}
/* Readable measure */
body.unimed-ds .entry-content p,
body.unimed-ds .entry-content li { max-width: 68ch; }
body.unimed-ds .entry-content.is-layout-constrained > p,
body.unimed-ds .entry-content.is-layout-constrained > ul,
body.unimed-ds .entry-content.is-layout-constrained > ol {
  max-width: 68ch !important;
  margin-left: max(0px, calc((100% - min(var(--theme-block-max-width, 100%), var(--theme-container-width-base, 100%))) / 2)) !important;
  margin-right: auto !important;
}
body.unimed-ds .entry-content .unimed-disclaimer,
body.unimed-ds .entry-content .unimed-disclaimer p { font-size: 14px; color: var(--uds-muted); }

/* Navigation: 15px / 500 / sentence case */
body.unimed-ds #header [data-id*="menu"] > ul > li > a,
body.unimed-ds #header .ct-menu-link,
body.unimed-ds #offcanvas .ct-menu-link {
  font-family: var(--uds-font-body) !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

/* ------------------------------------------------------------------ 2. Header logo (v5 Horizontal) */
/* The PNG carries the guideline clear space (art ≈ 88% of width); 272px renders the art at ~240px (> 220px minimum). */
body.unimed-ds #header [data-id="logo"] img.uds-logo,
body.unimed-ds #header .site-logo-container img.uds-logo,
body.unimed-ds .site-logo-container img.uds-logo {
  width: 272px !important;
  max-width: 272px !important;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
  aspect-ratio: 1000 / 394;
}
@media (max-width: 999.98px) {
  body.unimed-ds #header [data-row*="middle"] { --height: 88px; }
  body.unimed-ds #header [data-id="logo"] img.uds-logo,
  body.unimed-ds #header .site-logo-container img.uds-logo,
  body.unimed-ds .site-logo-container img.uds-logo {
    width: 250px !important;
    max-width: 250px !important;
    margin-block: -6px !important;
  }
}

/* ------------------------------------------------------------------ 3. Header button: Request a quotation */
body.unimed-ds #header [data-id*="menu"] > ul > li.uds-nav-cta {
  display: flex;
  align-items: center;
  margin-inline-start: 8px;
}
body.unimed-ds #header [data-id*="menu"] > ul > li.uds-nav-cta > a,
body.unimed-ds #header .menu > li.uds-nav-cta > a {
  height: 42px !important;
  min-height: 42px;
  padding: 0 18px !important;
  border-radius: var(--uds-radius) !important;
  background: var(--uds-teal) !important;
  color: var(--uds-slate) !important;
  font-weight: 600 !important;
  line-height: 42px;
  display: inline-flex !important;
  align-items: center;
  white-space: nowrap;
  transition: background-color .15s ease, color .15s ease;
}
body.unimed-ds #header [data-id*="menu"] > ul > li.uds-nav-cta > a::before,
body.unimed-ds #header [data-id*="menu"] > ul > li.uds-nav-cta > a::after { display: none !important; }
body.unimed-ds #header [data-id*="menu"] > ul > li.uds-nav-cta > a:hover,
body.unimed-ds #header [data-id*="menu"] > ul > li.uds-nav-cta > a:focus-visible,
body.unimed-ds #header .menu > li.uds-nav-cta.current-menu-item > a,
body.unimed-ds #header .menu > li.uds-nav-cta > a[aria-current="page"] {
  background: var(--uds-slate) !important;
  color: #fff !important;
}
body.unimed-ds #header li.uds-nav-cta > a:focus-visible { outline: 2px solid var(--uds-blue); outline-offset: 2px; }
/* Mobile off-canvas: same button, full width */
body.unimed-ds #offcanvas li.uds-nav-cta { margin-top: 12px; }
body.unimed-ds #offcanvas li.uds-nav-cta > a {
  display: flex !important;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 0 18px !important;
  border-radius: var(--uds-radius);
  background: var(--uds-teal) !important;
  color: var(--uds-slate) !important;
  font-weight: 600 !important;
}

/* ------------------------------------------------------------------ 4. Colour & contrast */
/* Links on light grounds */
body.unimed-ds .entry-content a { color: var(--uds-blue); }
body.unimed-ds .entry-content p a:not(.unimed-btn):not(.uds-btn):not(.wp-block-button__link),
body.unimed-ds .entry-content li a:not(.unimed-btn):not(.uds-btn):not(.wp-block-button__link),
body.unimed-ds .entry-content .unimed-product-card a,
body.unimed-ds .entry-content .unimed-img-caption a,
body.unimed-ds .entry-content .unimed-section-more a {
  color: var(--uds-blue) !important;
  text-decoration: underline;
  text-decoration-color: var(--uds-teal);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
body.unimed-ds .entry-content p a:not(.unimed-btn):not(.uds-btn):not(.wp-block-button__link):hover,
body.unimed-ds .entry-content li a:not(.unimed-btn):not(.uds-btn):not(.wp-block-button__link):hover,
body.unimed-ds .entry-content .unimed-product-card a:hover { color: var(--uds-navy) !important; }
body.unimed-ds .entry-content .unimed-product-card h3 { color: var(--uds-navy) !important; }

/* Teal-as-text on light → accessible teal / blue */
body.unimed-ds .unimed-partner-carousel__controls button { color: var(--uds-teal-text) !important; border-color: var(--uds-line) !important; }
body.unimed-ds .entry-content .unimed-tech-partners { color: var(--uds-muted) !important; }

/* Terracotta / tan removed */
body.unimed-ds .entry-content .unimed-panel-cream {
  background: var(--uds-grey) !important;
}
body.unimed-ds .entry-content .unimed-panel-sand {
  background: #fff !important;
  border: 1px solid var(--uds-line) !important;
  border-left: 4px solid var(--uds-teal) !important;
}
body.unimed-ds .entry-content .unimed-support-band-warm { background-color: var(--uds-grey) !important; }
body.unimed-ds .unimed-card-img,
body.unimed-ds .entry-content .unimed-card-img { background-color: var(--uds-grey) !important; }
body.unimed-ds .entry-content .unimed-panel { box-shadow: none !important; }

/* #003A8C panel: stays #003A8C; text and links go white, links underlined in teal */
body.unimed-ds .entry-content .unimed-panel-navy { color: #fff !important; }
body.unimed-ds .entry-content .unimed-panel-navy h2,
body.unimed-ds .entry-content .unimed-panel-navy h3 { color: #fff !important; }
body.unimed-ds .entry-content .unimed-panel-navy a:not(.unimed-btn):not(.unimed-social-icon),
body.unimed-ds .entry-content .unimed-panel-navy p a:not(.unimed-btn):not(.unimed-social-icon):not(.wp-block-button__link) {
  color: #fff !important;
  text-decoration: underline !important;
  text-decoration-color: var(--uds-teal) !important;
  text-decoration-thickness: 2px !important;
  text-underline-offset: 3px;
}
body.unimed-ds .entry-content .unimed-panel-navy a:not(.unimed-btn):hover { text-decoration-color: #fff !important; }
body.unimed-ds .entry-content .unimed-panel-navy .unimed-inline-socials a.unimed-social-icon,
body.unimed-ds .entry-content .unimed-panel-navy p.unimed-inline-socials a.unimed-social-icon:not(.unimed-btn):not(.wp-block-button__link) {
  color: #fff !important;
  width: 44px;
  height: 44px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45);
  text-decoration: none !important;
}
body.unimed-ds .entry-content .unimed-panel-navy p.unimed-inline-socials a.unimed-social-icon:not(.unimed-btn):not(.wp-block-button__link):hover,
body.unimed-ds .entry-content .unimed-panel-navy p.unimed-inline-socials a.unimed-social-icon:focus-visible {
  color: var(--uds-slate) !important;
  background: var(--uds-teal);
  box-shadow: none;
}

/* ------------------------------------------------------------------ 5. Buttons */
body.unimed-ds .entry-content .unimed-btn,
body.unimed-ds .uds-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px !important;
  border-radius: var(--uds-radius) !important;
  border: 2px solid transparent !important;
  font-family: var(--uds-font-body) !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  line-height: 1.2;
  text-decoration: none !important;
  box-shadow: none !important;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
body.unimed-ds .entry-content .unimed-btn:focus-visible,
body.unimed-ds .uds-btn:focus-visible { outline: 2px solid var(--uds-blue) !important; outline-offset: 2px; }
/* Primary: teal fill, slate label */
body.unimed-ds .entry-content .unimed-btn-primary,
body.unimed-ds .entry-content a.unimed-btn-primary,
body.unimed-ds .entry-content .unimed-btn:not(.unimed-btn-secondary),
body.unimed-ds .entry-content .unimed-panel-navy a.unimed-btn-primary,
body.unimed-ds .uds-btn--primary {
  background: var(--uds-teal) !important;
  border-color: var(--uds-teal) !important;
  color: var(--uds-slate) !important;
}
body.unimed-ds .entry-content .unimed-btn-primary:hover,
body.unimed-ds .entry-content a.unimed-btn-primary:hover,
body.unimed-ds .entry-content .unimed-btn:not(.unimed-btn-secondary):hover,
body.unimed-ds .uds-btn--primary:hover {
  background: var(--uds-slate) !important;
  border-color: var(--uds-slate) !important;
  color: #fff !important;
}
/* Secondary on light */
body.unimed-ds .entry-content .unimed-btn-secondary,
body.unimed-ds .entry-content a.unimed-btn-secondary {
  background: #fff !important;
  border-color: var(--uds-blue) !important;
  color: var(--uds-blue) !important;
}
body.unimed-ds .entry-content .unimed-btn-secondary:hover,
body.unimed-ds .entry-content a.unimed-btn-secondary:hover {
  background: var(--uds-blue) !important;
  border-color: var(--uds-blue) !important;
  color: #fff !important;
}
/* Secondary / ghost on dark */
body.unimed-ds .entry-content .unimed-panel-navy .unimed-btn-secondary,
body.unimed-ds.uds-hero-slate .entry-content .unimed-hero-warm .unimed-btn-secondary,
body.unimed-ds .uds-btn--ghost {
  background: transparent !important;
  border-color: rgba(255, 255, 255, .75) !important;
  color: #fff !important;
}
body.unimed-ds .entry-content .unimed-panel-navy .unimed-btn-secondary:hover,
body.unimed-ds.uds-hero-slate .entry-content .unimed-hero-warm .unimed-btn-secondary:hover,
body.unimed-ds .uds-btn--ghost:hover {
  background: #fff !important;
  border-color: #fff !important;
  color: var(--uds-slate) !important;
}

/* ------------------------------------------------------------------ 6. Home hero colour (layout untouched) */
body.unimed-ds .entry-content .unimed-hero-warm { box-shadow: none !important; }
body.unimed-ds.uds-hero-slate .entry-content .unimed-hero-warm {
  background: var(--uds-slate) !important;
}
body.unimed-ds.uds-hero-slate .entry-content .unimed-hero-warm h1 { color: #fff !important; text-shadow: none !important; }
body.unimed-ds.uds-hero-slate .entry-content .unimed-hero-warm p { color: rgba(255, 255, 255, .88) !important; }
body.unimed-ds.uds-hero-slate .entry-content .unimed-hero-warm .unimed-tagline { color: var(--uds-teal) !important; }
/* Alternative (Tools → UNIMED DS): flat teal with slate text */
body.unimed-ds.uds-hero-teal .entry-content .unimed-hero-warm { background: var(--uds-teal) !important; }
body.unimed-ds.uds-hero-teal .entry-content .unimed-hero-warm h1,
body.unimed-ds.uds-hero-teal .entry-content .unimed-hero-warm p,
body.unimed-ds.uds-hero-teal .entry-content .unimed-hero-warm .unimed-tagline { color: var(--uds-slate) !important; text-shadow: none !important; }
body.unimed-ds.uds-hero-teal .entry-content .unimed-hero-warm .unimed-btn-primary {
  background: var(--uds-slate) !important; border-color: var(--uds-slate) !important; color: #fff !important;
}
body.unimed-ds.uds-hero-teal .entry-content .unimed-hero-warm .unimed-btn-secondary {
  background: transparent !important; border-color: var(--uds-slate) !important; color: var(--uds-slate) !important;
}
body.unimed-ds .entry-content .unimed-hero-warm .unimed-cta-row br { display: none; }

/* ------------------------------------------------------------------ 7. Forms (Contact Form 7) */
body.unimed-ds .wpcf7 { max-width: 760px; }
body.unimed-ds .wpcf7-form > p:has(> label > .wpcf7-form-control-wrap),
body.unimed-ds .wpcf7-form > p:has(.wpcf7-submit) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 24px;
  align-items: start;
  max-width: none;
}
body.unimed-ds .wpcf7-form > p:has(> label > .wpcf7-form-control-wrap) > br,
body.unimed-ds .wpcf7-form > p:has(.wpcf7-submit) > br { display: none; }
body.unimed-ds .wpcf7-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 15px;
  font-weight: 500;
  color: var(--uds-slate);
}
body.unimed-ds .wpcf7-form > p > label:has(textarea),
body.unimed-ds .wpcf7-form > p > label:has(input[type="file"]),
body.unimed-ds .wpcf7-form > p > label:has([data-name="solution-category"]),
body.unimed-ds .wpcf7-form > p > .wpcf7-form-control-wrap:has(.wpcf7-acceptance),
body.unimed-ds .wpcf7-form > p > .wpcf7-form-control-wrap[data-name*="consent"],
body.unimed-ds .wpcf7-form > p > .wpcf7-form-control-wrap[data-name*="acceptance"] { grid-column: 1 / -1; }
body.unimed-ds .wpcf7-form > p > .wpcf7-submit { grid-column: 1; justify-self: start; }
body.unimed-ds .wpcf7-form > p > .wpcf7-spinner { grid-column: 2; align-self: center; justify-self: start; margin: 0; }
body.unimed-ds .wpcf7-form > p > .wpcf7-form-control-wrap:empty { display: none; }
body.unimed-ds .wpcf7-form input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="file"]):not([type="hidden"]),
body.unimed-ds .wpcf7-form select,
body.unimed-ds .wpcf7-form textarea {
  width: 100% !important;
  height: 48px !important;
  min-height: 48px;
  padding: 0 14px !important;
  border: 1px solid var(--uds-field) !important;
  border-radius: var(--uds-radius) !important;
  background-color: #fff !important;
  color: var(--uds-slate) !important;
  font-size: 16px !important;
  box-shadow: none !important;
  box-sizing: border-box;
}
body.unimed-ds .wpcf7-form textarea {
  height: auto !important;
  min-height: 144px;
  padding: 12px 14px !important;
  line-height: 1.5;
}
body.unimed-ds .wpcf7-form input[type="file"] { font-size: 15px; padding: 8px 0; }
body.unimed-ds .wpcf7-form input:focus,
body.unimed-ds .wpcf7-form select:focus,
body.unimed-ds .wpcf7-form textarea:focus {
  outline: 2px solid var(--uds-blue) !important;
  outline-offset: 1px;
  border-color: var(--uds-blue) !important;
}
body.unimed-ds .wpcf7-form input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--uds-blue); vertical-align: -4px; margin-right: 8px; }
body.unimed-ds .wpcf7-form .wpcf7-list-item { margin: 0; }
body.unimed-ds .wpcf7-form .wpcf7-list-item label { flex-direction: row; align-items: flex-start; font-weight: 400; }
body.unimed-ds .wpcf7-form .wpcf7-submit,
body.unimed-ds .wpcf7-form .wpcf7-submit:disabled {
  min-height: 48px;
  height: 48px;
  padding: 0 28px !important;
  border: 0 !important;
  border-radius: var(--uds-radius) !important;
  background: var(--uds-teal) !important;
  color: var(--uds-slate) !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  opacity: 1 !important;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
body.unimed-ds .wpcf7-form .wpcf7-submit:hover { background: var(--uds-slate) !important; color: #fff !important; }
body.unimed-ds .wpcf7-form .wpcf7-submit:focus-visible { outline: 2px solid var(--uds-blue) !important; outline-offset: 2px; }
body.unimed-ds .wpcf7-form .wpcf7-not-valid { border-color: #B42318 !important; }
body.unimed-ds .wpcf7-form .wpcf7-not-valid-tip { color: #B42318; font-size: 14px; }
body.unimed-ds .wpcf7 form .wpcf7-response-output { border-radius: var(--uds-radius); margin: 16px 0 0; padding: 12px 16px; }

/* ------------------------------------------------------------------ 8. Home solution cards: 3 × 2, whole card clickable */
body.unimed-ds .entry-content .unimed-solution-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 24px !important;
}
body.unimed-ds .entry-content .unimed-solution-card {
  position: relative;
  border: 1px solid var(--uds-line) !important;
  border-radius: var(--uds-card-radius) !important;
  box-shadow: none !important;
  transform: none !important;
  transition: border-color .15s ease !important;
  cursor: pointer;
}
body.unimed-ds .entry-content .unimed-solution-card:hover,
body.unimed-ds .entry-content .unimed-solution-card:focus-within {
  border-color: var(--uds-teal) !important;
  box-shadow: none !important;
  transform: none !important;
}
body.unimed-ds .entry-content .unimed-solution-card .unimed-card-img {
  height: auto !important;
  aspect-ratio: 16 / 9;
}
body.unimed-ds .entry-content .unimed-solution-card h3 {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 20px 24px 8px !important;
  font-size: 22px !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
}
body.unimed-ds .entry-content .unimed-solution-card p {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 24px 12px !important;
  font-size: 16px !important;
  line-height: 1.6;
}
body.unimed-ds .entry-content .unimed-solution-card .unimed-supplier {
  font-size: 14px !important;
  color: var(--uds-muted) !important;
  margin: auto 24px 24px !important;
  padding-top: 4px !important;
}
body.unimed-ds .entry-content .unimed-solution-card > p:last-child {
  margin: 0 !important;
  padding: 0 !important;
  height: 0;
  overflow: visible;
}
body.unimed-ds .entry-content .unimed-solution-card > p:last-child a {
  position: static;
  margin: 0 !important;
  font-size: 0 !important;
  line-height: 0;
  color: transparent !important;
  text-decoration: none !important;
}
body.unimed-ds .entry-content .unimed-solution-card > p:last-child a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: var(--uds-card-radius);
}
body.unimed-ds .entry-content .unimed-solution-card > p:last-child a:focus-visible { outline: none; }
body.unimed-ds .entry-content .unimed-solution-card > p:last-child a:focus-visible::after { outline: 2px solid var(--uds-blue); outline-offset: 2px; }
body.unimed-ds .entry-content .unimed-solution-card:hover h3 { text-decoration: underline; text-decoration-color: var(--uds-teal); text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* ------------------------------------------------------------------ 9. Partners page: equal 200 × 96 tiles, 5 per row */
body.unimed-ds .entry-content .unimed-partner-logo-grid {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 24px !important;
  max-width: 1096px !important;
  margin: 8px auto 32px !important;
  padding: 0 !important;
}
body.unimed-ds .entry-content .unimed-partner-logo-grid a.unimed-partner-logo,
body.unimed-ds .entry-content .unimed-partner-logo-grid a.unimed-partner-logo:has(img[alt*="bioM"]) {
  box-sizing: border-box !important;
  flex: 0 0 200px !important;
  width: 200px !important;
  min-width: 0 !important;
  height: 96px !important;
  min-height: 0 !important;
  padding: 16px 20px !important;
  border: 1px solid var(--uds-line) !important;
  border-radius: var(--uds-card-radius) !important;
  background: #fff !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: none !important;
}
body.unimed-ds .entry-content .unimed-partner-logo-grid a.unimed-partner-logo:hover,
body.unimed-ds .entry-content .unimed-partner-logo-grid a.unimed-partner-logo:focus-visible {
  border-color: var(--uds-teal) !important;
  box-shadow: none !important;
}
body.unimed-ds .entry-content .unimed-partner-logo-grid a.unimed-partner-logo:focus-visible { outline: 2px solid var(--uds-blue); outline-offset: 2px; }
body.unimed-ds .entry-content .unimed-partner-logo-grid img,
body.unimed-ds .entry-content .unimed-partner-logo-grid img[alt*="bioM"] {
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  transform: none !important;
}
/* bioMérieux artwork has ~14% transparent margin per side — mild optical correction, inside the tile */
body.unimed-ds .entry-content .unimed-partner-logo-grid img[alt*="bioM"] { transform: scale(1.3) !important; }
/* United Imaging full lockup (wide) */
body.unimed-ds .entry-content .unimed-partner-logo-grid img[data-uds-lockup] { width: 100% !important; height: auto !important; }

/* ------------------------------------------------------------------ 10. Partner marquee (Home / About) */
body.unimed-ds .unimed-partner-carousel__viewport {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 56px, #000 calc(100% - 56px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 56px, #000 calc(100% - 56px), transparent 100%);
}
/* No gap: each item carries its own padding so the -50% loop seam is exact */
body.unimed-ds .unimed-partner-carousel__track { gap: 0 !important; }
/* Do not move until the script has duplicated the set (no blank tail, no restart mid-logo) */
body.unimed-ds .unimed-partner-carousel:not([data-unimed-carousel-ready="1"]) .unimed-partner-carousel__track { animation: none !important; }
body.unimed-ds .unimed-partner-carousel:hover .unimed-partner-carousel__track,
body.unimed-ds .unimed-partner-carousel:focus-within .unimed-partner-carousel__track { animation-play-state: paused; }
body.unimed-ds .unimed-partner-carousel__track a,
body.unimed-ds .unimed-partner-carousel__track a:has(img[alt*="bioM"]) {
  box-sizing: content-box !important;
  flex: 0 0 160px !important;
  width: 160px !important;
  height: 56px !important;
  padding: 0 24px !important;
  margin: 0 !important;
  overflow: visible !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  opacity: 1;
}
body.unimed-ds .unimed-partner-carousel__track img,
body.unimed-ds .unimed-partner-carousel__track img[alt*="bioM"] {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  transform: none !important;
}
body.unimed-ds .unimed-partner-carousel__controls { text-align: right; padding-inline: 16px; }
body.unimed-ds .unimed-partner-carousel__controls button { min-height: 44px; padding: 0 14px !important; }
@media (prefers-reduced-motion: reduce) {
  body.unimed-ds .unimed-partner-carousel__viewport { -webkit-mask-image: none; mask-image: none; }
  body.unimed-ds .unimed-partner-carousel__track { justify-content: center !important; row-gap: 12px !important; }
}

/* ------------------------------------------------------------------ 11. News: 3-column card grid */
body.unimed-ds .entry-content .uds-page-h1 { margin-bottom: 24px; }
body.unimed-ds .entry-content .uds-news { max-width: none; }
body.unimed-ds .entry-content .uds-news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  list-style: none;
  margin: 32px 0;
  padding: 0;
  max-width: none;
}
body.unimed-ds .entry-content .uds-news-card {
  position: relative;
  margin: 0;
  padding: 0;
  max-width: none;
  background: #fff;
  border: 1px solid var(--uds-line);
  border-radius: var(--uds-card-radius);
  overflow: hidden;
  transition: border-color .15s ease;
}
body.unimed-ds .entry-content .uds-news-card:hover,
body.unimed-ds .entry-content .uds-news-card:focus-within { border-color: var(--uds-teal); }
body.unimed-ds .entry-content .uds-news-card > article { display: flex; flex-direction: column; height: 100%; }
body.unimed-ds .entry-content .uds-news-media {
  aspect-ratio: 16 / 9;
  background: var(--uds-grey);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 0;
}
body.unimed-ds .entry-content .uds-news-media img:not(.uds-news-logo) { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
body.unimed-ds .entry-content .uds-news-media img.uds-news-logo {
  width: auto;
  height: auto;
  max-width: 56%;
  max-height: 44%;
  object-fit: contain;
}
body.unimed-ds .entry-content .uds-news-body { padding: 20px 24px 24px; display: flex; flex-direction: column; gap: 8px; }
body.unimed-ds .entry-content .uds-news-title {
  font-family: var(--uds-font-head) !important;
  font-size: 20px !important;
  line-height: 1.3 !important;
  font-weight: 600 !important;
  margin: 0 !important;
  color: var(--uds-news-title) !important;
  padding: 0 !important;
  border: 0 !important;
}
body.unimed-ds .entry-content .uds-news-title::after { display: none !important; }
body.unimed-ds .entry-content .uds-news-title a {
  color: inherit !important;
  text-decoration: none !important;
}
body.unimed-ds .entry-content .uds-news-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
body.unimed-ds .entry-content .uds-news-title a:focus-visible { outline: none; }
body.unimed-ds .entry-content .uds-news-title a:focus-visible::after { outline: 2px solid var(--uds-blue); outline-offset: -2px; border-radius: var(--uds-card-radius); }
body.unimed-ds .entry-content .uds-news-card:hover .uds-news-title a { text-decoration: underline !important; text-decoration-color: var(--uds-teal) !important; text-decoration-thickness: 2px !important; text-underline-offset: 3px; }
body.unimed-ds .entry-content .uds-news-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  margin: 0;
  font-size: 14px;
  color: var(--uds-muted);
}
body.unimed-ds .entry-content .uds-news-partner { display: inline-flex; align-items: center; gap: 12px; }
body.unimed-ds .entry-content .uds-news-partner::before { content: ""; width: 1px; height: 14px; background: var(--uds-line); }
body.unimed-ds .entry-content .uds-news-excerpt {
  margin: 4px 0 0;
  font-size: 15px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
body.unimed-ds .entry-content .uds-news-pagination { display: flex; justify-content: space-between; gap: 16px; max-width: none; }
body.unimed-ds .entry-content .unimed-news-empty { background: var(--uds-grey) !important; border-radius: var(--uds-card-radius); }

/* ------------------------------------------------------------------ 12. Pillar pages — one shared layout */
body.unimed-ds.uds-pillar .site-main { overflow-x: clip; }
body.unimed-ds.uds-pillar [data-vertical-spacing*="top"] { padding-top: 0 !important; }
body.unimed-ds.uds-pillar [data-vertical-spacing*="bottom"] { padding-bottom: 0 !important; }
body.unimed-ds .uds-pillar-layout { max-width: none; }
body.unimed-ds .uds-pillar-layout p,
body.unimed-ds .uds-pillar-layout li { max-width: 68ch; }
body.unimed-ds .uds-bleed {
  width: 100vw !important;
  max-width: none !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  box-sizing: border-box;
}
body.unimed-ds .uds-wrap {
  width: var(--theme-container-width, 90vw);
  max-width: var(--theme-normal-container-max-width, 1290px);
  margin-inline: auto;
}
/* Hero: slate, H1 + intro, one existing product image as a white specimen tile */
body.unimed-ds .uds-pillar-hero {
  background: var(--uds-slate);
  color: #fff;
  padding: 72px 0 80px;
}
body.unimed-ds .uds-pillar-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: 56px;
  align-items: center;
}
body.unimed-ds .uds-pillar-hero__grid.is-text-only { grid-template-columns: minmax(0, 1fr); }
body.unimed-ds .entry-content .uds-pillar-hero h1 {
  color: #fff !important;
  margin: 0 0 20px !important;
  max-width: 20ch;
}
body.unimed-ds .entry-content .uds-pillar-hero p {
  color: rgba(255, 255, 255, .88);
  font-size: 19px;
  line-height: 1.6;
  max-width: 60ch;
  margin: 0;
}
body.unimed-ds .uds-pillar-hero__media { margin: 0; }
body.unimed-ds .uds-specimen {
  background: #fff;
  border-radius: var(--uds-card-radius);
  aspect-ratio: 4 / 3;
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}
body.unimed-ds .uds-specimen img {
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  object-fit: contain !important;
  background: transparent !important;
  border-radius: 0 !important;
}
body.unimed-ds .uds-pillar-hero__media figcaption {
  margin-top: 12px;
  font-size: 14px;
  color: rgba(255, 255, 255, .72);
  text-align: left;
}
/* Sections */
body.unimed-ds .uds-pillar-layout .uds-section { margin: 72px 0 0; }
body.unimed-ds .uds-pillar-layout .uds-section > h2 { margin: 0 0 16px; }
body.unimed-ds .uds-pillar-layout .uds-section > p { color: var(--uds-slate); }
/* Where we can help: tiles */
body.unimed-ds .entry-content .uds-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  max-width: none;
}
body.unimed-ds .entry-content .uds-tiles > li {
  margin: 0;
  max-width: none;
  padding: 18px 20px;
  background: var(--uds-grey);
  border-radius: var(--uds-card-radius);
  border-left: 3px solid var(--uds-teal);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--uds-slate);
}
/* Products (reused from /solutions/) */
body.unimed-ds .entry-content .uds-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  max-width: none;
}
body.unimed-ds .entry-content .uds-product-card {
  margin: 0;
  max-width: none;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--uds-line);
  border-radius: var(--uds-card-radius);
  overflow: hidden;
  padding-bottom: 20px;
}
body.unimed-ds .entry-content .uds-product-card.is-text { padding-top: 20px; }
body.unimed-ds .uds-product-well {
  aspect-ratio: 4 / 3;
  padding: 20px;
  background: #fff;
  border-bottom: 1px solid var(--uds-line);
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}
body.unimed-ds .uds-product-well img {
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  object-fit: contain !important;
  background: transparent !important;
  border-radius: 0 !important;
}
body.unimed-ds .entry-content .uds-product-card h3 {
  font-size: 18px !important;
  line-height: 1.35 !important;
  margin: 16px 20px 6px !important;
  color: var(--uds-navy) !important;
}
body.unimed-ds .entry-content .uds-product-card p { margin: 0 20px 4px !important; }
body.unimed-ds .entry-content .uds-product-card .unimed-product-desc { font-size: 15px !important; color: var(--uds-slate) !important; }
body.unimed-ds .entry-content .uds-product-card .unimed-img-caption { font-size: 13px !important; margin-top: auto !important; padding-top: 8px; }
body.unimed-ds .entry-content .uds-product-card .unimed-cepheid-credit { font-size: 12px !important; color: var(--uds-muted) !important; }
/* Partner logo row */
body.unimed-ds .entry-content .uds-logo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  list-style: none;
  margin: 24px 0;
  padding: 0;
  max-width: none;
}
body.unimed-ds .entry-content .uds-logo-row > li { margin: 0; max-width: none; }
body.unimed-ds .entry-content .uds-logo-tile {
  box-sizing: border-box;
  width: 200px;
  height: 96px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--uds-line);
  border-radius: var(--uds-card-radius);
  background: #fff;
  text-decoration: none !important;
  color: var(--uds-slate) !important;
  font-weight: 600;
  transition: border-color .15s ease;
}
body.unimed-ds .entry-content a.uds-logo-tile:hover { border-color: var(--uds-teal); }
body.unimed-ds .entry-content a.uds-logo-tile:focus-visible { outline: 2px solid var(--uds-blue); outline-offset: 2px; }
body.unimed-ds .entry-content .uds-logo-tile img {
  max-width: 100% !important;
  max-height: 100% !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
}
body.unimed-ds .entry-content .uds-logo-tile img[alt*="bioM"] { transform: scale(1.3); }
/* How we typically work: numbered steps (a real sequence) */
body.unimed-ds .entry-content .uds-steps {
  counter-reset: uds-step;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 32px;
  list-style: none;
  margin: 24px 0;
  padding: 0;
  max-width: none;
}
body.unimed-ds .entry-content .uds-steps > li {
  counter-increment: uds-step;
  position: relative;
  margin: 0;
  max-width: none;
  padding: 16px 0 16px 44px;
  border-top: 1px solid var(--uds-line);
  font-size: 16px;
}
body.unimed-ds .entry-content .uds-steps > li::before {
  content: counter(uds-step);
  position: absolute;
  left: 0;
  top: 15px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--uds-slate);
  color: #fff;
  font: 600 13px/28px var(--uds-font-head);
  text-align: center;
}
/* Related: chips */
body.unimed-ds .entry-content .uds-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  max-width: none;
}
body.unimed-ds .entry-content .uds-chips > li { margin: 0; max-width: none; }
body.unimed-ds .entry-content .uds-chips a,
body.unimed-ds .entry-content .uds-chips li a:not(.unimed-btn):not(.uds-btn):not(.wp-block-button__link) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--uds-line);
  border-radius: 999px;
  color: var(--uds-blue) !important;
  text-decoration: none !important;
  font-size: 15px;
  font-weight: 500;
  background: #fff;
}
body.unimed-ds .entry-content .uds-chips li a:not(.unimed-btn):not(.uds-btn):not(.wp-block-button__link):hover { border-color: var(--uds-blue); background: var(--uds-grey); color: var(--uds-navy) !important; }
/* Important information */
body.unimed-ds .entry-content .uds-fineprint { margin-top: 56px !important; padding-top: 24px; border-top: 1px solid var(--uds-line); }
body.unimed-ds .entry-content .uds-fineprint h2 { font-size: 18px !important; margin: 0 0 8px !important; }
body.unimed-ds .entry-content .uds-fineprint p { font-size: 14px; color: var(--uds-muted); }
/* CTA band (Next steps — existing text) */
body.unimed-ds .uds-cta-band {
  background: var(--uds-slate);
  color: #fff;
  padding: 64px 0 72px;
  margin-top: 72px !important;
}
body.unimed-ds .entry-content .uds-cta-band h2 { color: #fff !important; margin: 0 0 12px !important; }
body.unimed-ds .entry-content .uds-cta-band p { color: rgba(255, 255, 255, .88); max-width: 62ch; }
body.unimed-ds .entry-content .uds-cta-band .uds-btn-row { display: flex; flex-wrap: wrap; gap: 16px; margin: 24px 0; }
body.unimed-ds .entry-content .uds-cta-band .uds-btn-row + p {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .18);
  font-size: 15px;
  max-width: none;
}
body.unimed-ds .entry-content .uds-cta-band a:not(.uds-btn),
body.unimed-ds .entry-content .uds-cta-band p a:not(.uds-btn):not(.unimed-btn):not(.wp-block-button__link) {
  color: #fff !important;
  text-decoration: underline !important;
  text-decoration-color: var(--uds-teal) !important;
  text-decoration-thickness: 2px !important;
  text-underline-offset: 3px;
}
body.unimed-ds .entry-content .uds-cta-band strong { color: #fff; }

/* ------------------------------------------------------------------ 13. Responsive */
@media (max-width: 999.98px) {
  body.unimed-ds .entry-content .unimed-solution-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  body.unimed-ds .entry-content .uds-news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.unimed-ds .entry-content .uds-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.unimed-ds .entry-content .uds-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.unimed-ds .uds-pillar-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 689.98px) {
  body.unimed-ds .entry-content { font-size: 16px; }
  body.unimed-ds .entry-content h1 { font-size: 34px !important; line-height: 1.18 !important; }
  body.unimed-ds .entry-content .unimed-hero-warm h1 { font-size: 40px !important; line-height: 1.1 !important; }
  body.unimed-ds .entry-content h2 { font-size: 28px !important; }
  body.unimed-ds .entry-content h3 { font-size: 20px !important; }
  body.unimed-ds .entry-content .unimed-solution-grid,
  body.unimed-ds .entry-content .uds-news-grid,
  body.unimed-ds .entry-content .uds-tiles,
  body.unimed-ds .entry-content .uds-steps { grid-template-columns: minmax(0, 1fr) !important; }
  body.unimed-ds .entry-content .unimed-solution-card h3 { font-size: 20px !important; }
  body.unimed-ds .entry-content .unimed-partner-logo-grid { gap: 12px !important; }
  body.unimed-ds .entry-content .unimed-partner-logo-grid a.unimed-partner-logo,
  body.unimed-ds .entry-content .unimed-partner-logo-grid a.unimed-partner-logo:has(img[alt*="bioM"]) {
    flex: 0 0 calc(50% - 6px) !important;
    width: calc(50% - 6px) !important;
    height: 88px !important;
    padding: 14px 16px !important;
  }
  body.unimed-ds .entry-content .uds-logo-row { gap: 12px; }
  body.unimed-ds .entry-content .uds-logo-row > li { flex: 0 0 calc(50% - 6px); }
  body.unimed-ds .entry-content .uds-logo-tile { width: 100%; height: 88px; padding: 14px 16px; }
  body.unimed-ds .unimed-partner-carousel__track a,
  body.unimed-ds .unimed-partner-carousel__track a:has(img[alt*="bioM"]) { flex-basis: 128px !important; width: 128px !important; height: 48px !important; padding: 0 16px !important; }
  body.unimed-ds .unimed-partner-carousel__viewport {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%);
  }
  body.unimed-ds .uds-pillar-hero { padding: 40px 0 48px; }
  body.unimed-ds .uds-pillar-hero__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  body.unimed-ds .entry-content .uds-pillar-hero p { font-size: 18px; }
  body.unimed-ds .uds-pillar-layout .uds-section { margin-top: 48px; }
  body.unimed-ds .uds-cta-band { padding: 48px 0 56px; margin-top: 48px !important; }
  body.unimed-ds .entry-content .uds-cta-band .uds-btn-row .uds-btn,
  body.unimed-ds .entry-content .unimed-hero-warm .unimed-btn { width: 100%; }
  body.unimed-ds .wpcf7-form > p:has(> label > .wpcf7-form-control-wrap),
  body.unimed-ds .wpcf7-form > p:has(.wpcf7-submit) { grid-template-columns: minmax(0, 1fr); }
  body.unimed-ds .wpcf7-form > p > .wpcf7-submit { width: 100%; }
  body.unimed-ds .wpcf7-form > p > .wpcf7-spinner { grid-column: 1; justify-self: center; }
}
@media (prefers-reduced-motion: reduce) {
  body.unimed-ds .entry-content .unimed-solution-card,
  body.unimed-ds .entry-content .uds-news-card,
  body.unimed-ds .entry-content .unimed-btn,
  body.unimed-ds .uds-btn { transition: none !important; }
}

/* Strong text inside the #003A8C panel was #003A8C (invisible) — make it white */
body.unimed-ds .entry-content .unimed-panel-navy strong,
body.unimed-ds.page-id-3001 .entry-content .unimed-panel-navy p strong { color: #fff !important; }
/* bioMérieux carousel artwork is a small round mark with wide transparent margins: optical match, stays inside its box */
body.unimed-ds .unimed-partner-carousel__track img[alt*="bioM"] { transform: scale(1.5) !important; }
/* Higher-specificity guards: list-item link colour rule must not recolour these */
body.unimed-ds .entry-content .uds-news-grid li .uds-news-title a:not(.unimed-btn):not(.uds-btn):not(.wp-block-button__link) { color: var(--uds-news-title) !important; text-decoration: none !important; }
body.unimed-ds .entry-content .uds-news-grid li:hover .uds-news-title a:not(.unimed-btn):not(.uds-btn):not(.wp-block-button__link) { text-decoration: underline !important; text-decoration-color: var(--uds-teal) !important; }
body.unimed-ds .entry-content .uds-logo-row li a.uds-logo-tile:not(.unimed-btn):not(.uds-btn):not(.wp-block-button__link) { color: var(--uds-slate) !important; text-decoration: none !important; }
/* Forms line up with the text column instead of centring */
body.unimed-ds .entry-content.is-layout-constrained > .wpcf7,
body.unimed-ds .entry-content.is-layout-constrained > p:has(> .wpcf7) {
  margin-left: max(0px, calc((100% - min(var(--theme-block-max-width, 100%), var(--theme-container-width-base, 100%))) / 2)) !important;
  margin-right: auto !important;
  max-width: 760px !important;
}

@media (max-width: 689.98px) {
  body.unimed-ds .entry-content .uds-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  body.unimed-ds .uds-product-well { padding: 12px; }
  body.unimed-ds .entry-content .uds-product-card h3 { font-size: 15px !important; margin: 12px 12px 4px !important; }
  body.unimed-ds .entry-content .uds-product-card p { margin: 0 12px 4px !important; }
  body.unimed-ds .entry-content .uds-product-card { padding-bottom: 12px; }
  body.unimed-ds .entry-content .uds-tiles > li { padding: 14px 16px; font-size: 16px; }
}
/* Partners grid follows the content column width (Additional CSS forces width:100% of the full-bleed entry) */
body.unimed-ds .entry-content .unimed-partner-logo-grid,
body.unimed-ds.page-id-3010 .entry-content .unimed-partner-logo-grid {
  width: min(1096px, var(--theme-container-width-base, 100%)) !important;
  max-width: min(1096px, 100%) !important;
}
/* Footer is out of scope (compact centred footer stays exactly as it was, including its system font).
   To let the footer follow the new body font too, delete this rule. */
body.unimed-ds #footer,
body.unimed-ds footer.ct-footer,
body.unimed-ds .ct-footer {
  --theme-font-family: var(--theme-font-stack-default);
  font-family: var(--theme-font-stack-default, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif) !important;
}
/* 1.0.1 — header logo clipping fix.
   A legacy stylesheet on live (pre-dates this plugin) forces header#header .site-branding to 180px wide with
   overflow:hidden and .site-logo-container to 160×64px with a background image from the old staging clone path.
   That clipped the v5 Horizontal logo to "unin…". Neutralise it with higher specificity. */
body.unimed-ds header#header [data-id="logo"].site-branding,
body.unimed-ds header#header .site-branding[data-id="logo"] {
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  height: auto !important;
  overflow: visible !important;
  flex-shrink: 0;
}
body.unimed-ds header#header [data-id="logo"] .site-logo-container {
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-width: none !important;
  max-height: none !important;
  background-image: none !important;
  font-size: 0 !important;
  line-height: 0 !important;
}
body.unimed-ds header#header [data-id="logo"] .site-logo-container img.uds-logo {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Sticky / shrunk header states (not enabled on live today): never shrink the logo below the 220px-art minimum, never clip */
body.unimed-ds header#header [data-sticky] [data-id="logo"] .site-logo-container,
body.unimed-ds header#header .ct-sticky-container [data-id="logo"] .site-logo-container { height: auto !important; max-height: none !important; overflow: visible !important; }
body.unimed-ds header#header [data-sticky] [data-id="logo"] img.uds-logo,
body.unimed-ds header#header .ct-sticky-container [data-id="logo"] img.uds-logo { width: 250px !important; max-width: 250px !important; max-height: none !important; height: auto !important; }
/* Off-canvas logo (if Blocksy's offcanvas logo element is ever enabled) */
body.unimed-ds #offcanvas [data-id="offcanvas-logo"] .site-logo-container,
body.unimed-ds #offcanvas .site-logo-container { width: auto !important; height: auto !important; max-width: none !important; overflow: visible !important; background-image: none !important; }
body.unimed-ds #offcanvas img.uds-logo { width: 250px !important; max-width: 100% !important; height: auto !important; max-height: none !important; }

/* 1.0.1 — Support page: 3-up field-service photo row (stacks on mobile); no captions */
body.unimed-ds .entry-content .uds-photo-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px !important;
  margin-bottom: 48px !important;
}
body.unimed-ds .entry-content .uds-photo-row .uds-photo { display: block; margin: 0; }
body.unimed-ds .entry-content .uds-photo-row img {
  display: block;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--uds-card-radius);
  background: var(--uds-grey);
}
@media (max-width: 689.98px) {
  body.unimed-ds .entry-content .uds-photo-row { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}

/* 1.0.2 — page product blocks as text-only cards; optional intro line above the grid */
body.unimed-ds .entry-content .uds-products .uds-products-lead { max-width: 68ch; margin: 0 0 16px !important; }
body.unimed-ds .entry-content .uds-product-card.is-text { border-top: 4px solid var(--uds-teal); }
body.unimed-ds .entry-content .uds-product-card.is-text h3 { margin-top: 0 !important; }

/* ==========================================================================
   v1.0.9: Home page, one shared content container (spacing only).
   Every top-level home section uses the same box (max-width = Blocksy block
   max-width, 1290px; margin-inline auto) and the same inner gutter at every
   breakpoint. Panels with a 4px brand accent border on the left take the
   border out of the gutter, so text lands on the same x in every section.
   No colours, fonts, text or vertical padding are changed.
   Rollback: reinstall 1.0.8.
   ========================================================================== */
body.unimed-ds.home .entry-content {
  --uds-gutter: clamp(20px, 2.75vw, 28px);
}
body.unimed-ds.home .entry-content > .unimed-hero,
body.unimed-ds.home .entry-content > .unimed-panel,
body.unimed-ds.home .entry-content > .unimed-solutions-section,
body.unimed-ds.home .entry-content > .unimed-partners-section,
body.unimed-ds.home .entry-content > .unimed-support-band,
body.unimed-ds.home .entry-content > .unimed-disclaimer {
  --uds-accent-edge: 0px;
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: var(--theme-block-max-width, 1290px) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: calc(var(--uds-gutter) - var(--uds-accent-edge)) !important;
  padding-right: var(--uds-gutter) !important;
}
/* Sections that carry a 4px left accent border (cream, sand, support band). */
body.unimed-ds.home .entry-content > .unimed-panel-cream,
body.unimed-ds.home .entry-content > .unimed-panel-sand,
body.unimed-ds.home .entry-content > .unimed-support-band {
  --uds-accent-edge: 4px;
}
/* Inner wrappers add no extra inset. */
body.unimed-ds.home .entry-content > .unimed-support-band > div {
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
}
