/* Shared responsive corrections for the renewed THRIVE pages. */
nav[data-site-nav] > a[href="/"] {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
}

nav[data-site-nav] > a[href="/"] > img[alt="THRIVE"] {
  width: auto !important;
  height: 48px !important;
  max-width: 144px !important;
  object-fit: contain;
}

footer .footer-logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  width: max-content;
  min-height: 44px;
  border-radius: 4px;
}

footer .footer-logo:focus-visible {
  outline: 2px solid #C9F26F;
  outline-offset: 4px;
}

footer img[alt="THRIVE"] {
  width: 120px !important;
  height: auto !important;
  max-width: 45vw !important;
  object-fit: contain;
}

[data-work-link] > div:first-child > img:first-child {
  filter: saturate(0.9) contrast(1.04) brightness(0.78) !important;
  transition: filter 0.42s ease !important;
  will-change: filter;
}

[data-work-link] > div:first-child > div[style*="inset:0"][style*="background:linear-gradient"] {
  transition: opacity 0.42s ease;
}

@media (hover: hover) and (pointer: fine) {
  [data-work-link]:hover > div:first-child > img:first-child {
    filter: none !important;
  }

  [data-work-link]:hover > div:first-child > div[style*="inset:0"][style*="background:linear-gradient"] {
    opacity: 0.12;
  }
}

[data-work-link]:focus > div:first-child > img:first-child {
  filter: none !important;
}

[data-work-link]:focus > div:first-child > div[style*="inset:0"][style*="background:linear-gradient"] {
  opacity: 0.12;
}

@media (prefers-reduced-motion: reduce) {
  [data-work-link] > div:first-child > img:first-child,
  [data-work-link] > div:first-child > div[style*="inset:0"][style*="background:linear-gradient"] {
    transition: none !important;
  }
}

a[x-apple-data-detectors],
a[x-apple-data-detectors]:hover,
a[x-apple-data-detectors]:focus {
  color: inherit !important;
  text-decoration: none !important;
  font: inherit !important;
}

#voices [data-quote],
#voices [data-quote-who] {
  transition: opacity 0.32s ease !important;
}

#voices [data-quote] {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 256px;
}

#voices [data-quote] > span {
  display: block;
  width: 100%;
}

@media (max-width: 820px) {
  nav[data-site-nav] > a[href="/"] > img[alt="THRIVE"] {
    height: 40px !important;
    max-width: 120px !important;
  }

  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: clip !important;
  }

  nav[data-site-nav] {
    z-index: 500 !important;
    isolation: isolate;
    overflow: visible !important;
  }

  nav[data-site-nav] [data-menu-toggle] {
    position: relative;
    z-index: 3;
    pointer-events: auto !important;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  nav[data-site-nav] [data-nav-links] {
    z-index: 2;
    visibility: hidden;
  }

  nav[data-site-nav][data-menu-open="true"] [data-nav-links] {
    visibility: visible;
  }

  section[data-screen-label="Philosophy Detail"]
    > div:last-child > div {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 18px !important;
    align-items: start !important;
    padding: 36px 0 !important;
  }

  section[data-screen-label="Company Profile"]
    [style*="grid-template-columns:minmax("][style*=") 1fr"] {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px !important;
    padding: 22px 0 !important;
  }

  section[data-screen-label="Philosophy Detail"]
    > div:last-child > div > *,
  section[data-screen-label="Company Profile"]
    [style*="grid-template-columns:minmax("] > * {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: normal;
  }

  section[data-screen-label="Philosophy Detail"] {
    padding-top: 96px !important;
    padding-bottom: 96px !important;
  }

  section[data-screen-label="Company Profile"] {
    padding-top: 96px !important;
    padding-bottom: 96px !important;
  }

  #voices [data-quote] {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 270px;
    margin-inline: auto !important;
  }

  #voices [data-quote] > span {
    display: block;
    width: 100%;
  }

  #voices [data-quote-who] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 340px;
    min-height: 64px;
    margin: 28px auto 0 !important;
    padding-inline: 4px;
    box-sizing: border-box;
    line-height: 1.85 !important;
    letter-spacing: 0.16em !important;
    overflow-wrap: anywhere;
    text-wrap: balance;
  }

  #voices [data-quote-pager],
  #voices [data-quote-who] + div {
    position: relative;
    z-index: 3;
    min-height: 44px;
    margin-top: 14px !important;
  }

  footer img[alt="THRIVE"] {
    width: 112px !important;
    height: auto !important;
    max-width: 46vw !important;
  }
}
