/* 0.4.92: information precedes images on smaller screens. Desktop layouts,
 * the established typeface and the native full-card links keep their owners. */
@media (max-width: 900px) {
  :is(.vg-site, .editor-styles-wrapper) .vg-panorama :is(.vg-hero-grid, .vg-page-hero__grid) {
    flex-direction: column;
  }
  :is(.vg-site, .editor-styles-wrapper) .vg-panorama :is(.vg-hero-media, .vg-page-hero__media)::after {
    content: none;
  }

  /* The two homepage entries use the same text-first reading order. */
  :is(.vg-site, .editor-styles-wrapper) .vg-primary-areas .vg-primary-area-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "copy" "image";
    min-height: 0;
  }
  :is(.vg-site, .editor-styles-wrapper) .vg-primary-areas .vg-primary-area-card::after {
    content: none;
  }
  :is(.vg-site, .editor-styles-wrapper) .vg-primary-areas .vg-primary-area-card__content {
    grid-area: copy;
    width: 100%;
    min-width: 0;
    min-height: 0;
    padding: 1.5rem;
    background: var(--vg-white, #fff);
  }
  :is(.vg-site, .editor-styles-wrapper) .vg-primary-areas .vg-primary-area-card__media {
    grid-area: image;
    position: relative;
    inset: auto;
    width: 100%;
    height: clamp(11rem, 45vw, 16rem);
    min-width: 0;
    -webkit-mask-image: none;
    mask-image: none;
  }
}

/* Both service overview systems already stack below 1200px. Keep the text
 * above the photograph at that existing breakpoint, with one link per card. */
@media (max-width: 1199px) {
  :is(.vg-site, .editor-styles-wrapper) .vg-operations-cards .vg-primary-area-card {
    grid-template-areas: "copy" "image";
  }
  :is(.vg-site, .editor-styles-wrapper) .vg-advisory-hub-card-087 {
    grid-template-rows: 1fr auto;
  }
  :is(.vg-site, .editor-styles-wrapper) .vg-advisory-hub-card-087__content {
    grid-row: 1;
  }
  :is(.vg-site, .editor-styles-wrapper) .vg-advisory-hub-card-087__media {
    grid-row: 2;
  }
}

/* A service name is the H1; its retained benefit is supporting copy. */
:is(.vg-site, .editor-styles-wrapper) .vg-page-hero__copy > .vg-service-benefit-092 {
  margin: 0;
  color: var(--vg-on-dark, #f8f6f1);
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: normal;
}

/* Direct contact remains usable without a form submission or JavaScript. */
:is(.vg-site, .editor-styles-wrapper) .vg-contact-email-092 {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
  text-underline-offset: .25em;
}
:is(.vg-site, .editor-styles-wrapper) .vg-contact-email-092:focus-visible {
  outline: 2px solid var(--vg-blue, #66809a);
  outline-offset: 4px;
}

/* The medical training photograph belongs to the qualification chapter and
 * uses its native 4:3 composition, instead of illustrating all company topics. */
:is(.vg-site, .editor-styles-wrapper) .vg-qualification-092 {
  --vg-feature-aspect-085: 4 / 3;
}

/* Protected communication uses the existing quiet editorial diagram palette.
 * This is a semantic illustration of two uses, without technical promises. */
:is(.vg-site, .editor-styles-wrapper) .vg-feature-row-085 > .vg-illustrated-grid > .vg-communication-diagram-092 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.75rem;
  min-height: 18rem;
  height: auto;
  aspect-ratio: auto;
  overflow: visible;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid var(--vg-border, #dedcd4);
  border-top: 2px solid var(--vg-gold, #74674f);
  background: var(--vg-ivory, #f8f6f1);
}
:is(.vg-site, .editor-styles-wrapper) .vg-communication-heading-092 {
  margin: 0;
  color: var(--vg-charcoal, #23333f);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: left;
}
:is(.vg-site, .editor-styles-wrapper) .vg-communication-channels-092 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
:is(.vg-site, .editor-styles-wrapper) .vg-communication-channels-092 > li {
  min-width: 0;
  margin: 0;
  padding: 1.25rem 1rem;
  border: 1px solid var(--vg-border, #dedcd4);
  background: var(--vg-white, #fff);
  color: var(--vg-charcoal, #23333f);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  overflow-wrap: anywhere;
  text-align: center;
}
:is(.vg-site, .editor-styles-wrapper) .vg-communication-note-092 {
  margin: 0;
  color: var(--vg-muted, #5c6468);
  font-size: .9375rem;
  line-height: 1.6;
}
@media (max-width: 420px) {
  :is(.vg-site, .editor-styles-wrapper) .vg-communication-channels-092 {
    grid-template-columns: minmax(0, 1fr);
  }
}
