/* Consolidated reviewed CMAC presentation. See external approval register. */
/* P01 revision 1: local Home typography prototype only. Existing fonts/copy retained. */
html[data-design] main .cmac-home .cmac-layout-hero h1 { font-size: 36px !important; line-height: 1.12; letter-spacing: -0.035em; }
main .cmac-home h2 { font-size: 30px; line-height: 1.2; }
main .cmac-home h3.text-3xl { font-size: 26px; line-height: 1.25; }
@media (min-width: 768px) {
  html[data-design] main .cmac-home .cmac-layout-hero h1 { font-size: 40px !important; }
  main .cmac-home h2 { font-size: 36px; }
  main .cmac-home h3.text-3xl { font-size: 30px; }
}
@media (min-width: 1024px) {
  html[data-design] main .cmac-home .cmac-layout-hero h1 { font-size: 44px !important; }
  main .cmac-home h2 { font-size: 40px; }
  main .cmac-home h3.text-3xl { font-size: 32px; }
}


/* Separate optional revision: Home spacing only. Current approved P02 is preserved. */
html[data-design] main .cmac-home > section:not(:first-child) {
  padding-top: 64px; padding-bottom: 64px;
}
@media (min-width: 1024px) {
  html[data-design] main .cmac-home > section:not(:first-child) {
    padding-top: 80px; padding-bottom: 80px;
  }
}

/* Alignment-only About preview. No photo/grid/type/content changes. */
@media (min-width: 1024px) {
  main .site-container > figure + div { padding-top: 0; }
}

/* Two local options: preserve assets/text; show existing Home image below intro. */
main .cmac-layout-hero:has(img[alt*="AI-generated"]) p.absolute.bottom-4.right-5,
main .cmac-layout-hero:has(img[alt*="strategy discussion"]) p.absolute.bottom-4.right-5 {
  font-size: 9px; line-height: 1.3; font-weight: 400; font-style: normal;
  letter-spacing: normal; filter: none; background: none;
}
@media (max-width: 1023px) {
  main .cmac-home > .cmac-layout-hero { display: flex; flex-direction: column; }
  main .cmac-home > .cmac-layout-hero > .site-container { order: 1; }
  main .cmac-home > .cmac-layout-hero > div:first-child {
    display: block; position: relative; inset: auto; order: 2;
    width: calc(100% - 48px); aspect-ratio: 3/2; margin: 0 24px 32px;
  }
  main .cmac-home > .cmac-layout-hero > div:first-child > img {
    display: block; width: 100%; height: auto; aspect-ratio: 3/2; object-fit: cover; object-position: center;
  }
  main .cmac-home > .cmac-layout-hero > div:first-child > div { display: none; }
  /* Existing fixed-height cards can crop faces on wide tablet columns. */
  main .cmac-home article > img[alt="Johan Idemyr"],
  main .cmac-home article > img[alt="Sandra Erntoft Idemyr, PhD"] {
    display: block; width: 100%; max-width: 360px; height: auto; aspect-ratio: 2/3;
    object-fit: contain; object-position: center; margin-inline: auto;
  }
  main .cmac-home article > img[alt="Sandra Erntoft Idemyr, PhD"] {
    aspect-ratio: 4/5;
  }
}

/* Shared treatment for existing AI, iStock and portrait credits; wording retained. */
main div:has(> p.absolute.bottom-4.right-5) {
  display: grid; grid-template-rows: minmax(0,1fr) auto;
}
html main p.absolute.bottom-4.right-5,
html main figure > figcaption {
  position: static; font-size: 9px; line-height: 1.3;
  font-weight: 400; font-style: normal; letter-spacing: normal;
  color: #526575; background: none; filter: none; text-shadow: none;
  text-align: right; padding: 4px 10px 5px; margin: 0;
  max-width: none; border: 0; border-radius: 0; opacity: 1;
}
@media (max-width: 1023px) {
  main div.hidden:has(> p.absolute.bottom-4.right-5) { display: none; }
  main .cmac-home > .cmac-layout-hero > div:first-child:has(> p.absolute.bottom-4.right-5) { display: grid; }
  main div:has(> p.absolute.bottom-4.right-5) { aspect-ratio: auto; }
  main div:has(> p.absolute.bottom-4.right-5) > img {
    display: block; height: auto; width: 100%; aspect-ratio: 3/2; object-fit: cover;
  }
}
@media (min-width: 1024px) {
  main div:not(.hidden):has(> p.absolute.bottom-4.right-5) { display: none; }
}

