/*
 * Layout safety for the compiled React service dialogs.
 *
 * The longer editorial copy can exceed the middle grid track. Keep the
 * dialog chrome fixed and make the content track the only scroll container.
 */
.service-detail__card {
  min-height: 0;
}

/* Keep the remote-support entry visibly distinct from the other menu routes. */
#mobile-menu .mobile-menu__remote > b,
#mobile-menu .mobile-menu__remote:hover > b {
  color: #d83232;
}

/* Restrict the hero glitch to the dynamic |IT| / |AI| token. */
.hero--lockup-glitch .hero__company .glitch-char,
.hero--lockup-glitch .hero__slogan > .glitch-char,
.hero--lockup-glitch .hero__company .glitch-char::before,
.hero--lockup-glitch .hero__company .glitch-char::after,
.hero--lockup-glitch .hero__slogan > .glitch-char::before,
.hero--lockup-glitch .hero__slogan > .glitch-char::after {
  animation: none;
}

.service-detail__head,
.service-detail__foot {
  background: #f6f6f4;
}

.service-detail__head,
.service-detail__body,
.service-detail__foot {
  /* Keep adjacent grid tracks on one plane while the card itself tilts. */
  transform: none !important;
}

.service-detail__body {
  align-self: stretch;
  min-height: 0;
  max-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  overflow-wrap: anywhere;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.service-detail__columns,
.service-detail__examples > div {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-width: 0;
}

.service-detail__columns > div,
.service-detail__columns li,
.service-detail__examples article,
.service-detail__examples article p,
.service-detail__foot > * {
  min-width: 0;
  max-width: 100%;
}

.service-detail__foot {
  flex-wrap: wrap;
}

/* Keep the two service-domain titles visually anchored in their panels. */
.expertise-panel--interactive > h3 {
  width: 100%;
  text-align: center;
}

/* Leave room for the display font's descenders in the three-line heading. */
#services .section-intro__content h2 {
  padding-bottom: 0.2em;
}

@media (width > 640px) {
  .expertise-panel--interactive:first-child > h3 {
    transform: translateX(12px);
  }

  .expertise-panel--interactive:last-child > h3 {
    transform: translateX(-12px);
  }
}

@media (width <= 640px) {
  .expertise-panel--interactive:first-child > h3 {
    transform: translateX(6px);
  }

  .expertise-panel--interactive:last-child > h3 {
    transform: translateX(-6px);
  }
}

@media (width <= 640px) {
  .service-detail__card {
    overflow: hidden;
  }

  .service-detail__body {
    margin-block: 0;
    padding-block: 24px 28px;
  }

  .service-detail__columns,
  .service-detail__examples > div {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Crawlable bridge between the historical React home and localized pages. */
.root-site-directory {
  position: relative;
  z-index: 1;
  border-top: 3px solid #ed1c24;
  background: #111816;
  color: #f6f6f4;
  font-family: "IBM Plex Sans", sans-serif;
  padding: 40px clamp(20px, 5vw, 72px) 48px;
}

.root-site-directory nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px clamp(32px, 8vw, 120px);
  max-width: 1180px;
  margin: 0 auto;
}

.root-site-directory__title {
  margin: 0 0 16px;
  font-family: "Teko", sans-serif;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
  text-transform: uppercase;
}

.root-site-directory ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.root-site-directory a {
  color: inherit;
  overflow-wrap: anywhere;
  text-underline-offset: 0.2em;
}

.root-site-directory a:hover {
  color: #ff4b51;
}

.root-site-directory a:focus-visible {
  outline: 3px solid #f6f6f4;
  outline-offset: 4px;
}

@media (width <= 640px) {
  .root-site-directory nav {
    grid-template-columns: minmax(0, 1fr);
  }
}
