/**
 * Public external links, portrait socials, and all Cyberlytics footer variants.
 * Load after legacy content/chrome rules and before breadcrumbs.
 */
html body[class*="path-"] #wrapper .cyb-external-link svg.ext.cyb-external-indicator {
  display: inline-block !important;
  box-sizing: border-box !important;
  flex: 0 0 14px !important;
  width: 14px !important;
  min-width: 14px !important;
  height: 14px !important;
  margin: 0 0 0 5px !important;
  padding: 0 !important;
  vertical-align: -0.12em !important;
  fill: currentColor !important;
  color: inherit !important;
  -webkit-text-fill-color: currentColor !important;
  overflow: visible !important;
  pointer-events: none;
  transform: none !important;
  scale: none !important;
}

html body[class*="path-"] #wrapper .cyb-external-link svg.ext.cyb-external-indicator path {
  color: inherit !important;
  -webkit-text-fill-color: currentColor !important;
  fill: currentColor !important;
  stroke: currentColor !important;
  stroke-width: 1.5 !important;
}

html body[class*="path-"] #wrapper .cyb-external-text-link {
  color: #0e6c3e !important;
  -webkit-text-fill-color: #0e6c3e !important;
  text-decoration: underline !important;
  text-decoration-thickness: 1px !important;
  text-underline-offset: 3px !important;
  overflow-wrap: anywhere;
}

html body[class*="path-"] #wrapper .cyb-external-text-link:hover {
  color: #138450 !important;
  -webkit-text-fill-color: #138450 !important;
  text-decoration-thickness: 2px !important;
}

html body[class*="path-"] #wrapper .cyb-external-link:focus-visible,
html body[class*="path-"] #wrapper :is(.team-social, #main-content .team-header .team-social, #footer .social_footer_ul, #footer .cyb-social-links) a:focus-visible {
  outline: 3px solid #4fa36f !important;
  outline-offset: 4px !important;
}

/* Keep portrait framing independent of the wider, unscaled touch targets. */
html body:is(.path-team, .page-node-type-blog) #wrapper .team-teaser .team-thumb.team-portrait-social {
  position: static !important;
  display: block !important;
  box-sizing: border-box !important;
  flex: 0 0 168px !important;
  width: 168px !important;
  min-width: 168px !important;
  max-width: 168px !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
  transform: none !important;
  scale: none !important;
}

html body:is(.path-team, .page-node-type-blog) #wrapper .team-portrait-social .team-portrait-image {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* The original author portrait rendered at 125px on phones and desktops.
 * Retain that size and its authored crop/border without scaling the socials. */
html body.page-node-type-blog #wrapper .region.region-content-wide .team-portrait-image img {
  width: 125px !important;
  height: 125px !important;
  min-width: 125px !important;
  max-width: 125px !important;
  margin: 0 !important;
  transform: none !important;
  scale: none !important;
}

html body.page-node-type-blog #wrapper .region.region-content-wide .team-portrait-image .field-field-image {
  margin: 0 !important;
}

html body[class*="path-"] #wrapper :is(.team-social, #main-content .team-header .team-social, #footer .social_footer_ul, #footer .cyb-social-links) {
  position: static !important;
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  width: auto !important;
  max-width: 100% !important;
  padding: 0 !important;
  list-style: none !important;
  transform: none !important;
  scale: none !important;
}

html body[class*="path-"] #wrapper .team-teaser .team-social {
  margin: 12px 0 0 !important;
}

html body.page-node-type-team #wrapper #main-content .team-header .team-social {
  justify-content: flex-start !important;
}

html body[class*="path-"] #wrapper :is(.team-social, #main-content .team-header .team-social, #footer .social_footer_ul, #footer .cyb-social-links) a {
  position: relative !important;
  display: inline-flex !important;
  box-sizing: border-box !important;
  flex: 0 0 48px !important;
  align-items: center !important;
  justify-content: center !important;
  width: 48px !important;
  min-width: 48px !important;
  max-width: 48px !important;
  height: 48px !important;
  min-height: 48px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid #4fa36f !important;
  border-radius: 14px !important;
  background: #138450 !important;
  background-image: none !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  font-size: 20px !important;
  line-height: 1 !important;
  text-decoration: none !important;
  text-shadow: none !important;
  box-shadow: 0 2px 5px rgb(14 108 62 / 12%) !important;
  overflow: visible !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  scale: none !important;
  transition: background-color .15s ease, border-color .15s ease;
}

html body[class*="path-"] #wrapper :is(.team-social, #main-content .team-header .team-social, #footer .social_footer_ul, #footer .cyb-social-links) a:hover {
  background: #0e6c3e !important;
  border-color: #eaf7ee !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  transform: none !important;
}