/* Separate preview: preserve complete hero images below desktop width. */
@media (max-width: 1023px) {
  html main div:has(> p.absolute.bottom-4.right-5) > img {
    height: auto; object-fit: contain;
  }
  html main div:has(> p.absolute.bottom-4.right-5) > img[alt="AI-generated illustrative image of a healthcare professional"] { aspect-ratio: 1/1; }
  html main div:has(> p.absolute.bottom-4.right-5) > img[alt="Sandra Erntoft Idemyr and Johan Idemyr in a strategy discussion"] { aspect-ratio: 3/2; }
  html main div:has(> p.absolute.bottom-4.right-5) > img[alt="Pharmacist reviewing medication products on a tablet"] { aspect-ratio: 1600/1097; }
  html main div:has(> p.absolute.bottom-4.right-5) > img[alt="Doctor speaking with a patient during a consultation"] { aspect-ratio: 1600/1068; }
}

/* Optional wide-desktop Home framing only; keep complete clinical scene. */
@media (min-width: 1600px) {
  html[data-design] main .cmac-home > .cmac-layout-hero > div:first-child > img {
    width: auto; max-width: 100%; height: 100%; justify-self: end;
    object-fit: contain; object-position: right center;
    mask-image: linear-gradient(to right, transparent, black 22%);
  }
}

/* Local preview: LinkedIn footer link only. */
.cmac-linkedin-link { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-top: 1rem; margin-left: -11px; color: #e2e8f0; border-radius: 2px; }
.cmac-linkedin-link:hover { color: #fff; background: #244665; }
.cmac-linkedin-link:focus-visible { outline: 2px solid #77c8e5; outline-offset: 3px; }
footer button { font-size: inherit; }

/* Local sign-off proposal: existing AI, licensed-photo and portrait credits.
   Preserve text, images, page layout and continuous disclosure visibility. */
main p.absolute.bottom-4.right-5 {
  font-size: 10px;
  line-height: 1.3;
  font-weight: 400;
  font-style: normal;
  letter-spacing: normal;
  background: none;
  padding: 0;
  border-radius: 0;
  bottom: 8px;
  right: 10px;
  margin: 0;
  max-width: calc(100% - 20px);
  text-align: right;
  white-space: normal;
  opacity: 1;
}
@media (min-width: 768px) {
  main p.absolute.bottom-4.right-5 {
    bottom: 10px;
    right: 12px;
  }
}
main figure > figcaption {
  font-size: 10px;
  line-height: 1.4;
  font-weight: 400;
  font-style: normal;
  letter-spacing: normal;
}

/* Owner-requested image-label adjustment. Local preview only; desktop unchanged. */
@media (max-width: 1023px) {
  main .cmac-layout-hero:has(img[alt*="AI-generated"]) p.absolute.bottom-4.right-5,
  main .cmac-layout-hero:has(img[alt*="strategy discussion"]) p.absolute.bottom-4.right-5 {
    font-size: 9px;
    line-height: 1.3;
  }
}

/* Optional footer placement preview only. */
footer .cmac-follow-us { margin-top: 20px; }
footer .cmac-follow-us > p {
  margin: 0; color: #cbd5e1; font-size: 14px; line-height: 20px;
  font-weight: 400; letter-spacing: normal;
}
footer .cmac-follow-us .cmac-linkedin-link {
  display: flex; width: 44px; height: 44px;
  margin-top: 4px; margin-left: -11px;
}
/* Match the adjacent legal link; do not affect the floating cookie control. */
footer button.underline { font-weight: 400; }

/* C01 approved 22 October 2026: retain the floating settings button and policy link. */
footer button.underline { display: none !important; }
