/* Rites page anatomy section hotfix
   Fixes the pale pasted rectangle behind the ornamental path,
   reduces the oversized blank lower area, and tightens step spacing. */

.rites-bottom-grids__grid {
  align-items: start;
}

.rites-anatomy {
  min-height: 0;
  padding: 0.95rem 1.1rem 1rem;
}

.rites-anatomy h2 {
  margin-bottom: 0.35rem;
}

.rites-anatomy__path {
  display: block;
  width: 94%;
  height: 1.6rem;
  object-fit: contain;
  margin: 0.08rem auto 0.45rem;
}

.rites-anatomy__steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
  align-items: start;
}

.rites-anatomy__steps strong {
  display: block;
  font-size: 1.18rem;
  line-height: 1.08;
}

.rites-anatomy__steps p {
  margin: 0.32rem 0 0;
  font-size: 0.8rem;
  line-height: 1.24;
}

@media (max-width: 980px) {
  .rites-anatomy__path {
    width: 96%;
    height: 1.4rem;
    margin-bottom: 0.4rem;
  }

  .rites-anatomy__steps {
    gap: 0.6rem;
  }
}

@media (max-width: 720px) {
  .rites-anatomy__steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 0.8rem;
  }

  .rites-anatomy__path {
    height: 1.15rem;
    margin-bottom: 0.5rem;
  }
}

@media (max-width: 480px) {
  .rites-anatomy__steps {
    grid-template-columns: 1fr;
  }
}