html body[class*="path-"] #wrapper .team-social a::before,
html body[class*="path-"] #wrapper #footer .cyb-social-link .cyb-social-icon::before {
  position: static !important;
  display: block !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  font-size: 20px !important;
  line-height: 1 !important;
  text-shadow: none !important;
  box-shadow: none !important;
  transform: none !important;
  scale: none !important;
}

html body[class*="path-"] #wrapper #footer .cyb-social-link .cyb-social-icon {
  display: block !important;
  flex: 0 0 auto !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  font-size: 20px !important;
  line-height: 1 !important;
}

html body[class*="path-"] #wrapper #footer :is(.social_footer_ul, .cyb-social-links) img {
  display: block !important;
  flex: 0 0 28px !important;
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  max-width: 28px !important;
  max-height: 28px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 6px !important;
  object-fit: contain !important;
  transform: none !important;
  scale: none !important;
}

html body[class*="path-"] #wrapper :is(.team-social, #footer .social_footer_ul, #footer .cyb-social-links) a svg.ext.cyb-external-indicator {
  position: absolute !important;
  inset: 3px 3px auto auto !important;
  box-sizing: content-box !important;
  width: 12px !important;
  min-width: 12px !important;
  height: 12px !important;
  margin: 0 !important;
  padding: 2px !important;
  border-radius: 4px !important;
  background: #eaf7ee !important;
  color: #0e6c3e !important;
  -webkit-text-fill-color: #0e6c3e !important;
}

html body[class*="path-"] #wrapper .cyb-external-image-link:not(.cyb-social-link) {
  position: relative !important;
  display: inline-block !important;
  max-width: 100% !important;
}

html body[class*="path-"] #wrapper .cyb-external-image-link:not(.cyb-social-link) img {
  display: block !important;
  max-width: 100% !important;
}

html body[class*="path-"] #wrapper .cyb-external-image-link:not(.cyb-social-link) svg.ext.cyb-external-indicator {
  position: absolute !important;
  inset: auto 8px 8px auto !important;
  box-sizing: content-box !important;
  margin: 0 !important;
  padding: 4px !important;
  border: 1px solid #4fa36f !important;
  border-radius: 6px !important;
  background: #eaf7ee !important;
  color: #0e6c3e !important;
  -webkit-text-fill-color: #0e6c3e !important;
}

/* Review/trailer anchors own their complete hit area, including the arrow. */
html body[class*="path-"] #wrapper #footer .cyb-external-text-link {
  display: inline-flex !important;
  box-sizing: border-box !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  max-width: 100% !important;
  min-height: 44px !important;
  margin: 4px 0 !important;
  padding: 8px 12px !important;
  border: 1px solid #4fa36f !important;
  border-radius: 10px !important;
  background: #0e6c3e !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  text-decoration: none !important;
  text-shadow: none !important;
  white-space: normal !important;
}

html body[class*="path-"] #wrapper #footer .cyb-external-text-link:hover {
  background: #138450 !important;
  border-color: #eaf7ee !important;
}

html body[class*="path-"] #wrapper #footer .cyb-external-text-link .jd-footer__btn-trailer {
  display: inline !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: inherit !important;
  -webkit-text-fill-color: currentColor !important;
  font: inherit !important;
  box-shadow: none !important;
}

html body[class*="path-"] #wrapper :is(#footer .cyb-external-text-link, .cyberlytics-share__action) svg.ext.cyb-external-indicator {
  margin: 0 !important;
}

@media (max-width: 767.98px) {
  html body.path-team.page-team #wrapper #main-content .region-content .grid-wrapper > .grid-item {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
  }

  html body.page-node-type-team #wrapper #main-content .team-header .team-social {
    justify-content: center !important;
  }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
  html body.path-team.page-team #wrapper #main-content .region-content .grid-wrapper > .grid-item {
    width: 50% !important;
    max-width: 50% !important;
    flex: 0 0 50% !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html body[class*="path-"] #wrapper :is(.team-social, #main-content .team-header .team-social, #footer .social_footer_ul, #footer .cyb-social-links) a {
    transition: none;
  }
}

@media print {
  html body[class*="path-"] #wrapper .cyb-external-link svg.ext.cyb-external-indicator {
    display: none !important;
  }

  html body[class*="path-"] #wrapper #footer .cyb-external-text-link,
  html body[class*="path-"] #wrapper :is(.team-social, #main-content .team-header .team-social, #footer .social_footer_ul, #footer .cyb-social-links) a,
  html body[class*="path-"] #wrapper .team-social a::before,
  html body[class*="path-"] #wrapper #footer .cyb-social-link .cyb-social-icon,
  html body[class*="path-"] #wrapper #footer .cyb-social-link .cyb-social-icon::before {
    background: transparent !important;
    color: #173d2b !important;
    -webkit-text-fill-color: #173d2b !important;
    box-shadow: none !important;
  }
}
